[tex-live] beamer not compatible with listings?
Lars Madsen
daleif at imf.au.dk
Fri Mar 20 15:18:44 CET 2009
Neal Becker wrote:
> \documentclass[english]{beamer}
> \usepackage{listings}
> \begin{document}
> \begin{frame}[Generic Programming with C++]
>
> Test
> \begin{lstlisting}
> whatever;
> \end{lstlisting}
>
>
>
> \end{frame}
> \end{document}
>
> Runaway argument?
> ! Paragraph ended before \lst at next was complete.
> <to be read again>
> \par
> l.13 \end{frame}
>
>
> ! LaTeX Error: \begin{lstlisting} on input line 13 ended by
> \end{beamer at framepa
> uses}.
> ... more errors
you need the fragile option
\begin{frame}[fragile]
AFAIR this is mentioned in the beamer manual, listings stuff, is related
to verbatim.
--
/daleif
More information about the tex-live
mailing list