Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!inria!crin!masini From: masini@crin.UUCP (Gerald MASINI) Newsgroups: comp.text Subject: ewenvironment in LaTeX Message-ID: <311@crin.UUCP> Date: Thu, 23-Jul-87 12:52:37 EDT Article-I.D.: crin.311 Posted: Thu Jul 23 12:52:37 1987 Date-Received: Sat, 25-Jul-87 11:59:27 EDT Reply-To: masini@crin.UUCP (Gerald MASINI) Distribution: world Organization: C.R.I.N Lines: 53 I'm now just a beginner (no more absolute) with LaTeX, and I would like to define an environment of my own, including some verbatim. Something like that: ------------------------------------------------------------------------ \newenvironment{myenv}{\begin{verbatim}}{\end{verbatim}} \documentstyle{book} \pagestyle{headings} \begin{document} \chapter{Hi} Here it comes: \begin{myenv} Try and try ... again ! \end{myenv} This is the end. \end{document} ------------------------------------------------------------------------ But it doesn't work. This is the most important part of the log file: This is TeX, Version 2.0 for Berkeley UNIX (preloaded format=lplain 86.12.16) 23 JUL 1987 18:45 (es.tex LaTeX Version 2.09 - Released 27 October 1986 (/usr/lib/tex/macros/book.sty Document Style `book'. Released 4 September 1986. (/usr/lib/tex/macros/bk10.sty) ) (es.aux) Chapter 1. ) Runaway argument? ^^M Try and try^^M ... again !^^M\end{myenv}^^M^^MT\ETC. ! File ended while scanning use of \@xverbatim.\par <*> es.tex ? What happened ? Thanks for the help. -- Ge'rald MASINI CRIN (Centre de Recherche en Informatique de Nancy) uucp: masini@crin.crin.fr post: CRIN B.P. 239 54506 Vandoeuvre-les-Nancy Cedex FRANCE phone: +33 83.91.21.45