[tex-eplain] Error
Philip Taylor
P.Taylor at Rhul.Ac.Uk
Mon Jul 4 08:40:05 CEST 2016
Philip Taylor wrote:
> OK, let's stick to things we have in common -- PdfTeX. This code yields "no" for me when run on the first pass, and "yes" for me when run on the second and subsequent passes :
And here is the same code for Knuthian TeX (tested only against PdfTeX -- I don't have Knuthian TeX easily available here) -- it yields identical results, for me at least.
\input eplain
\def \refn #1%
{%
\expandafter
\ifx \csname \xrlabel {#1}\endcsname \relax
{\tt #1}%
\else
\csname \xrlabel {#1}\endcsname
\fi
}
\definexref {label} {\jobname} {}
\def \xrefn #1%
{
\edef \tempa {\refn {#1}}
\edef \tempa {\meaning \tempa}
}
\xrefn {label}
\edef \tempb {\jobname}
\edef \tempb {\meaning \tempb}
\ifx \tempa \tempb
\message {Yes}
\else
\message {No: \tempa \tempb}
\fi
\end
--
Philip Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-eplain/attachments/20160704/22cc1d99/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Signature.jpg
Type: image/jpeg
Size: 12104 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-eplain/attachments/20160704/22cc1d99/attachment.jpg>
More information about the tex-eplain
mailing list