LaTex, Problem with Beamer and Listings

Posted by Valdor65 on Super User See other posts from Super User or by Valdor65
Published on 2010-06-05T15:42:24Z Indexed on 2010/06/05 15:42 UTC
Read the original article Hit count: 267

Filed under:
|

Hi,

I'm trying to add some code in a presentation made with LaTex. I used beamer, added some frames without problems but once I add the listing, I can't compile the presentation anymore.

\begin{frame}{Code}
\begin{lstlisting}
Sample Code
\end{lstlisting}
\end{frame}

The error I pdflatex gave me is:

Package Listings Warning: Text dropped after begin of listing on input line 80.

Is there anything special to add to make it work ?

Thanks

© Super User or respective owner

LaTex, Problem with Beamer and Listings

Posted by Valdor65 on Stack Overflow See other posts from Stack Overflow or by Valdor65
Published on 2010-06-05T15:48:09Z Indexed on 2010/06/05 15:52 UTC
Read the original article Hit count: 267

Filed under:
|
|

Hi,

I'm trying to add some code in a presentation made with LaTex. I used beamer, added some frames without problems but once I add the listing, I can't compile the presentation anymore.

\begin{frame}{Code}
\begin{lstlisting}
Sample Code
\end{lstlisting}
\end{frame}

The error I pdflatex gave me is:

Package Listings Warning: Text dropped after begin of listing on input line 80.

Is there anything special to add to make it work ?

Thanks

© Stack Overflow or respective owner

Related posts about latex

Related posts about beamer