\lstset{language=Java,basicstyle=\fontfamily{pcr}\fontseries{m}\selectfont\footnotesize}
\lstinputlisting[stringspaces=false,frame=tb,lineskip=-1pt,
breaklines,spread=100pt,extendedchars=true]{filename.java}
On Mon, 24 Sep 2001, Herbert Voss wrote:
> Emre Akbas wrote:
> >
My preamble follows:
\usepackage[breaklines]{listings}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\centering\normalfont\Large\bfseries}}
On Mon, 24 Sep 2001, Herbert Voss wrote:
> Emre Akbas wr
On Mon, 24 Sep 2001, Herbert Voss wrote:
> Emre Akbas wrote:
> >
> >
> > When i want to view my document , i eat the error:
> >
> > LaTeX error: No counter 'chapter' defined.
> >
> > \newcounter{listing} [chapter]
>
> I suppos
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[breaklin
Hi all,
I use article layout for my report, but i want the sections be centered,
i find the solution of inserting
\begin {center}
\end {center}
In one of my sections this red evil text gives error, while works
perfectly well with three other sections. the error is
LaTeX Error: Something's w
Hi all,
Thanks to developers, LyX is a great program!
I have a problem with LyX-code environment. I have to include a lot
of long Java codes in my document. Since the long-lines went off from the
right of the page, i've begin to use listings package. That solved my
problem but still i want to s