ref:
Convenience Functions for Retreiving Reference Numbers
Description
Given a label as a character string, the vector of labels is searched
and the row number of the matching vector is returned. This is the
number that has been assigned to the object with the specified label.
Usage
eqRef(label)
Arguments
label
Character. The label of the object whose number is sought.
Value
The number in the list of labels for that type of object which matches
the label supplied.
Details
The function first adds the required prefix (e.g. eq: for an
equation) to the supplied label, then uses which to find
the row number in the vector of labels matching that label. Names of
vectors storing the labels are based on LaTeX names. For equations,
the vector is called hwriterEquationList (even though it is a
vector not a list).