LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Wed, 11 May 2011 22:03:25 +0200
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Message-ID: <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2E9A0FFFAAEF6BC2E03C002E"
From: Arno Trautmann <[log in to unmask]>
Parts/Attachments: text/plain (866 bytes) , signature.asc (261 bytes)
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 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?

Nevermind, the xx variant works fine, thanks ☺