Sender: |
|
Date: |
Wed, 11 May 2011 22:03:25 +0200 |
Reply-To: |
|
Subject: |
|
MIME-Version: |
1.0 |
Message-ID: |
|
In-Reply-To: |
|
Content-Type: |
multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="------------enig2E9A0FFFAAEF6BC2E03C002E" |
From: |
|
Parts/Attachments: |
|
|
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 ☺
cheers
Arno
|
|
|