Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v3LFZXvm031437 for ; Fri, 21 Apr 2017 17:35:34 +0200 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx116 [212.227.17.5]) with ESMTPS (Nemesis) id 1M2dxH-1d0DXk1vLT-0049GZ for ; Fri, 21 Apr 2017 17:35:27 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v3LFZNAE006974; Fri, 21 Apr 2017 17:35:23 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 29F3912722B; Fri, 21 Apr 2017 17:35:23 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 16673042 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 21 Apr 2017 17:35:23 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 22FAF122845 for ; Fri, 21 Apr 2017 17:35:23 +0200 (CEST) Received: from comedy.dante.de (comedy.dante.de [176.28.54.184]) by relay2.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id v3LFZIEx006841 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 21 Apr 2017 17:35:20 +0200 Received: from [IPv6:2003:75:2e0d:9200:4964:6bfe:da29:bb47] (p200300752E0D920049646BFEDA29BB47.dip0.t-ipconnect.de [IPv6:2003:75:2e0d:9200:4964:6bfe:da29:bb47]) (authenticated bits=0) by comedy.dante.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v3LFZFwG001649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 21 Apr 2017 17:35:17 +0200 References: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed X-DANTE-Spam-Score: -1.649 () BAYES_00,HELO_MISC_IP,SPF_FAIL X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 X-Scanned-By: MIMEDefang 2.71 on IPv6:2a01:488:67:1000:b01c:36b8:0:1 Message-ID: <67607fa8-d730-2502-ce09-7dfa9b800f54@latex-project.org> Date: Fri, 21 Apr 2017 17:35:09 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Frank Mittelbach Subject: Re: Using d<> and babel with option spanish To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-MIME-Autoconverted: from 8bit to quoted-printable by relay2.uni-heidelberg.de id v3LFZNAE006974 Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:Q877nTqsr28=:bORrFP5G0rUjFWntWdDDR/vl/t 6O8xq6Dec1axjghMrJkCCXct9G89Bi26Cfqotw3G4HKLPipOuaM478QE2iEYj5vTYJFH9BETM NQXpvw1KOVhZhyMh2gY6+fqUmM5YAvpxzZV+sShzzwlt6cAqLOqw/rG+vHoaHyB5eu6lPzTWA 4TYQsbgpRqXFmavItleK28raoGFMk9zoMW74N82Ze1ItuMeM1SslDjj7xnHREdWpl+Sfdr8Z8 ANq6xOkEkGksXOdHzreShyeIdKyclnnBj/XmfHckkgoQrfmm8IGMMXjvpKavKqmdihZMw+ZfE fAXvBqP7V5idu0yLKQ4ovVpMrRc5WHmn5/HIYanSNiwWJe16KVU0BpjD1MFiybhsi/kGzA4YM B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a6GeCXzylS2 tI7MuGpZUTDT/Irzf/73p04ld/7PB8aFxJisBHxyF91UMU8Vuw9dNyfsqzKpq8JkGD9/RBZSa ogrDiC71TJnH1lIw6u+rgGZ1SQgzeJLoSxs1aYokyWzLL7mtDhPMzd8Z2FeroIA== X-UI-Loop:V01:/YlHIuVnhTM=:3NPjiZEclNAxUYMgYHDqS/RUiYC0DSGW1R7rfPY7yys= X-UI-Out-Filterresults: notjunk:1;V01:K0:c2yjtv6hOAM=:qUbT+LG2nSAW/S8RRfjP+d D8QJTYvgoslOUr3qeWCTikZEwRqSjj4X/gEWvtyjfrWqZ1quQ8sQFA/45+uHvQmd1WgglMOEG dTMRpZsyQy1cBZdCKfIEbvEAY3R7jH2AGsH/2vjzGTxMx0nGlKjsZgD2lwcEObfqnR+fOzzsl 4lKqxvm/lbimS1brjQUtFMVDpwBYaN2DvF6Nr7yo68Hmqk7fwVtOjDOO5sqRIOz4Em+ODK12S 46tr6o9socvvfIwbfyuONpk278l9545CGklaF9K1L8q++4Z6dwaPnpvVIXoerVho4Y1QxIuiK 9jwaRagYCYlXzVtKfrLIKE/urarM/CChwpdDgjK1LNyGfnkqD+dYagECTDW854GbD5A+pEk5U VeBZl0mcBJwaO6O60Tku7v9ZNFwQsVj+nCCLEZsvSdviyfQAQLzhQWF8nprTtbcLMqTQiVJ+9 iz/I24rkAw== Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by h1439878.stratoserver.net id v3LFZXvm031437 Status: R X-Status: X-Keywords: X-UID: 7961 Am 21.04.2017 um 16:49 schrieb Benedikt Vitecek: > For a command I used the argument specifier d<> (which I thought was a > good idea), > which doesn’t work properly in combination with ‚babel‘ and the language > option > ‚spanish‘: > > \documentclass[spanish]{scrartcl} > \usepackage{babel} > \usepackage{xparse} > \NewDocumentCommand \Something { d<> m } > { > Optional: #1 \\ > Mandatory: #2 > } > \begin{document} > \Something{World} > \end{document} the problem is that babel only enables < as an active character after begin document, i.e., when you make that definition in the preamble "<" is still a normal character (\catcode 12 presumably, not checked). After \begin{document} it is an active char and therefore the xparse scanning no longer matches. If you move the definition there your document works as expected. In my opinion there is nothing xparse or expl could do here, it needs a different shorthand interface in babel --- it might be that there is something there to enable shortcuts already in the preamble This is a tricky area as babel hides the fact for a reason: there are probably a good number of packages that would fall over if the mechanism is exposed while they are setting up their internals. Basically, this is an issue with legacy code that is difficult to resolve in a perfect way as long as those interfaces aren't universally available but are added by packages. This is all a bit of hand-waving as I haven't looked at the babel internals for a while; so perhaps Javier or somebody else can give a more accurate answer. frank