Unfortunately, my problems had not yet been solved completely. I had mentioned the package names in the titles which were set in bold. I thus had created a fairly commonly encountered bugbear with LaTeX—the non-compatibility of bold and small caps in computer modern font. While there are workarounds for this (see this Stack Exchange and TeX FAQ for more details), unfortunately these solutions did not work with Beamer.
So, I set about finding a font that both looked alright, and would accomodate bold and small caps. I found that using helvetica would be fine, but had to be loaded after Sweave to work. As my Sweave block kept placing the \usepackage{Sweave} immedediately before \begin{document}, I resorted to calling helvetica in the Sweave file itself.
The relevant lines in of the Sweave.sty (lines 18-21) file. Before:
\ifthenelse{\boolean{Sweave@ae}}{%After:
\RequirePackage[T1]{fontenc}
\RequirePackage{ae}
}{}%
\ifthenelse{\boolean{Sweave@ae}}{%
\RequirePackage[T1]{fontenc}
\RequirePackage[scaled]{helvet}
}{}%
3 comments:
If you review ?RweaveLatex, you will note that Sweave.sty supports the 'noae' option. So try using:
\usepackage[noae]{Sweave}
in your preamble and see if that helps.
Any chance that you'd share the source code for the finished product (e.g., on something like github)? It's interesting to see working examples of reproducible research.
Post a Comment