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}
\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}
\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 ...'