LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Joseph Wright <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Wed, 11 May 2011 20:45:13 +0100
Content-Type:
text/plain
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

ATOM RSS1 RSS2