Hi all,
I' writing a report using the 'article' layout. I use the listings
package to insert some Java code into my report. I think listings is a
great package to insert source code into documents, thanks to its
creators!
My problem:
-----------
in the preamble, i write:
\usepackage[breaklines] {listings}
and in my document in TeX style:
\lstset {language=Java,\basicstyle\fontfamily{pcr}
\fontseries{m}\selectfont\footnotesize}
\lstinputlisting[stringspaces=false,frame={tb},lineskip=-1pt,
breaklines,spread=100pt,extendedchars=true]
{files/ReverseServer.java}
When i want to view my document , i eat the error:
LaTeX error: No counter 'chapter' defined.
\newcounter{listing} [chapter]
---------------
Thanks in advance!