Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!s.u-tokyo!is.s.u-tokyo!ken-w From: ken-w@is.s.u-tokyo.ac.jp (WAKITA Ken) Newsgroups: comp.text.tex Subject: Re: How do I comment-out a block of TeX Message-ID: Date: 24 Jan 91 02:08:33 GMT References: <29555@usc> Sender: news@is.s.u-tokyo.ac.jp Distribution: comp Organization: Dept. of Information Science, the Univ. of Tokyo, Japan. Lines: 20 In-reply-to: siemsen@sol.usc.edu's message of 24 Jan 91 09:29:15 JST 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 > tried \ifnum0>1 ... \fi, but TeX barfed with "missing \fi" after 2000 > or so lines. Yes. Try the following macro. \newcommand\comment[1]{} \comment{ The text you want to comment out. } -- WAKITA Ken (ken-w@is.s.u-tokyo.ac.jp) Masuda Group., Dept. of Info. Sci., Univ. of Tokyo.