Re: Verbatim (but with wordwrap)
- From: cheprofessor@xxxxxxxxx
- Date: Tue, 22 Jan 2008 17:09:39 -0800 (PST)
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}
.
- References:
- Verbatim (but with wordwrap)
- From: cheprofessor
- Re: Verbatim (but with wordwrap)
- From: vvvv
- Verbatim (but with wordwrap)
- Prev by Date: Re: problem on compiling rail package
- Next by Date: Re: Bad hyphenation with Helvetica
- Previous by thread: Re: Verbatim (but with wordwrap)
- Next by thread: docstrip question - def in .dtx files
- Index(es):
Relevant Pages
|
Loading