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 p4BJBJN1018346 for ; Wed, 11 May 2011 21:11:20 +0200 Received: (qmail 10694 invoked by alias); 11 May 2011 19:11:13 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 11 May 2011 19:11:13 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx035) with SMTP; 11 May 2011 21:11:13 +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 p4BJ46bK019138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 21:04:06 +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 p4BH6lWr003961; Wed, 11 May 2011 21:04:06 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1254725 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 11 May 2011 21:04:06 +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 p4BJ46Ft003957 for ; Wed, 11 May 2011 21:04:06 +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 p4BJ3rjr003587 for ; Wed, 11 May 2011 21:03:57 +0200 Received: (qmail invoked by alias); 11 May 2011 19:03:53 -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 (mp053) with SMTP; 11 May 2011 21:03:53 +0200 X-Provags-ID: V01U2FsdGVkX1/kxbhDDDHkVUJ4zEKEM0MdxvMRcgKwlzxBEyV5Xr zl62WAyzJz+Ixt 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 X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig70DDB90F8283B792A7E227B0" Message-ID: <4DCADD93.6090009@gmx.de> Date: Wed, 11 May 2011 21:03:47 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Arno Trautmann Subject: compare string with \c_job_name_tl To: LATEX-L@listserv.uni-heidelberg.de Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p52GZ/WIcVIIYE2tsJSftWTx+ICZ6w3iU5biQivm6NJ2dcOgGPS8TxjjsXWf lSd3nDC4Qx41qfFONzIiu7lJ+KRX6si1Ti9nLlR9/NPY4L1y7ZsTYs/qLa78RLll6qffTFKFtf1D FSy5BeHI8hFI8f/RQxM0xo1KzDEIhWCjsvkBYVtzYqB5E9w9wufh2lLTR0CEXD9WVeIeA==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: 6737 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig70DDB90F8283B792A7E227B0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, sorry for this rather trivial question, but at the moment it's driving me crazy =E2=80=A6 I just want to execute some code depending on the jobname. I found a solition by Donald Arsenau=C2=B9 that looks rather lengthy. So, I thought= with LaTeX3, everything is easier. Now I tried this: \documentclass{minimal} \usepackage{expl3} \begin{document} \ExplSyntaxOn \tl_set:Nn\myjob{a} \tl_set:Nx\myjobii{\tl_to_str:N\myjob} \tl_if_eq:NNTF\myjobii\jobname{true}{false} \ExplSyntaxOff \end{document} because, based on Donald's post, I assumed that I need to have an =E2=80=9C= a=E2=80=9D with catcode =E2=80=9Cother=E2=80=9D for a successfull test. Now, calling lualatex --jobname=3Da test.tex always prints =E2=80=9Cfalse=E2=80=9D. So =E2=80=93 what is my mistake he= re and what would be the easiest way for such a test using expl3? cheers Arno =C2=B9http://groups.google.com/group/comp.text.tex/browse_thread/thread/4= 9a5a8c268cbceb4/cb6cd94cb65f876b --------------enig70DDB90F8283B792A7E227B0 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/ iEYEARECAAYFAk3K3ZQACgkQcYXUw/rerZ4MjwCcDGufMBB6LHKnfSqGXCwwfjxH 9T0AoMSCwC/Wymxdy3tPDdBgt17Ar3/U =K7vr -----END PGP SIGNATURE----- --------------enig70DDB90F8283B792A7E227B0--