quarto-dev / quarto-dev/quarto-cli
Use `\tag{}` info for eq cross referencing in the HTML book output
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 6k
- Fork
- 458
- Merge medio
- 1g 9h
- PR unite (30g)
- 41
Descrizione
In writing papers one sometimes needs to give an equation a special name, using the \tag{} command. A minimal example is as follows:
$$
a \ge b \tag{IC}
$${#eq-ic}
[Equation (-@eq-ic)] is nice.
The generated HTML book output made two 'mistakes'
- it uses both (1) and (IC) as equation tags
- More importantly, it uses 1 rather than IC for cross referencing.
Meanwhile, the PDF output is normal:
I wish to achieve the same output as in the PDF output. Is there any workaround?
I am using quarto 0.3.18 (I also have pandoc 2.17.0.1 installed, not sure whether this matters). Currently I work around by defining Pandoc metadata eq.ic: IC and then Equation {{< meta eq.ic >}}. It works well for me, both HTML and PDF. But I hope there is a more direct way to do this.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Reproduce the minimal equation example in an HTML book and compare its equation tag and cross-reference with the PDF output. Trace how the HTML output handles the LaTeX \tag{IC} and the equation label eq-ic; done means the HTML shows only (IC) and the cross-reference uses IC rather than 1.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- documentation
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100