title: LaTex, issue with Beamer and Listings
body: <p>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.</p>
  
  
  
  <pre class="lang-latex prettyprint-override"><code>\begin{frame}{Code}
  \begin{lstlisting}
  Sample Code
  \end{lstlisting}
  \end{frame}
  </code></pre>
  
  <p>The error I pdflatex gave me is:</p>
  
  <pre class="lang-latex prettyprint-override"><code>Package Listings Warning: Text dropped after begin of listing on input line 80.
  </code></pre>
  
  <p>Is there anything special to add to make it work ?</p>