🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #1279

LaTex environments using verbatim

#1279
From: cogen
Date: Fri, 24 Nov 1989 17:46
18 lines
885 bytes
I want to define environments which are based on verbatim. For example:


\newenvironment{smallverbatim}{\begin{verbatim}\small}{\end{verbatim}}

\begin{smallverbatim}
Some text in here.
\end{smallverbatim}


This doesn't work because LaTex apparently doesn't expand the macros when looking
for the string "\end{verbatim}"; it tells me "File ended while scanning use of
\@xverbatim". 

Is there any way I can do this? Do not be deceived by the simple example; my
actual environments are more complicated than the simple example.

-- David Cogen.
Technical Details
Message-ID: <1621@xn.LL.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!mit-eddie!ll-xn!cogen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!jarvis.csri.toronto.edu!rutgers!mit-eddie!ll-xn!cogen
From: cogen@XN.LL.MIT.EDU (cogen)
Newsgroups: comp.text
Subject: LaTex environments using verbatim
Message-ID: <1621@xn.LL.MIT.EDU>
Date: 24 Nov 89 17:46:09 GMT
Organization: MIT Lincoln Laboratory, Lexington, MA
Lines: 18