Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id oBT0cqBl020159 for ; Wed, 29 Dec 2010 01:38:53 +0100 Received: (qmail 29628 invoked by alias); 29 Dec 2010 00:38:47 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 29 Dec 2010 00:38:46 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx082) with SMTP; 29 Dec 2010 01:38:46 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id oBT0abR0024607 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Dec 2010 01:36:38 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id oBSN1592028800; Wed, 29 Dec 2010 01:36:28 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 769988 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 29 Dec 2010 01:36:28 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id oBT0aSHI002640 for ; Wed, 29 Dec 2010 01:36:28 +0100 Received: from fmmailgate05.web.de (fmmailgate05.web.de [217.72.192.243]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id oBT0a4FY019691 for ; Wed, 29 Dec 2010 01:36:08 +0100 Received: from mwmweb010 ( [172.20.18.19]) by fmmailgate05.web.de (Postfix) with ESMTP id A844364387A1; Wed, 29 Dec 2010 01:36:04 +0100 (CET) Received: from [2.208.133.107] by mwmweb010 with HTTP; Wed Dec 29 01:36:04 CET 2010 References: <534042.27913.qm@web56906.mail.re3.yahoo.com>, <4D19B128.4080209@imf.au.dk> <1770264784.31063.1293534026745.JavaMail.fmail@mwmweb011>, <1477280164.3360115.1293538024193.JavaMail.fmail@mwmweb010>, MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-UI-Message-Type: mail X-UI-ATTACHMENT-ID-POSTFIX: 63ff74fc-a972-4687-be9b-c8c30853b00b X-Priority: 3 Importance: normal Sensitivity: Normal X-Provags-ID: V01U2FsdGVkX19KpEfbe2m7YNQb/C2JhtbqulnlJsKiy7IFLiv6XlA1Sm+LTBkEL5B8 fjDBebML5SiJJGh0BKmf59NVt18uNA0HVkdhI6M4fJY= Message-ID: <1937220271.3737477.1293582964683.JavaMail.fmail@mwmweb010> Date: Wed, 29 Dec 2010 01:36:04 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Uwe Lueck Subject: Re: [texhax] Defining a command which runs differently based ion input argument To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p6i75npGen84eVAEFK/syJmydi0FWY/mpv/U8VmBifaCvF2S3+hfSnbLfZ3n ZR+hTsJ1p3YW6a1DBrAb27vc45ZlLK5U/fQ4WbyjaWHMnYFMknIdboO82G/HDeU06ePSNvd4fpMx L1TaeEOzOIVcCCkV1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6479 "Philipp Stephani" , 28.12.2010 17:08:27: > Am 28.12.2010 um 13:07 schrieb Uwe Lueck: >> "Philipp Stephani" , 28.12.2010 12:19:02: >>> Am 28.12.2010 um 12:00 schrieb Uwe Lueck: >>>> That is much worse with LaTeX's square brackets for optional arguments, as some scholars use square brackets for ellipsis or redactional insertions (I experienced this several times): >>>> >>>> Title-like\\ % imitating the manuscript's line break and spacing >>>> [unreadable] ipsum dolor sit amet >>> >>> That would be fixed if \@ifnextchar didn't swallow space tokens. [...] >> >> Lorem\\% NOTE: exactly as the manuscript! >> [unreadable] dolor sit amet > > Or > > Lorem\newline % with extra space > [unreadable] ipsum or maybe it's the *comment* character's fault!? It might be an *active* character, analyzing the situation ... or an *interactive* character, asking "are you trying to fool me?" > I know there are many issues with the TeX lexical analyzer and parser, > and the extremely complex rules about spaces is one of them, > but not ignoring space token would at least fix a small number > space-related problems. hm, more seriously: TeX offers many possibilities to the programmer, it's the latter's fault ... (Ahm, in wiki.sty, http://ctan.org/pkg/nicetext, I have implemented some analysis of "first tokens of an input line" to call LaTeX list environments.) Indeed, I originally used the occasion to express my anger about Leslie Lamport's choice of square brackets as "optional argument delimiters". Sometimes it has seemed to me that "angle brackets" would be the better "optional argument delimiters". I am thinking of ednotes, ArabTeX, PicTeX ... But really, it depends on the document's subject matter ... I really wondered if LaTeX3 could offer the choice to authors which should be the optional argument delimiters. More generally (aiming at future TeXs), there really might be more *category codes*, so you could have (i) category codes for "optional argument delimiters" (ii) category codes for "group delimiters", independently of "mandatory argument delimiters" (i.e., one certain character could work like \begingroup, and another like \endgroup; and then think of \hbox\bgroup vs. "\hbox{" ... "box content delimiters") Less seriously, with *ternary* computers, we might have 27 category codes instead of only 16 ... Cheers, bling, Uwe.