Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!kvetching.Berkeley.EDU!douglis From: douglis@kvetching.Berkeley.EDU (Fred Douglis) Newsgroups: comp.text.tex Subject: Re: Ignoring text in LaTeX Keywords: LaTeX, comments, styles Message-ID: <23890@pasteur.Berkeley.EDU> Date: 11 Apr 90 05:49:06 GMT References: <7147@cps3xx.UUCP> Sender: news@pasteur.Berkeley.EDU Reply-To: douglis@kvetching.Berkeley.EDU (Fred Douglis) Organization: U.C. Berkeley Sprite Project Lines: 25 I got this from Ed Wang a while ago... works for me. Fred % comment.sty % 25-Oct-89 % By Ed -- modified from verbatim in /usr/loca/lib/tex82/latex.tex % \begin{comment} % \end{comment} \makeatletter \begingroup \catcode `|=0 \catcode `[= 1 \catcode`]=2 \catcode `\{=12 \catcode `\}=12 \catcode`\\=12 |gdef|@xcomment#1\end{comment}[|end[comment]] |endgroup \def\@comment{\let\do\@makeother \dospecials\catcode`\^^M=10\def\par{}} \def\begincomment{\@comment\@xcomment} \makeatother \newenvironment{comment}{\begincomment}{}