Skip to main content

reference_targets

Function reference_targets 

Source
pub fn reference_targets(node: &NodeRef<'_, Flm>) -> Option<Vec<RefTargetText>>
Expand description

The targets of node when it is a \ref or a \hyperref: ref_targets for a \ref, the one target of hyperref_target for a \hyperref, and None for any other node.

The places that walk every node of a document to find the targets of references call it: the label scan (SCAN), which reports a target that is not spelled type:label; the safe-labels stage (SafeLabelsStage), which allocates a safe label at a label’s first mention; and the recomposition rules, which write those safe labels.