[R] Sweave and LaTeX beamer class

Bernd Weiss bernd.weiss at uni-koeln.de
Mon Dec 20 07:11:31 CET 2004


Hi,

has anyonne experienced problems between the LaTeX beamer class and 
Sweave? The following code does not work properly:
#################################
\documentclass{beamer}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman}

\begin{document}
\frame{
  \frametitle{test}
test
<<>>=
 1+1
@ 
}
\end{document}
#################################

Below is the error code:
#################################
loading : Context Support Macros / PDF (2004.10.26)
) (d:\programme\texmf\tex\latex\hyperref\nameref.sty) (testset.out)
(testset.out) (testset.nav) 
(d:\programme\texmf\tex\latex\ae\t1aett.fd)
Runaway argument?
> 1 + 1 \end {Sinput} \begin {Soutput} [1] 2 \end {Soutput} \end 
{Sch\ETC.
! Paragraph ended before \FV at BeginScanning was complete.
<to be read again>
                   \par
l.26 }

? x
No pages of output.
Transcript written on testset.log.
#################################

Thanks in advance,

Bernd




More information about the R-help mailing list