[tex-eplain] [solved] Re: Error

Rodolfo Medina rodolfo.medina at gmail.com
Mon Jul 4 16:34:00 CEST 2016


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

> 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.


Thanks for your patience...


> \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 


Hey, that seems to work!  I'll be testing it a little more, then - if of
interest - I'll report my home-made macros for cross-references between
different files.

Thanks!, Cheers

Rodolfo



More information about the tex-eplain mailing list