<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">Philip Taylor wrote:<br>
</div>
<blockquote cite="mid:577A024C.6060608@Rhul.Ac.Uk" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
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 :<br>
</blockquote>
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.<br>
<tt><br>
\input eplain<br>
<br>
\def \refn #1%<br>
{%<br>
\expandafter<br>
\ifx \csname \xrlabel {#1}\endcsname \relax<br>
{\tt #1}%<br>
\else<br>
\csname \xrlabel {#1}\endcsname<br>
\fi <br>
}<br>
<br>
\definexref {label} {\jobname} {}<br>
<br>
\def \xrefn #1%<br>
{<br>
\edef \tempa {\refn {#1}}<br>
\edef \tempa {\meaning \tempa}<br>
}<br>
<br>
\xrefn {label}<br>
<br>
\edef \tempb {\jobname}<br>
\edef \tempb {\meaning \tempb}<br>
<br>
\ifx \tempa \tempb <br>
\message {Yes}<br>
\else <br>
\message {No: \tempa \tempb}<br>
\fi<br>
<br>
\end <br>
<br>
</tt>
<div class="moz-signature">-- <br>
<img src="cid:part1.08080103.02070708@Rhul.Ac.Uk"><br>
Philip Taylor</div>
</body>
</html>