trishanamruthur / HRL-Labs-Clinic

2 stars 0 forks source link

Latex equations #5

Open trishanamruthur opened 7 months ago

trishanamruthur commented 7 months ago

Currently there is a bug with labelling equations in latex in markdown file. When building the book, labelled equations do not seem to show and instead show a "()".

pluljak commented 7 months ago

The above issue only happens sometimes (on some computers?). A related issue is that equation numbering is global and doesn't reset for each new webpage. MathJax has its own ways of tagging and linking equations with \tag and \label, but they are not the same as Jupyter Book's. \tag will label an equation, but not create a link. The only way to link is with :label: or equivalent, which is handled Jupyter Book---the equation numbers are hard-coded in the html and MathJax is only used to render each equation in isolation. So, don't bother looking into the MathJax documentation about equation numbering.