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 o8I8BkrZ008017 for ; Sat, 18 Sep 2010 10:11:48 +0200 Received: (qmail 1893 invoked by alias); 18 Sep 2010 08:11:41 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 18 Sep 2010 08:11:39 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx033) with SMTP; 18 Sep 2010 10:11:39 +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 o8I8AOqm004204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Sep 2010 10:10:24 +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 o8HN2dXP020290; Sat, 18 Sep 2010 10:10:09 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 438677 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 18 Sep 2010 10:10:09 +0200 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 o8I8A9VR000898 for ; Sat, 18 Sep 2010 10:10:09 +0200 Received: from anchor-post-2.mail.demon.net (anchor-post-2.mail.demon.net [195.173.77.133]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o8I8ABY0004094 for ; Sat, 18 Sep 2010 10:10:14 +0200 Received: from morningstar2.demon.co.uk ([80.176.134.7] helo=palladium.local) by anchor-post-2.mail.demon.net with esmtp (Exim 4.69) id 1OwsUe-0006go-mE; Sat, 18 Sep 2010 08:09:58 +0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 References: <4C93A430.1020103@morningstar2.co.uk> <20100917180303.GA7348@oberdiek.my-fqdn.de> <19603.49961.484432.456512@morse.mittelbach-online.de> <4C93DCDA.3010707@morningstar2.co.uk> <19604.28880.24959.737588@morse.mittelbach-online.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4C9473D3.1030903@morningstar2.co.uk> Date: Sat, 18 Sep 2010 09:09:55 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Option parsing bug or 'feature'? To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <19604.28880.24959.737588@morse.mittelbach-online.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p77e5KAPs1l6v/Sb97LojnDtMgfETrECMLUO9erHzOJe+OynZRhvlGqb5A0X bbiCt2rAnnct/NAlbHMvoAL6GY+23tB3khNK7avqRsgMMVBwlWgrgcyEiCy6eQ7DbfhonniFyqTI PpJNA==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: 6405 On 18/09/2010 08:57, Frank Mittelbach wrote: > Joseph Wright writes: > > On 17/09/2010 20:36, Frank Mittelbach wrote: > > > since you already looked at the different implementations, any suggestion on > > > how to best improve the LaTeX2e behaviour? > > > > I take it that this does possibly count as a bug then, rather than as a > > 'feature'? > > it doesn't count as a bug I would say, for the simple reason that per > specification the optional argument of \usepackage doesn't support a key value > list but just a list of option names (that themselves have no spaces) > separated by comma. Only later packages appeared that internally added > something like keyval and manipulated the received option list from > \usepackage as a key/val list, but that happens after \usepackage has already > removed spaces and unfortunately in this case also the braces. > > pragmatic approach: > > you state that one needs to say ={,} to make things work as this is a fairly > seldom issue > > more elaborate approach > > change \@pass@ptions so that it only removes spaces up front, around a comma > and at the end > > problem with the latter is that the current definition of \@pass@ptions is at > the core of what LaTeX does, ie it is used by every package and any change in > its behaviour might result in unexpected changes somewhere. > > so at the moement I'm a bit reluctant to make a change on the 2e-level for the > sake of of one very specific case unless it is fairly minimal and appears to > be "save". But I'm open to suggestions which is why I asked > > frank > The bug as I see it is that here the code not only removes the space but also the brace group around a single token. I assume you'd get the same with [ word {a} word ] => 'wordaword' not 'word{a}word' which isn't as far as I know detailed. -- Joseph Wright