loading...

For labelling items like fig(), tab() or eq(), implements the $ method to retrieve a reference and build a link to the element.

# S3 method for subsettable_labelling_ref
$(x, name)

Arguments

x

A subsettable_labelling_ref function.

name

The value to use for the ref= argument.

Examples

eq(pythagoras) # Create a label / tag pair for R Markdown display equations
#> [1] "\\label{eq:pythagoras} \\tag{1}"
eq$pythagoras  # Create a link to the equation somewhere else in the document
#> [1] "$\\eqref{eq:pythagoras}$"