[R] Sweave and font problems

Roger D. Peng rdpeng at gmail.com
Wed Nov 8 17:22:01 CET 2006




Mark Wardle wrote:
> Dear All,
> Having now successfully started using Sweave, I have just noticed an odd
> side effect with fonts.
> Using plain LaTeX, I have had no problems using \usepackage{palatino} or
> \usepackage{times} and the font correctly changes.
> However, once I convert the tex document into Snw, and run it through R
> CMD SWEAVE, LaTeX seems to ignore this package directive. The LaTeX log
> suggests the font package is successfully loaded.
> In fact, invetigating the problem in more detail, the mere addition of
> \usepackage{Sweave} is enough to cause the  \usepackage{times} or
> \usepackage{palatino} to be ignored.
> I suspect it is not Sweave itself, as I have seen examples in Sweave
> using Times or Palatino; it may be an issue with my local LaTeX
> installation (but that doesn't show up without using Sweave), or some
> odd interaction? Certainly, Sweave generates the correct .tex file, but
> bizarrely, the package directive is ignored.
> Has anyone had similar problems, or am I alone...?
> pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
> Installed via darwinports (macports as it is now).
> Mark

Roger D. Peng  |  http://www.biostat.jhsph.edu/~rpeng/

More information about the R-help mailing list