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 p4BJN31d022404 for ; Wed, 11 May 2011 21:23:04 +0200 Received: (qmail 19714 invoked by alias); 11 May 2011 19:22:58 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 11 May 2011 19:22:58 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx009) with SMTP; 11 May 2011 21:22:58 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p4BJKqdm008576 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 21:20:52 +0200 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 p4BH6lYL003961; Wed, 11 May 2011 21:20:52 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1254820 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 11 May 2011 21:20:51 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p4BJKpvJ005242 for ; Wed, 11 May 2011 21:20:51 +0200 Received: from anchor-post-3.mail.demon.net (anchor-post-3.mail.demon.net [195.173.77.134]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p4BJKgin023970 for ; Wed, 11 May 2011 21:20:46 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=palladium.local) by anchor-post-3.mail.demon.net with esmtp (Exim 4.69) id 1QKExd-0001jz-pL; Wed, 11 May 2011 19:20:42 +0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 References: <4DCA93CC.5020605@morningstar2.co.uk> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4DCAE189.9020204@morningstar2.co.uk> Date: Wed, 11 May 2011 20:20:41 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: xparse and space skipping 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 (eXpurgate); Detail=5D7Q89H36p6myV/soHys3coEPsGID0sdE1FcNpJSG/In5BO9qlKXHOy1pR4KB8VKzTl8D 69hed2Xr4PBsBs+TM4GOLqkW9i5xQ9850Vz+zbtXLG/2f9GoK8sdchvXrZF9t0MRXKkZdlSnTJFl H5HaVxZFrJoAJw9HylwjE6yhKTSj920P3iNpR0Az38SkNiOwKWsmlq4pVazO8nPALelXg==V1; 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: 6739 On 11/05/2011 20:01, Bruno Le Floch wrote: > Not quite true. For instance, amsmath redefined \\ not to skip spaces > when looking for an optional argument, I believe. And that works > because \\ is a control symbol, not a control word. I think this > choice of behaviour really needs to be supported, since it leads to > surprises for the end-user otherwise. > >> really correct! (At the same time, the implementation would be slightly >> easier to follow if this change was made.) > > On the other hand, emulating LaTeX2e arguments with space skipping > seems needed as well. Is it possible to get the best of the two worlds > with a "o_no_skip" argument specifier? Or more generally a modifier, > say K, which makes the next argument keep spaces (except perhaps for m > arguments where it should produce an error)? > > \DeclareDocumentCommand {\\} { Ks Ko } {...} We did do that at one point, but the problem then became that there is not a hard-and-fast rule. (While the AMS might be very clever in their redefinition, I'd prefer to be consistent with things like the classic "\item [" case even if it means rembering to do "\item{} [" and "\\{} [".) (As a user, I'd like to see one reliable syntax, and not have to read package documentation to explain why in one case "\foo{...} [...]" works but in another case "\baz{...} [...]" fails.) -- Joseph Wright