Torsten Hahn wrote:
> 
> Hi,
> 
> i use the listngs - package to typset sourcecode in my documents. the Problem
> is, that it does not do a pagebreak in the case that the code is longer than
> one page. I use the following (in LaTEX style):
> 
> 
>\lstinputlisting[language=C++,basicstyle=\fontfamily{pcr}\fontseries{m}\selectfont\footnotesize,indent=15pt,breaklines,showlines,float,caption={[Kurze
> Beschreibung]Ein tolles Beispiel eines C++ Listings},frame={tb}]{main.cpp}
> 
> What i have to do, that the code breaks automaticly of the page is over ?

\usepackage[breaklines]{listings}

that's all

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/

Reply via email to