[texhax] listings package and wrapping

Lars Madsen daleif at imf.au.dk
Sun Dec 19 11:14:54 CET 2004


Ivan Ivanov :

> Dear Colleagues,
> I am using lisings package to include some Java and C++ source code
> files in my latex documents. These files have also some long lines
> that are printed outside of the page (i.e. do not get wrapped). I have
> too many source files and I do not want to scan them manually to
> shorten these lines. Is it possible to make listings package wrap the
> long lines and if so how can I do it?
>

Read the listings manual ...

breakindent=0em,
breaklines,
breakatwhitespace=true,

might help


-- 

/daleif

``You cannot help men permanently by doing for them 
what they could and should do for themselves. ''
  -- Abraham Lincoln



More information about the texhax mailing list