mathlive
mathlive copied to clipboard
[FEATURE] Equation numbering: align vs align*
Description
Both the align and align* environments when rendering static math seem to produce the same result without equation numberings. Is that a supported feature for mathlive?
Codepen example: https://codepen.io/kelvin-soh/pen/OJpxjdN
Steps to Reproduce
- Render the align environment (using either renderMathInDocument or convertMathToLatex)
- Render the align* environment (using either renderMathInDocument or convertMathToLatex)
Actual Behavior
Both show the aligned equations without equation numbering
Expected Behavior
The align environment should include equation numbers while the align* environment does not
Environment
MathLive version 0.67.0
Operating System Windows 10 and Ubuntu
Browser Chrome and Opera
Equation numbering is currently not supported. I could see it making sense particularly when using static math (or read-only mathfields). One question though would be how should the counter work. Starting from 1 and incrementing by the order in which the (numbered) equations are encountered in the document?
I think that's how it's currently implemented in KaTeX (based on the order they are encountered in the document,, using a css-based counter). It's often useful the first few times they're called, but at the first instance it doesn't work I recall having to manually update each individual equation number thereafter with their implementation of the tag command.
It seems a javascript based counter is one of the "Version 1.0 milestones" for that project.