Wed, 11 May 2011 20:45:13 +0100
|
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
|
|
|