Article View: comp.text.tex
Article #543Re: LaTeX \newenvironment and \verbatim
From: Gunars V Lucans
Date: Wed, 29 Jul 1992 15:15
Date: Wed, 29 Jul 1992 15:15
38 lines
1694 bytes
1694 bytes
Schoepf@sc.ZIB-Berlin.de (Rainer Schoepf) writes:
>In article <QePh2i600WB6MJKENo@andrew.cmu.edu> me12+@andrew.cmu.edu (Marc R. Ewing) writes:
> Is it possible to do something like:
> \newenvironment{zcode}{\begin{quote}\begin{verbatim}}%
> {\end{verbatim}\end{quote}}
> It seems that, once verbatim is turned on, it never sees the \end{zcode}
>True. A while ago, I wrote a verbatim style file to get around some of
>the problems with verbatim. This is now distributed with AMSLaTeX to
>provide the comment environment.
I couldn't get this to work with your verbatim.sty (v1.4i 92/01/20)
that I found on rusinfo. Is the version in AMSLaTeX different or am I
doing something wrong? The input I used is:
\documentstyle[verbatim]{article}
\newenvironment{zcode}{\begin{quote}\begin{verbatim}}%
{\end{verbatim}\end{quote}}
\begin{document}
\begin{zcode}
Quoted verbatim text.
\end{zcode}
\end{document}
The results with emTeX 3.0 and LaTeX 3/25/92 are:
Runaway argument?
! File ended while scanning use of \next.
<inserted text>
\par
<*> &lplain test
--
Gunars V. Lucans -- gunars@spss.com -- SPSS Inc, Chicago, USA
Technical Details
Message-ID:
<gunars.712422900@spssig>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!kuhub.cc.ukans.edu!spssig.spss.com!gunarsReferences:
<QePh2i600WB6MJKENo@andrew.cmu.edu> <SCHOEPF.92Jul24111912@quattro.sc.ZIB-Berlin.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!kuhub.cc.ukans.edu!spssig.spss.com!gunars Newsgroups: comp.text.tex Subject: Re: LaTeX \newenvironment and \verbatim Message-ID: <gunars.712422900@spssig> From: gunars@spss.com (Gunars V Lucans) Date: 29 Jul 92 15:15:00 GMT References: <QePh2i600WB6MJKENo@andrew.cmu.edu> <SCHOEPF.92Jul24111912@quattro.sc.ZIB-Berlin.de> Organization: SPSS Inc. Nntp-Posting-Host: spssrs7.spss.com Lines: 38