[tex-eplain] Error

Philip Taylor P.Taylor at Rhul.Ac.Uk
Sun Jul 3 20:05:25 CEST 2016



Rodolfo Medina wrote:
> It could. But you'd never have that normally in books. Within a book, you'll have simply `Section 3'; from article to article, you'll have `Article-Title Section 3'. 
Ah, then I misunderstood.  So `Article-Title Section 3' is /not/ the plain-text representation of the contents of the hyperlink, it is instead the printed text which is displayed in order to allow the user to follow the hyperlink. 

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

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


More information about the tex-eplain mailing list