[texhax] choice of documentstyle upon \jobname

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Fri Dec 2 13:26:19 CET 2005

Uwe Lück wrote:

> The main message from Phil's proposal thus is:
> In order to test whether some \testfirst expands
> to `first', you might \edef\testsecond{first} and
> then \ifx\testfirst\testsecond.
> However, Susan wants LaTeX to "classify" job names,
> which is a more difficult task. 

There's even more to it than that, in that \jobname
/isn't/ a macro, so regardless of the catcode of
the elements of its expansion, it can never match
(in the context of \ifx) a macro.  This is why I
had to define both \ThisName /and/ \JobName as macros,
so that they could then be compared w.r.t. content.

** Phil.

More information about the texhax mailing list