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 o77E07pr027944 for ; Sat, 7 Aug 2010 16:00:09 +0200 Received: (qmail 4252 invoked by alias); 7 Aug 2010 14:00:01 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 07 Aug 2010 14:00:01 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx050) with SMTP; 07 Aug 2010 16:00:01 +0200 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 o77DvVK8032018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 Aug 2010 15:57:31 +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 o76M14OI015867; Sat, 7 Aug 2010 15:57:24 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 450671 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 7 Aug 2010 15:57:24 +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 o77DvOqq015828 for ; Sat, 7 Aug 2010 15:57:24 +0200 Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with SMTP id o77DvYNf031315 for ; Sat, 7 Aug 2010 15:57:38 +0200 Received: (qmail invoked by alias); 07 Aug 2010 13:57:09 -0000 Received: from HSI-KBW-091-089-143-022.hsi2.kabel-badenwuerttemberg.de (EHLO [192.168.0.197]) [91.89.143.22] by mail.gmx.net (mp072) with SMTP; 07 Aug 2010 15:57:09 +0200 X-Provags-ID: V01U2FsdGVkX1/9w2QuWFf9o9L+AbbVTrY2U4P6leJDDDh3BM8DWC xzp3AxFWLv5L1V User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Lanikai/3.1.1 MIME-Version: 1.0 X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7D4765EF6217EB5F2B9FD392" Message-ID: <4C5D662F.60101@gmx.de> Date: Sat, 7 Aug 2010 15:57:03 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Arno Trautmann Subject: optional (#1:#2) with xparse To: LATEX-L@listserv.uni-heidelberg.de Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p4WX0t+AtsdW/aoqQDaDNIQLCMLWp5vtahWH6OjQH0Xrxvo+tYSlkyjhH0U8 n8crx6ATRm6XuLzA10hKwA7NN+BxNEBISer4ngubvh9z3W31Lid96SEY1O4NR4SR4cYCdHlutX06 Ry8rvDxEK5Z2wmhV1; 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: 6352 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7D4765EF6217EB5F2B9FD392 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, I am looking for a way to define an environment that takes a range as an optional argument. This should be given in the following way: \begin{environment}(15:5.23) with a default value, say (1:3). The two limits should then be parsed as single arguments which are separated by the colon. I am trying to do this with xparse and got some possible solutions with the u and d argument type, but I didn=E2=80=99t manage to get the parenth= eses optional. I guess what I need is some kind of an optional u argument =E2=80= =A6 Does anyone have a suggestion how to easily implement these requests? cheers Arno --------------enig7D4765EF6217EB5F2B9FD392 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxdZjMACgkQcYXUw/rerZ49bQCcC1TMrHyOoGEwmjSF7SQfcnKD YEAAn0f4MGMSaZPrMjT+nPuACJ8LGPdQ =xSyH -----END PGP SIGNATURE----- --------------enig7D4765EF6217EB5F2B9FD392--