8 Nov 17:22
Re: Sweave and font problems
From: Roger D. Peng <rdpeng <at> gmail.com>
Subject: Re: Sweave and font problems
Newsgroups: gmane.comp.lang.r.general
Date: 2006-11-08 16:22:01 GMT
Subject: Re: Sweave and font problems
Newsgroups: gmane.comp.lang.r.general
Date: 2006-11-08 16:22:01 GMT
Try
\usepackage[noae]{Sweave}
-roger
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/
______________________________________________
R-help <at> stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
RSS Feed