<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">Rodolfo Medina wrote:<br>
</div>
<blockquote cite="mid:87poquz3le.fsf@gmail.com" type="cite">
In plain TeX it yelds `No' (two passes of course): with \ifcsname
converted in
\ifx\csname. But also with pdftex and etex, and \ifcsname. Cannot
try xetex.
Rodolfo
</blockquote>
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>
<tt><br>
\input eplain<br>
<br>
\def \refn #1%<br>
{%<br>
\ifcsname \xrlabel {#1}\endcsname<br>
\csname \xrlabel {#1}\endcsname<br>
\else<br>
{\tt #1}%<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>
</tt><br>
What does it yield for you on pass one and pass two ? If not "no"
and "yes" respectively, please post transcripts.<br>
<br>
** Phil.<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.08050300.04070808@Rhul.Ac.Uk"><br>
Philip Taylor</div>
</body>
</html>