Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r9JJ5Q8E011443 for ; Sat, 19 Oct 2013 21:05:27 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx010) with ESMTPS (Nemesis) id 0MTwZ7-1V7Ry531tZ-00QhpJ for ; Sat, 19 Oct 2013 21:05: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 r9JJ2k1k029560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 19 Oct 2013 21:02:46 +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 r9J96Kjr025196; Sat, 19 Oct 2013 21:02:43 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10484604 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 19 Oct 2013 21:02:43 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9JJ2hst025115 for ; Sat, 19 Oct 2013 21:02:43 +0200 Received: from smtp5.clear.net.nz (smtp5.clear.net.nz [203.97.33.68]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r9JJ2UjG025614 for ; Sat, 19 Oct 2013 21:02:35 +0200 Received: from mxin2-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp5.clear.net.nz (CLEAR Net Mail) with ESMTP id <0MUX00INJJK2N100@smtp5.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Sun, 20 Oct 2013 08:02:30 +1300 (NZDT) Received: from unknown (HELO [127.0.0.1]) ([203.167.164.186]) by smtpin2.clear.net.nz with ESMTP; Sun, 20 Oct 2013 08:02:28 +1300 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 131018-1, 19/10/2013), Outbound message X-Antivirus-Status: Clean References: <52623D5C.1090607@clear.net.nz> <52626C15.50809@mychemistry.eu> User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 Message-ID: <5262D737.40208@clear.net.nz> Date: Sun, 20 Oct 2013 08:02:15 +1300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <52626C15.50809@mychemistry.eu> 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:sqTicggpCm0=:/qT66OnXBqG6Y+p2sGfAHxGobv 6fgBVmXSTvhjPRbrdqZzqd2siDWrGxQLZF02F+8DaoQT3pitm1o6B5JPcJib35nlBjEJ2lbd4 bY6uFygQfbYMpoUqkcyPBQMYUgNhRe7wFE8V8G9lFxqm8Umetg8tveTJGxHAFdwHbB4wtRBPN zzYyKadCwe2yL5kUTb9B4nP6LrPfncsKWOt5TPDd9omKJNoKKqeRjExFv5RRlWRIDKyqjYiGF 8MDKXnmmT4vFl7WIqPjxCD21uzbvPdunwipJsEF8dxYbkB/ZrQx8a0ZFOPI5Ue0pBmfq8kI8L CQW9e8vh39vTa7pNDX/zLfW9Fl35mTjBWdiY+EeMvWfJEGVAg4Hrm4zSyT04NdMcLasDYGspL SW96XXx5NiNXGJ9sp6hNzimjs4BwzYtuDfFJRVkSinvnRpIZeIY0iKEwHQq+gNjABzPGoX4dm qq5Ss6qpE1FQxD9JiT3uApfhd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iDeNEZ3V+AQtfCQM56Fslr eKHahTWPh6phMWGeG01Ci/EYx8Gv9u0GGzNa7IMae X-UI-Loop:V01:DlRqOtqmtXs=:HqnfmfigkEnl2INICKUgj/gl/jDyWsQnAhTLX3A5XH4= Status: R X-Status: X-Keywords: X-UID: 7291 On 20/10/2013 12:25 a.m., Clemens Niederberger wrote: > > > Am 19.10.2013 10:05, schrieb Andrew Parsloe: >> I thought (naively) that writing >> >> \tl_set:Nx \l_tmpa_tl { \tl_to_uppercase:n {text} } >> >> 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 from >> text? >> >> 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 > Thank you. If I had looked harder I would have seen reference to this function in the "Additions to l3tl" at the end of the LaTeX3 Interfaces document. Andrew