On 20 Dec 2004 at 7:11, Bernd Weiss wrote:

> 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}
> #################################


The following code works as expected! 

It is important to use a frame-environment and the "fragile"-option.

\begin{frame}[fragile]
...
\end{frame}

##################################

\documentclass{beamer}


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

\usepackage{ngerman}

\begin{document}

\begin{frame}[fragile]
  \frametitle{test}
test
<<>>=
 1+1
@ 
\end{frame}
\end{document}

####################################

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to