[Bioc-devel] BiocStyle and fonts

Laurent Gatto lg390 at cam.ac.uk
Tue Mar 11 18:38:11 CET 2014


Dear all, 

Compiling the following with Sweave

\documentclass{article}
<<style, eval=TRUE, echo=FALSE, results=tex>>=
BiocStyle::latex()
@
\bioctitle{Hello world}
\begin{document}
\maketitle
\section{Section}
Some text
<<pxdata>>=
print("Hello world")
@
\end{document}

$ R CMD Sweave --engine=utils::Sweave --pdf test.Rnw

and this one with knitr

\documentclass{article}
<<style, eval=TRUE, echo=FALSE, results='asis'>>=
BiocStyle::latex()
@
\bioctitle{Hello world}
\begin{document}
\maketitle
\section{Section}
Some text
<<pxdata>>=
print("Hello world")
@
\end{document}

$R CMD Sweave --engine=knitr::knitr --pdf test.Rnw

produces two pdf documents with different fonts. 

As a positive control, using the two engines without BiocStyle result in
pdf files with identical fonts.

Is this a documented side effect of BiocStyle?

Thank you very much in advance.

Best wishes,

Laurent



More information about the Bioc-devel mailing list