use "#| label: eq-xxx" to add label to equation generated in code chunks (e.g. sympy) #3397
Closed
2 of 4 tasks
Labels
duplicate
This issue or pull request already exists
Bug description
Hello,
I noticed that for figures and tables generated by a code chunks, Quarto let me reference those by adding a
#| label:
and the relevant label. The same isn't true for equation generated by code chunks.I would like to display math and equation expressions that actually works in the document, so I'm thinking about using
sympy
orhandcalcs
to display nicely formatted math expression that actually yield results; these equation need to be cross referenceable across the document.I got a working example where I show the issue using sympy, and a workaround that let me reference a sympy expression by wrapping it in a ``$$...$$` environment, similar to the solution used for displaying pandas dataframe mentioned in the guide.
equation_label_in_code_chunks.pdf
(I would like to attach also the qmd file, but it doesn't seems to be supported by github)
(So I tricked it by changing the extension, just rename it)
change file extension to qmd.md
Checklist
The text was updated successfully, but these errors were encountered: