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 r9JBSIAI009296 for ; Sat, 19 Oct 2013 13:28:19 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx005) with ESMTPS (Nemesis) id 0M5ZdY-1Vvlki3rPE-00xZWC for ; Sat, 19 Oct 2013 13:28:12 +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 r9JBP6kd016178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Oct 2013 13:25:06 +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 r9J86624022632; Sat, 19 Oct 2013 13:25:05 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10483976 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 19 Oct 2013 13:25:05 +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 r9JBP5cs031347 for ; Sat, 19 Oct 2013 13:25:05 +0200 Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.162]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9JBOwqg005749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 19 Oct 2013 13:25:01 +0200 X-RZG-AUTH: :L2MKYUGrb9+q8Zsl+C/bYqaGdZg1h+R9iK+e0w8x2hkrZ4xVEGW1T3o7fHEK/4C7v00q X-RZG-CLASS-ID: mo00 Received: from unimatrix0.borg (HSI-KBW-134-3-119-138.hsi14.kabel-badenwuerttemberg.de [134.3.119.138]) by smtp.strato.de (RZmta 32.9 DYNA|AUTH) with (TLSv1.0:DHE-RSA-AES256-SHA encrypted) ESMTPSA id z01995p9JAPBo3 for ; Sat, 19 Oct 2013 13:24:58 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 References: <52623D5C.1090607@clear.net.nz> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sXLGiU2ergks3ulc5LdEcS3mgIT5kJN8n" Message-ID: <52626C15.50809@mychemistry.eu> Date: Sat, 19 Oct 2013 13:25:09 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Clemens Niederberger Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <52623D5C.1090607@clear.net.nz> 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:XxYa86EIeDs=:n42uH8NXjEZxexNMzqVjruC4k8 mhAcjnuZ+GIwIfTnrxNUV/ov5KfFIM1Q6sl8LFq9E2VNuqXrjgyv1WTKvSci71IIMbh4Nb0Tp InQjPtm62qZcgxxlEutg3srCBJaIM9lvdh6vxkrm383sH7C8wp1gvvahvJOSwndz9ZIQXGdt8 5qSKYuTfaXYYXPgQnxwjlhKMrSYhJwVK2e9VWAN1H5PhpGbB9cru0vMAGHuug1VBA3VbQ6dUf vMeOJ8H4PTALT+Lyz/C2Hc8AVBBee4CApNcMSZv4CzTQHboM2DeVtBtHmKvP3BerU9zXvRp+g wE+2MKCG9MHEbNnWxi82qBVQrTo1skjsMlCeYPr4rbq3568roAvgNNqew763J2zjMlVW1gUHJ ZYydFe3Jt4mRyEl21+V68J4oCF13Kg+ERM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2Qf2Ign1AGZn/ftbFUt0gp7/cJUm/J4egqyvasYBEZHIHMGfaHuVAVbjYVKP25/lYjLZpEW avDAwnZfDtyFuq2bBJg8= X-UI-Loop:V01:V/gucv4QMGM=:+ULDT9rtC6kK1BtNTH4hP7xRtBJlSCb4QFlCoijGXfU= Status: R X-Status: X-Keywords: X-UID: 7290 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sXLGiU2ergks3ulc5LdEcS3mgIT5kJN8n Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 19.10.2013 10:05, schrieb Andrew Parsloe: > I thought (naively) that writing >=20 > \tl_set:Nx \l_tmpa_tl { \tl_to_uppercase:n {text} } >=20 > would put TEXT in the variable \l_tmpa_tl (as revealed by \tl_show:N > \l_tmpa_tl). It doesn't, and nothing else that I've tried does either. > What is the recipe for getting \l_tmpa_tl to contain TEXT, starting fro= m > text? >=20 > Andrew \tl_to_uppercase:n is a wrapper around the primitive \uppercase which is not expandable. That's probably the reason why \tl_to_uppercase:n isn't expandable either. There is however \tl_expandable_uppercase:n which I believe works by expandably replacing letters with their uppercase versions: \documentclass{article} \usepackage{expl3} \begin{document} \ExplSyntaxOn \tl_set:Nx \l_tmpa_tl { \tl_expandable_uppercase:n { text } } \tl_show:N \l_tmpa_tl \ExplSyntaxOff \end{document} Best, Clemens --=20 Clemens Niederberger Public PGP Key ID: 65CCDFE7 http://www.niederberger.com.de/ --sXLGiU2ergks3ulc5LdEcS3mgIT5kJN8n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSYmwfAAoJEJ9ZtHllzN/nQRoIAKtdZFQf0ihsPEkZbrmebaMH mvo/jdmachNzcXC26FXL5dimEjnKbrLouop84s0cxKN1aiBPVaxJtqgzf/VICVbJ rRmkBrOwnZ6cdcHbeaKABSVfzh9MyXlm6xVrl/4bvq2M8XyZlklxmroSSVOXxokv G8i5uW15HX1s7IkC3dLksu6zeMImSqT+0dCAKsWRKAlCMOwS+qRRwygVSZEnAQWE dLh3dI9c7GwL0AF4v08r3gOEfWvK7idkAIT/+AHzxJ1rMiCiWfDJogx5mBHKHy6X k4IWrL1byYr+FWTQzQgTbOsfnvjMTc6Pk3DB41s7oXSIx4yTvBkq0q0gDFOt5nQ= =LWKs -----END PGP SIGNATURE----- --sXLGiU2ergks3ulc5LdEcS3mgIT5kJN8n--