Re: Verbatim (but with wordwrap)



Thanks ... (yes, listings works well ... ) (looks like lots of ways to
control what
gets typeset how ...)

On Jan 22, 11:46 am, vvvv <vnes...@xxxxxxxxx> wrote:
Here is an example of what was suggested above:

\documentclass{article}
% this will print a listing of a file even if it has characters that
are normally problematic in tex.
\usepackage{listings}
\begin{document}
\lstset{language=TeX}% this helps to define the formatting of the
listed file.
% list lines 1 through 19 of a file and word wrap (breaklines=true):
%
Here is a listing of a file:
\lstinputlisting[linerange=1-19,breaklines=true]{junk.tex}
\end{document}

.



Relevant Pages


Loading