[R] Sweave and LaTeX beamer class
Johannes Huesing
johannes at huesing.name
Thu Sep 30 21:24:13 CEST 2010
I am failing to uncover Sweave chunks step by step using the LaTeX beamer
class.
The following minimal example:
\documentclass{beamer}
\usepackage{Sweave}
\begin{document}
\begin{frame}[fragile]
In the year \uncover<2->{25}\uncover<3->{\Sexpr{5*5}}
\uncover<4->{
<<echo=TRUE, print=TRUE>>=
5*5*101
@
}
\end{frame}
\end{document}
leads to an error message when running pdflatex over the *.tex file:
[...]
! FancyVerb Error:
Extraneous input ` 2525 \end {Soutput} \end {Schunk} \beamer at endcovered ' bet
ween \begin{Soutput}[<key=value>] and line end
.
\FV at Error ... {FancyVerb Error:
\space \space #1
}
--
Johannes Hüsing There is something fascinating about science.
One gets such wholesale returns of conjecture
mailto:johannes at huesing.name from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
More information about the R-help
mailing list