[OS X TeX] Problems with listing-package

Niels Kobschätzki n.kobschaetzki at googlemail.com
Fri Nov 17 14:02:15 CET 2006


Hi!

I'm experimenting with the listings-package and I can't get it to  
render my example (It's used within a beamer-class-document):

\begin{frame}
   \frametitle{Sourcecodeblock-test}
	\begin{lstlisting}
		Hallo.java
		public class Hallo
		{ public static void main( String[] args )
		  { System.out.println( "Hallo!" ); }}
	\end{lstlisting}
\end{frame}

\end{document}

The error-message is:

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

)
! Emergency stop.
<*> test-präsentation.tex

*** (job aborted, no legal \end found)

Does have anybody an idea what went wrong?

Niels------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list