quarto-dev / quarto-dev/quarto-cli

Option for parentheses around equation numbers reference in addition to `eq-prefix`

Open
#2,439 5 comments 8 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Nov 15, 2022.

crossref enhancement math
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/2413

Originally posted by jordan-melendez September 12, 2022
In certain journals it is common to format references to equations like Eq. (1.1) with parentheses around the equation number. Quarto supports modifying Eq. with eq-prefix, but would it be possible to either

  1. Add a parameter similar to eq-prefix that allows one to customize the reference further, and/or
  2. Ensure that, when compiled to PDF, \eqref gets used rather than \ref for equation references. This would require amsmath I suppose, but would automatically add parentheses and permit further customization.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.