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 p4BJqQil032212 for ; Wed, 11 May 2011 21:52:28 +0200 Received: (qmail 1829 invoked by alias); 11 May 2011 19:52:21 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 11 May 2011 19:52:21 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx113) with SMTP; 11 May 2011 21:52:21 +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 p4BJjODV030075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 21:45:24 +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 p4BH6lZT003961; Wed, 11 May 2011 21:45:24 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1254889 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 11 May 2011 21:45:24 +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 p4BJjOpp006963 for ; Wed, 11 May 2011 21:45:24 +0200 Received: from lon1-post-2.mail.demon.net (lon1-post-2.mail.demon.net [195.173.77.149]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p4BJjDtX015123 for ; Wed, 11 May 2011 21:45:17 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=palladium.local) by lon1-post-2.mail.demon.net with esmtp (Exim 4.69) id 1QKFLN-0002yo-bn; Wed, 11 May 2011 19:45:13 +0000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 References: <4DCADD93.6090009@gmx.de> <4DCAE0D9.8@morningstar2.co.uk> <4DCAE5F5.20305@gmx.de> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Message-ID: <4DCAE749.5030606@morningstar2.co.uk> Date: Wed, 11 May 2011 20:45:13 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: compare string with \c_job_name_tl To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4DCAE5F5.20305@gmx.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6myV/soHys3aIHfn03H1tOG+nK8XfK+8Z3ZlyvMuZMMsRucGO/BWQsthUaF +eXTCrq9twYamjBmVWXEwqnr+Q+CwSEIdkQsEKyTT46iYQSRPw9QhYahbJIic1EhbT5cJthVUWKb Fmg1pXbbpCift8+uyZ2vRUUrqFejPLijGz6T6ZulTD58v0HlRHtrBqD6wa4KCQPUXkYCw==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: 6741 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 to >> that in LaTeX3 is \c_job_name_tl.) > > Your example fails, but the :no variant works in this case. Should have been 'xx' (sorry) > However, I seem not to get it working for comparing a command to the > jobname – 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 that > still results in false. Sorry, I'm lost. Could you post a full (failing) example? -- Joseph Wright