[tex-eplain] Error

Philip Taylor P.Taylor at Rhul.Ac.Uk
Mon Jul 4 08:29:32 CEST 2016



Rodolfo Medina wrote:
> 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 
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 :

\input eplain

\def \refn #1%
    {%
        \ifcsname \xrlabel {#1}\endcsname
            \csname \xrlabel {#1}\endcsname
        \else
            {\tt #1}%
        \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

What does it yield for you on pass one and pass two ?  If not "no" and "yes" respectively, please post transcripts.

** Phil.
-- 

Philip Taylor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-eplain/attachments/20160704/218bc512/attachment-0001.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/218bc512/attachment-0001.jpg>


More information about the tex-eplain mailing list