[tex-eplain] Error

Rodolfo Medina rodolfo.medina at gmail.com
Sun Jul 3 23:49:26 CEST 2016


Philip Taylor <P.Taylor at Rhul.Ac.Uk> writes:

> Does this help ?
>
> \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 
>
> ** Phil.


Thanks.

\ifcsname turns to be undefined, so I guess you meant:

\def \refn #1%
{%
\ifx\csname \xrlabel {#1}\endcsname
\csname \xrlabel {#1}\endcsname
\else
{\tt #1}%
\fi 
}

But the output is `no' where it is supposed to be yes...

Thanks,

Rodolfo



More information about the tex-eplain mailing list