\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}}
> 
> when this is your whole preamble, how do you insert
> your listings?
> 
> Herbert
> 
> 
> -- 
> http://www.educat.hu-berlin.de/~voss/lyx/
> 

Reply via email to