Path: 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 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.