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 p4BK5npE005333 for ; Wed, 11 May 2011 22:05:50 +0200 Received: (qmail 1730 invoked by alias); 11 May 2011 20:05:44 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 11 May 2011 20:05:43 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx044) with SMTP; 11 May 2011 22:05:43 +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 p4BK3c12001885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 22:03:38 +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 p4BH6lbh003961; Wed, 11 May 2011 22:03:38 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1255004 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 11 May 2011 22:03:38 +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 p4BK3cwi008262 for ; Wed, 11 May 2011 22:03:38 +0200 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with SMTP id p4BK3QJO020022 for ; Wed, 11 May 2011 22:03:29 +0200 Received: (qmail invoked by alias); 11 May 2011 20:03:25 -0000 Received: from HSI-KBW-078-042-073-176.hsi3.kabel-badenwuerttemberg.de (EHLO [192.168.0.197]) [78.42.73.176] by mail.gmx.net (mp033) with SMTP; 11 May 2011 22:03:25 +0200 X-Provags-ID: V01U2FsdGVkX19RDJxzkD5RMHCAyop9MHSD7k05Gd/0v91GjjqJGM u3rsm/cA3UV6+L User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110503 Thunderbird/3.1.10 MIME-Version: 1.0 References: <4DCADD93.6090009@gmx.de> <4DCAE0D9.8@morningstar2.co.uk> <4DCAE5F5.20305@gmx.de> <4DCAE749.5030606@morningstar2.co.uk> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2E9A0FFFAAEF6BC2E03C002E" Message-ID: <4DCAEB8D.7010507@gmx.de> Date: Wed, 11 May 2011 22:03:25 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Arno Trautmann Subject: Re: compare string with \c_job_name_tl To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4DCAE749.5030606@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6myV/soHys3aIHfn03H1tOEcqHc3AN0UXOyFT4nj1T0fzxXqjilz+Npn+J7 o/LW1U5Hxt0oe6TXCcxP76nKujt0ZxInILOfdZC8vvxbVe85JugK2efhtGXrBd/4JwH14GFOx202 6Y+M7k/sOWeCYivkbmwVQ68KbFWONb1Vwp7J/Avw50aRmN/IMVbnjYjSmMgVQ19QLcsng==V1; 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: 6742 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2E9A0FFFAAEF6BC2E03C002E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Joseph Wright wrote: > On 11/05/2011 20:39, Arno Trautmann wrote: >>> \documentclass{minimal} >>> \usepackage{expl3} >>> \begin{document} >>> \ExplSyntaxOn >>> \str_if_eq:nnTF{a}{\c_job_name_tl}{true}{false} >>> \ExplSyntaxOff >>> \end{document} >>> >>> (This will work with \jobname as well, but the 'official' interface t= o >>> that in LaTeX3 is \c_job_name_tl.) >> >> Your example fails, but the :no variant works in this case. >=20 > Should have been 'xx' (sorry) >=20 >> However, I seem not to get it working for comparing a command to the >> jobname =E2=80=93 what do I have to do to say >> >> \str_if_eq:nnTF{\myjobname}{\c_job_name_tl}{true}{false} >> >> I tried to use \tl_to_str in the argument of a \str_if_eq:ooTF, but th= at >> still results in false. >=20 > Sorry, I'm lost. Could you post a full (failing) example? Nevermind, the xx variant works fine, thanks =E2=98=BA cheers Arno --------------enig2E9A0FFFAAEF6BC2E03C002E 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.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3K640ACgkQcYXUw/rerZ5MJQCgpv5Sih/o6xGWMpmIwf2MiDnr y88AoNiAFqsPJ/Umhob2JbQ9732lauHK =D3+s -----END PGP SIGNATURE----- --------------enig2E9A0FFFAAEF6BC2E03C002E--