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:
Arno Trautmann <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Wed, 11 May 2011 21:03:47 +0200
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (929 bytes) , signature.asc (261 bytes)
Hi all,

sorry for this rather trivial question, but at the moment it's driving
me crazy …
I just want to execute some code depending on the jobname. I found a
solition by Donald Arsenau¹ that looks rather lengthy. So, I thought
with LaTeX3, everything is easier. Now I tried this:

\documentclass{minimal}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
\tl_set:Nn\myjob{a}
\tl_set:Nx\myjobii{\tl_to_str:N\myjob}
\tl_if_eq:NNTF\myjobii\jobname{true}{false}
\ExplSyntaxOff
\end{document}

because, based on Donald's post, I assumed that I need to have an “a”
with catcode “other” for a successfull test.

Now, calling
lualatex --jobname=a test.tex
always prints “false”. So – what is my mistake here and what would be
the easiest way for such a test using expl3?

cheers
Arno

¹http://groups.google.com/group/comp.text.tex/browse_thread/thread/49a5a8c268cbceb4/cb6cd94cb65f876b



ATOM RSS1 RSS2