powered by
Latex output uses \@ref(label) to reference examples, whereas HTML output is based on pandoc examples, i.e. (@label). `r gloss(label)`, written inline in the text, will return the appropriate reference based on the selected output.
\@ref(label)
(@label)
`r gloss(label)`
gloss(label)
Character string with label reference
Label for reference