Open cderv opened 2 years ago
Some notes:
\eqref
is defined in amsmath
, and seems widely use for referencing equation as it adds the parenthesis (https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing#eqref). Maybe we could add an option so that \ref
can be replaced by \eqref
for equations ?
https://github.com/quarto-dev/quarto-cli/blob/c16212ca786f4c915af8fa3ab938f6ba66959aa3/src/resources/filters/crossref/refs.lua#L68-L70
This would be for LaTeX output only, possibly useful in Quarto Journals - Allowing to tweak that through a Lua filter could also be a way to solves this for PDF only.
More generally, support parenthesis around reference for equation in HTML and PDF requires some specific formatting work for HTML outputs.
Re-milestoning it to match the rest of our crossref work (even if we eventually choose to move it to 1.3, this seems like a natural thing for us to support)
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/2413