ref: Convenience Functions for Retreiving Reference Numbers

Description Usage Arguments Details Value Author(s) See Also Examples

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

1
eqRef(label)

Arguments

label

Character. The label of the object whose number is sought.

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

Value

The number in the list of labels for that type of object which matches the label supplied.

Author(s)

David Scott d.scott@auckland.ac.nz

See Also

which, hwriteLatex

Examples

1
2
3
4
## Not run: 
eqRef{"anequationlabel"}

## End(Not run)

hwriterPlus documentation built on Jan. 15, 2017, 9:40 a.m.