Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!daimi!kaja From: kaja@daimi.aau.dk (Kaja P. Christiansen) Newsgroups: comp.text.tex Subject: Re: How do I comment-out a block of TeX Message-ID: <1991Jan24.142852.706@daimi.aau.dk> Date: 24 Jan 91 14:28:52 GMT References: <29555@usc> Sender: kaja@daimi.aau.dk (Kaja P. Christiansen) Distribution: comp Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 31 siemsen@sol.usc.edu (Pete Siemsen) writes: >Is there some way to comment out a block of TeX code? We have an option style called "comment". It's not very sophisticated (works on a paragraph, but not in the middle of it), but you may find it usefull. Entering "yes" after prompt will comment-out; entering anything else will not. % Document style option "comment" % usage: \documentstyle[...,comment,...]{...} % \begin{document} % ... % \BeginComment % text % \EndComment % ... % Preserves or discards text between \BeginComment...\EndComment % according to user's wishes. % % Kaja Christiansen / 23 Nov 1988 \typein[\comment]{Enter yes to comment out} \def\@comment{yes} \gdef\BeginComment#1\EndComment{\ifx\comment\@comment\else#1\fi} -- Kaja P. Christiansen Computer Science Department (kpchristiansen@daimi.aau.dk) Aarhus University Phone: +45 86 12 71 88 Ny Munkegade 116, Fax: +45 86 13 57 25 DK-8000 Aarhus C., Denmark