[texhax] A problem about \jobname
Rodolfo Medina
romeomedina at libero.it
Sat Aug 14 15:33:42 CEST 2004
Hi, all.
Suppose I'm editing 'myfile.tex'. If I say
\newtoks\filename
\filename={myfile}
\edef\tempa{\the\filename}
\edef\tempb{\jobname}
\ifx\tempa\tempb yes\else no\fi
I get 'no', whereas I would expect 'yes'. Instead, I get 'yes' if I say
\newtoks\filename
\filename={myfile}
\edef\tempa{\the\filename}
\edef\tempb{myfile}
\ifx\tempa\tempb yes\else no\fi
. Can anybody explain why I get 'no' in the first case
and, above all, suggest a suitable code
in order to correctly test if the value of \jobname, which is 'myfile',
is equal to the file name, which is 'myfile' as well,
such obtaining a 'yes'?
Thanks to anyone who will reply,
Rodolfo
More information about the texhax
mailing list