Dear LyX Developers,

Over the last several days, I've been giving the new Sweave module in
LyX (SVN) a rather substantial workout.  In all, I've been very pleased
with it.  So far, it's worked in every document class I've tested it
with and with multiple different tex engines (pdftex, latex and xetex).

I did have one question, however.  By default the Sweave package enables
fontenc with support for T1 fonts and the ae package.  On my machine,
this this causes the Computer Modern fonts to be used(regardless of what
I may have specified in the LaTeX preamble).  Since I do not
particularly care for the computer modern fonts, I usually prefer to use
an alternative.  Also, I typically compile my documents with xetex,
which doesn't need the fontenc package.

After tracking down the cause of the problem, I found that this behavior
can be supressed by passing Sweave the noae option
(\usepackage[noae]{Sweave}).  When I do this, Sweave can reliably be
used with any document class and with any tex engine.  But since Sweave
is loaded through a module, I was unable how to specify the noae option.
My solution was simply to hack Sweave.sty and change the default
behavior to noae.

However, I would prefer not to alter the stock files of my latex
distribution.  Is there a way to use the module to pass Sweave the
"noae" option?  Is there any way to offer the user a choice from the
GUI?

Cheers,

Rob Oakes

Reply via email to