Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r69JhQQE005699 for ; Tue, 9 Jul 2013 21:43:27 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx008) with ESMTP (Nemesis) id 0MhMpO-1Ub8eY1PnO-00Mf1b for ; Tue, 09 Jul 2013 21:43:20 +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 r69Jem37009517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Jul 2013 21:40:48 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r69CZjW2008282; Tue, 9 Jul 2013 21:40:47 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10295045 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 9 Jul 2013 21:40:47 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r69JUldq005358 for ; Tue, 9 Jul 2013 21:30:47 +0200 Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r69JUdiv007484 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Tue, 9 Jul 2013 21:30:42 +0200 Received: by mail-we0-f173.google.com with SMTP id x54so5171617wes.32 for ; Tue, 09 Jul 2013 12:30:39 -0700 (PDT) X-Received: by 10.194.2.13 with SMTP id 13mr16175439wjq.74.1373398239476; Tue, 09 Jul 2013 12:30:39 -0700 (PDT) Received: from palladium.home (host86-186-234-214.range86-186.btcentralplus.com. [86.186.234.214]) by mx.google.com with ESMTPSA id h8sm31924614wie.1.2013.07.09.12.30.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 12:30:38 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 References: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Message-ID: <51DC64DF.6000902@morningstar2.co.uk> Date: Tue, 9 Jul 2013 20:30:39 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Initialize l3keys definition from clist To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by relay2.uni-heidelberg.de id r69Jem37009517 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:hNIMVaEQP6A=:DERiDmJNXZOnH9u2n6Isw4 B9T74xvczXuhX23pWsIKZwhpXxGvJXlJLVk1ga3ReDG8Gdw9bHJHb96vyrz8hcq+62SmBg5 szIEg6lHfsURqJ9zz+eyC9iX2Urs15Ar7K8PDVpSrnRS7djfUErH9k8ogCP7nOHqyiijIBF Y0/8y3Mg0tFTaz8oO6nclslxarjL1oh8xp2Vlbg3NyJevrzHoAtm0mExua5xnztUXuxvW/A yANdRDovqHNgsNs8E+4Sd02n5TRhRAeMATtl6tzgzZ6uCigT55P5lclOKXBqRdgJgOog3li 3viXgo2kzBR6x6yZ5AcG7IxUbcjvCr1QfLzwmbMXpxgl2B1YPOnnhivRY1t2E6bLl9LAmrk L7NouTnE7UMiDhMPyNink1LScreUtPa8E8MNQk7nbeViUDAnToql8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SdwksBO8wj7eq4ynnARPR9Si lIyJLogcXUq2TBxISj3KkbNV06UQQ/HpHBVKje/2yYmLfPD+Ew96l0E1jEc/pFlsZ44TsK3 GDREup/Tn+vJCC9lQpHq/A4k53OGwG3giKK7Yj2vlmmOyZ1+zoDlGjZA0o6TOFFzQcLGP3q vYrpsSYt8 X-UI-Loop:V01:xITUwWPR0EU=:svm5vAR8mv4ZFEACZuhox94jJ6vTfCfnwukJOcrh85Y= Status: R X-Status: X-Keywords: X-UID: 7225 On 20/06/2013 23:39, Joel C. Salomon wrote: > On TeX.SE (http://tex.stackexchange.com/q/120258/2966), Prof. Enrico > =E2=80=9Cegreg=E2=80=9D Gregorio helped me set up the below code, which= sets up an > l3keys definition from a clist. >=20 > Note that the property `.generate_choice:V` has to be created; is it > perhaps a useful addition to l3keys? >=20 > Note also the way I've set the default value to the first element of > the clist. I would assume that the "idiomatic" way would be >=20 > font .initial:o =3D { \clist_item:Nn \c_jcsfonts_clist {1} }, >=20 > or something like that, but of course, the property `.initial:o` > doesn't exist. And unlike the rest of Expl3, there is no clean way to > generate variants of l3keys properties; egreg's code needed to call on > `\__`-private functions. Might this, too, be a useful addition to the > package? >=20 > Code follows. >=20 > =E2=80=94Joel Salomon Extended key property options have been added to the code, and will be appearing in the next CTAN update. That is likely to be this week, depending on the other l3keys requests! At present, allowing arbitrary key property variants seems unlikely. Hopefully we can supply the correct tools 'out of the box'. --=20 Joseph Wright