🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #547

Re: LaTeX \newenvironment and \verbatim

#547
From: Rainer Schoepf
Date: Wed, 29 Jul 1992 17:23
31 lines
1904 bytes
In article <gunars.712422900@spssig> gunars@spss.com (Gunars V Lucans) writes:

   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 style documentation explains why this is not possible. You have to write:

	\newenvironment{zcode}{\begin{quote}\verbatim}%
			      {\endverbatim\end{quote}}

The documented version (verbatim.doc) can be found on rusinfo in
soft/tex/latex-style-supported/verbatim.
--

   Rainer Schoepf
   Konrad-Zuse-Zentrum                       ,,Ich mag es nicht, wenn
    fuer Informationstechnik Berlin            sich die Dinge so frueh
   Heilbronner Strasse 10                      am Morgen schon so
   W-1000 Berlin 31                            dynamisch entwickeln!''
   Federal Republic of Germany
   <Schoepf@sc.ZIB-Berlin.de> or <Schoepf@sc.ZIB-Berlin.dbp.de>
Technical Details
Message-ID: <SCHOEPF.92Jul29182341@quattro.sc.ZIB-Berlin.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!gibb.math.fu-berlin.de!Schoepf
References: <QePh2i600WB6MJKENo@andrew.cmu.edu> <SCHOEPF.92Jul24111912@quattro.sc.ZIB-Berlin.de> <gunars.712422900@spssig>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!gibb.math.fu-berlin.de!Schoepf
From: Schoepf@sc.ZIB-Berlin.de (Rainer Schoepf)
Subject: Re: LaTeX \newenvironment and \verbatim
In-Reply-To: gunars@spss.com's message of 29 Jul 92 15:15:00 GMT
Message-ID: <SCHOEPF.92Jul29182341@quattro.sc.ZIB-Berlin.de>
Sender: news@math.fu-berlin.de (Math Department)
Reply-To: Schoepf@sc.ZIB-Berlin.de
Organization: Konrad-Zuse-Zentrum fuer Informationstechnik Berlin
References: <QePh2i600WB6MJKENo@andrew.cmu.edu>
 <SCHOEPF.92Jul24111912@quattro.sc.ZIB-Berlin.de>
 <gunars.712422900@spssig>
Date: Wed, 29 Jul 1992 17:23:41 GMT
Lines: 31