Article View: comp.text.tex
Article #10139Re: using redefined \verbatim in verbatimfiles
From: Bernd Raichle
Date: Fri, 07 Jun 1991 11:18
Date: Fri, 07 Jun 1991 11:18
40 lines
2149 bytes
2149 bytes
> [... Problem with changed verbatim-environment & \verbatimfiles ...]
First: it's better you use the new Style-Option, called `verbatim'
written by Rainer Schoepf.
(Available via anon-ftp from rusmv1.rus.uni-stuttgart.de [129.69.1.12]
in soft/tex/latex-style/supported/verbatim/* and from other
TeX-Server)
You can define a new environment/command with changed macros
\verbatim@startline, \verbatim@addtoline, \verbatim@processline to
implement line wrapping and other things... (Look in the
documentation of `verbatim')
> I have tried modifying verbatimfiles.sty in quasi-random ways, to no avail.
> Can anyone offer advice?
Try this one, but note that it's a hack and doesn't work with a newer
LaTeX version!
{\catcode`\^^M=13
% Redefine verbatimfile environment:
\gdef\verbatimfile#1{\begingroup
% redefine \end (\DoOneChar scans for an \end token, not for \endgroup!)
\let\end=\endgroup
\@verbatim \frenchspacing \@vobeyspaces
% New stuff from `newverbatim'
\let\par=^^M\let^^M=\DoLongLines\count@=0 %
% don't forget to start \DoLongLines at the first line (Hack!)
\expandafter\DoLongLines\@@input#1 \end % = \endgroup
}%
}
-bernd
__________________________________________________________________________
Bernd Raichle, Student der Universit"at Stuttgart | "Le langage est source
privat: Stettener Str. 73, D-7300 Esslingen | de malentendus"
email: raichle@azu.informatik.uni-stuttgart.de | (A. de Saint-Exupery)
Technical Details
Message-ID:
<RAICHLE.91Jun7131809@azu.informatik.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ifistg!raichleReferences:
<jmn.676194610@power.Berkeley.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!ifistg!raichle From: raichle@informatik.uni-stuttgart.de (Bernd Raichle) Newsgroups: comp.text.tex Subject: Re: using redefined \verbatim in verbatimfiles Message-ID: <RAICHLE.91Jun7131809@azu.informatik.uni-stuttgart.de> Date: 7 Jun 91 11:18:09 GMT References: <jmn.676194610@power.Berkeley.EDU> Sender: news@ifistg.uucp Reply-To: raichle@azu.informatik.uni-stuttgart.de Distribution: comp Organization: Informatik, Univ. Stuttgart. W.Germany Lines: 40 In-reply-to: jmn@power.berkeley.edu's message of 6 Jun 91 07:50:10 GMT