Instead of referring to pages, it's most useful if equation labels
refer to equation numbers. Therefore, Eplain reserves a \count
register, \eqnumber
,
for the current equation number, and increments it at each
numbered equation.
Here are the commands to define equation labels and then refer to them:
\eqdef{label}
\eqnumber
,
and, if the current context is not inner, then produces a \eqno
command. (The condition makes it possible to use \eqdef
in an
\eqalignno
construction, for example.) The text of the equation
number is produced using \eqprint
. See section Formatting equation references.
If label is empty, you still get an equation number (although
naturally you can't reliably refer to it). This is useful if you want
to put numbers on all equations in your document, and you don't want to
think up unique labels.
\eqdefn{label}
\eqdef
, except it always omits the \eqno
command. It can therefore be used in places where \eqdef
can't;
for example, in a non-displayed equation. The text of the equation
number is not produced, so you can also use it in the (admittedly
unusual) circumstance when you want to define an equation label but not
print that label.
\eqref{label}
\eqprint
.
\eqrefn{label}
\eqref
, except it doesn't call \eqprint
.
Equation labels can contain the same characters that are valid in general cross-references.