(eplain.info)Using generic references


Prev: Defining generic references Up: Cross-references
Enter node , (file) or (file)node

4.9.2 Using generic references
------------------------------

To retrieve the value of the label defined via '\definexref' (see the
previous section), Eplain provides the following macros:

'\refn{LABEL}'
'\xrefn{LABEL}'
     '\refn' and '\xrefn' (they are synonyms) produce the bare
     definition of LABEL. If LABEL isn't defined, issue a warning, and
     produce LABEL itself instead, in typewriter. (The warning isn't
     given if '\xrefwarningfalse'.)

'\ref{LABEL}'
     Given the class C for LABEL (see the description of '\definexref'
     in the previous section), expand the control sequence '\C word' (if
     it's defined) followed by a tie. Then call '\refn' on LABEL.
     (Example below.)

'\refs{LABEL}'
     Like '\ref', but append the letter 's' to the '\...word'.

   The purpose of the '\...word' macro is to produce the word 'Section'
or 'Figure' or whatever that usually precedes the actual reference
number.

   Here is an example:

     \def\sectionword{Section}
     \definexref{sec-intro}{3.1}{section}
     \definexref{sec-next}{3.2}{section}
     See \refs{sec-intro} and \refn{sec-next} ...

This produces 'See Sections 3.1 and 3.2 ...'


automatically generated by info2www version 1.2.2.9