Skip to content

there are fontencoding problem in Sweave

4 messages · Угодай n/a, Duncan Murdoch, Peter Dalgaard

#
On 4/16/2009 10:29 AM, ?????? n/a wrote:
R is open source.  Changing the source to handle an unforeseen situation 
is normal and expected, it's not an assault.

I don't know LaTeX well enough to know if there's a way to override the 
Sweave.sty fontenc declaration.  (I do know there are well documented 
ways to change the formatting of code chunks, for example.)  You could 
ask on a LaTeX list if you want, but I'd suggest the solution you 
already have is easier.

Duncan Murdoch
#
Duncan Murdoch wrote:
Doesn't \usepackage[noae]{Sweave} do the trick? Sweave.sty has this 
conditionalized.

\ifthenelse{\boolean{Sweave at ae}}{%
   \RequirePackage[T1]{fontenc}
   \RequirePackage{ae}
}{}%

(I'm not sure this is good LaTeX-design, loading and configuring other 
packages like that; styles usually try to stay orthogonal. Then again, 
I'm not much of a TeXpert.)