[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#388592: Listings does not wrap long floats



Joachim Breitner <nomeata@debian.org> wrote:

> Package: tetex-extra
> Version: 3.0-21
> Severity: normal
> File: /usr/share/texmf-tetex/tex/latex/listings/listings.sty
>
> Hi,
>
> the listings package does not wrap long listings if they are set as
> floats. It does wrap listings if the float option is not provided. This
> happens with both the lstlisting environment as well as with
> lstinputlisting.
>
> A minimal example is attached.

I cannot reproduce this here.  In my setup, the lines in your example
are never wrapped.  Maybe you have a locally changed listings.cfg
somewhere?  This is how I get line breaking:

\documentclass{article}

\usepackage{listings}
\begin{document}
\section{As a float}

foo
\lstinputlisting[float=p,breaklines=true]{/etc/inittab}

bar

\clearpage{}
\section{Not as a float}

foo
\lstinputlisting[breaklines=true]{/etc/inittab}

bar
\end{document}


Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: