LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced 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 20:45:13 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=windows-1252
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (28 lines)
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