Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uwm.edu!psuvax1!ukma!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.text.tex Subject: Re: How do I comment-out a block of TeX Message-ID: <1991Jan25.000705.5172@NCoast.ORG> Date: 25 Jan 91 00:07:05 GMT References: <29555@usc> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.text.tex Distribution: comp Organization: North Coast Computer Resources (ncoast) Lines: 20 As quoted from by ken-w@is.s.u-tokyo.ac.jp (WAKITA Ken): +--------------- | In article <29555@usc> siemsen@sol.usc.edu (Pete Siemsen) writes: | > Is there some way to comment out a block of TeX code? Yes, I can | > insert a percent sign at the front of every line, but I want something | > simpler, like C's "#if 0" and "#endif" preprocessor directives. I | | Yes. Try the following macro. | \newcommand\comment[1]{} +--------------- This will blow up after far fewer than 2000 lines... macro arguments are not expected to be large, so there isn't much memory set aside for them. ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY