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

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to