Liviu Andronic <landronim...@gmail.com> writes:

> Dear LyX developers
> I notice this issue in current SVN (probably Alpha1):
> 1. open a new 'article' document
> 2. add the Sweave module
> 3. write "something"
> 4. change Document > Fonts > Roman to 'Palatino'
> 5. view > pdf
> 6. the generated pdf will contain the CMR10
>
> A custom font is ignored whenever the Sweave module in included in the
> document. Would there be a way to work around this?

This is because Sweave uses the ae fonts by default :(

Fortunately there is the [noae] Sweave.sty option to avoid it.

Unfortunately, it is not easy to use automatically in LyX

Solution 1: add "\usepackage[noae]{Sweave.sty}" to the preamble. It
works well in the sense that Sweave will not add another
\usepackage{Sweave} line, but only make sense when the .sty file is in a
place where LaTeX can find it. By default, Sweave adds a line like
\usepackage{/path/to/sweave/Sweave.sty}

Solution 2: add "noae" to global documentclass options. This is
difficult to do in a module.

Solution 3: Use \PassOptionToClass. Hmm, it might just work.

JMarc

Reply via email to