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 -- Dr. Mark Wardle Clinical research fellow and Specialist Registrar in Neurology, C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK email: wardle at cardiff.ac.uk mark at wardle.org OpenPGP key: 66896A39
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/
Roger D. Peng wrote:> Try > > \usepackage[noae]{Sweave} > > -rogerWorks perfectly - many thanks! Best wishes, Mark -- Dr. Mark Wardle Clinical research fellow and Specialist Registrar in Neurology, C2-B2 link, Cardiff University, Heath Park, CARDIFF, CF14 4XN. UK