From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26577 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: multiple line comments Date: Tue, 28 Mar 2006 10:05:51 -0500 (EST) Message-ID: References: <44290EEF.2010608@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143558402 28514 80.91.229.2 (28 Mar 2006 15:06:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 15:06:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 28 17:06:39 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOFlu-0002wp-L5 for gctc-ntg-context-518@m.gmane.org; Tue, 28 Mar 2006 17:06:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D421D127E1; Tue, 28 Mar 2006 17:06:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18733-09-6; Tue, 28 Mar 2006 17:06:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 663AE127DA; Tue, 28 Mar 2006 17:06:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C2F2127D5 for ; Tue, 28 Mar 2006 17:06:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18733-09-5 for ; Tue, 28 Mar 2006 17:06:02 +0200 (CEST) Original-Received: from beyondborders.mr.itd.umich.edu (beyondborders.mr.itd.umich.edu [141.211.93.146]) by ronja.ntg.nl (Postfix) with SMTP id 56545127DA for ; Tue, 28 Mar 2006 17:05:57 +0200 (CEST) Original-Received: from aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) by beyondborders.mr.itd.umich.edu (smtp) with ESMTP id k2SF5pYY016941 for ; Tue, 28 Mar 2006 10:05:56 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <44290EEF.2010608@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26577 Archived-At: <--- On Mar 28, Taco Hoekwater wrote ---> > > > andrea valle wrote: >> Dear all, >> It's a bit tiring to start many lines always with %. >> Is it possibile to have multiple line comments like in C >> >> \* >> comments here >> *\ > > \iffalse > comments here > \fi Be careful with this. From the UK tex FAQ The simple \newcommand{\gobble}[1]{} and \iffalse ... \fi aren't really satisfactory (as a general solution) for comments, since the matter being skipped is nevertheless scanned by TeX, not always as you would expect. The scanning imposes restrictions on what you're allowed to skip; this may not be a problem in today's job, but could return to bite you tomorrow. For an example of surprises that may come to bite you, consider the following example (derived from real user experience): \iffalse % ignoring this bit consider what happens if we use \verb|\iftrue| -- a surprise \fi The \iftrue is spotted by TeX as it scans, ignoring the \verb command; so the \iffalse isn't terminated by the following \fi. Also, \gobble is pretty inefficient at consuming anything non-trivial, since all the matter to be skipped is copied to the argument stack before being ignored. Aditya