Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id v3N9bXkj017742 for ; Sun, 23 Apr 2017 11:37:34 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx117 [212.227.17.5]) with ESMTPS (Nemesis) id 1MlvOF-1cL9iG2mf5-00j1hb for ; Sun, 23 Apr 2017 11:37:27 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTP id v3N9bOdc010714; Sun, 23 Apr 2017 11:37:24 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 41A74126AC2; Sun, 23 Apr 2017 11:37:24 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 16689117 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 23 Apr 2017 11:37:24 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 385EF122275 for ; Sun, 23 Apr 2017 11:37:24 +0200 (CEST) Received: from comedy.dante.de (comedy.dante.de [176.28.54.184]) by relay.uni-heidelberg.de (8.15.2/8.15.2) with ESMTPS id v3N9bJE1010676 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sun, 23 Apr 2017 11:37:21 +0200 Received: from Franks-MacBookPro.fritz.box (p200300752E464D00E17500E63D21F6E9.dip0.t-ipconnect.de [IPv6:2003:75:2e46:4d00:e175:e6:3d21:f6e9]) (authenticated bits=0) by comedy.dante.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v3N9bG8O003289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 23 Apr 2017 11:37:18 +0200 References: <87h91h7lsa.fsf@fencepost.gnu.org> <710D47B3-391D-42C2-8D5B-B58AB23F29B1@gmx.at> <76ba7fdb-921c-ec17-e34c-bd5562b3960e@gmail.com> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-DANTE-Spam-Score: -0.917 () BAYES_00,RDNS_DYNAMIC,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: <23eee84b-ea67-be90-6ac4-483f38a54452@latex-project.org> Date: Sun, 23 Apr 2017 11:37:19 +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: 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:jRRXaDNZUkY=:hbUdpEEO+z3W7TG+V/n6j3eTej Dd4h1vJ7rkCifdOIfNGkFDj2vhJEGB1H5ryg7/IKWvDMpY+SP0mzy6tpVzTtL1dkD+0skPSfm cUq/dHWFJZWLwRXpDZGRPnC+1B/tyHKcTLYYpETywOxYyk268lddYosjewtTPWPReGc0q9aMu uG4gCXYhsNYWzduT+goVOpT3kJ4GTT1Yez98cYlgEUvT4sLe1UHzlxhvcfXc1f8WaT0t0R+1G v0omthDEPSykR4B5ISZUF9M07j5Y1mnnozQ7XZzk4JjtHlbC+vv/l5OB7zNPYGTYmZ0FcMA+r Yq66/+KTO+fuj6hG01Bb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G7VhDAvzvDoG2m liZWI7Ad8F+a75rgSXOuvVKrBPOdhdRmgEScQU31UQ0U6wT3wkDKfFCRxKsFjC/t0h4h9nmJ1 pfmXSjYZCZn63/rKpfH86wwpFVg0yfbZWdtIvnxiFDjaLts5MpRnwng3N4dSD/HM9APNSKkeE nf01lBnbkdZIoIHR69ny/Jc2l382i+3928soq+yCE4Y7nmkj6oqmuNg2qZWYszw== X-UI-Loop:V01:+v1z0w5pNpU=:BMcOA473KWhv27VI0nwLFzLA02GCmKHUBnl7aD9aQJo= X-UI-Out-Filterresults: notjunk:1;V01:K0:bItHFxdoNHw=:BQ60fXqrvlFiSUIxClAKi3 +c6fVJK6YTtdoPme/lBsUCOjMPyQ64WPdHjb+Fea2vAxfa7ogFfs2JmTua9CrlZmpiZyL2GS/ TgpjE8Xdsx+CY/QGS5ZPh5sXYiB9Cr+06e0+PVUg1FMuGz/CxtWIna+0835dyXhbrl6Z0GpPI ECRHatps7Sz8E+o1YpCsIpPH0/ZtxW5CB0QLnWBVILUKhtb5o9n0L0WMgEKKE3y1mQTKrQH+K zD3rfUGk+IOk0vws0UhGGVVSUSrkXIzt2p9fCcXjfVF8j79jnDILT2C91PAc/G3BjKqbZDrTm Fat//4zgOEp6InCbBZYkwuViFS/0sms654pgRuAoALk8Dgc6mi087aseb4GGYcDN/3kPMToD4 Oiif1sRQo2UPWCuk22xrYOkUQ6TggncAa0tnoQwpm44CVPfrHCdqOYc+aib79vZTcF9LGKaqz m5+9/uS98A== Status: R X-Status: X-Keywords: X-UID: 7970 Am 23.04.17 um 10:50 schrieb Benedikt Vitecek: > This is only a rough idea and I would need to figure out how to implement it, but it could solve (at least > for me) the category code problem. as I expected, babel does have an option to enable the shorthands already in the preamble: [KeepShorthandsActive] however, as I also expected that doesn't work in all cases as packages loaded afterwards may have a problem with that. So \usepackage{xparse} \usepackage [KeepShorthandsActive] {babel} solves your problem but if babel is loaded before xparse, that will break. On the other hand, what might be enough in your case is simply changing the catcode of < and > before making your definition since we know that it will be active by the time of begin document (ie when your definition is used): \documentclass[spanish]{scrartcl} \usepackage{xparse} \usepackage{babel} \catcode`\< = 13 \catcode`\> = 13 \NewDocumentCommand \Something { d<> m } { Optional: #1 \\ Mandatory: #2 } \catcode`\< = 12 \catcode`\> = 12 \begin{document} \Something{World} \end{document} Of course that only works because we know that spanish will activate them, so this is not robust in a general way. Guess the correct answer is drawingboard and make xparse babel aware and long term a better shorthand interface / integration frank