[R] Sweave: font problems with Signif. codes lines
Michael Friendly
friendly at yorku.ca
Tue Dec 22 23:26:11 CET 2009
Prof Brian Ripley wrote:
> On Tue, 22 Dec 2009, Michael Friendly wrote:
>
>> [Environment: Win Xp, Miktex 2.7, R 2.9.2]
>
> If you want to set R output in a TeX font that (as most are) is very
> limited in its coverage, try options(useFancyQuotes = FALSE).
Perfect, and all I need! Thanks so much for this, as well as the more
detailed explanation.
>
> We don't have the 'at a minimum' information asked for in the posting
> guide. If we did, I suspect it would say that you are using the
> encoding CP1252, and you have not told LaTeX that: I think you need
> something like
>
> \usepackage[cp1252]{inputenc}
> \inputencoding{cp1252}
>
> However you will then need a font which contains glyphs for
> \textquoteleft and \textquoteright: those designed by Knuth, including
> cmtt10, only cover most of ASCII and a few other gyphs but a number of
> alternatives are available.
>
> (People using UTF-8 locales on other OSes will need to declare LaTeX
> encoding utf8 for fancy quotes in a similar way.)
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT M3J 1P3 CANADA
More information about the R-help
mailing list