pandoc-crossref
pandoc-crossref copied to clipboard
Typographical convention: equation labels in math mode
I'm converting from LaTeX to HTML and I noticed that equation labels are written in math mode, i.e. in my output they are placed in a <span class="math display">
environment. If we assume LaTeX follows the correct typographical convention, which I believe it does, this should not be the case.
This doesn't make a difference if equation labels are all numbers but if equations are labelled with letters (as the often are in appendices) they are treated as variables and so italicised.
I understand that if tableEqns
is set to false then it ends up in the equation itself (which I imagine was one of the reasons this choice was made) but in this case (given the above) the typographically correct way would be to switch to text mode, by placing the label in a \text{}
environment (assuming the equation is written in LaTeX).
I am able to reproduce this issue with tableEqns: true
, eqLabels: [S1, S2, S3 ,S3, S4, S5, S6, S7, S8]
and Word output. The "S" characters appear in normal face in the text, but italic in the equations themselves. I think the labels should be wrapped in \mathrm{}
. Additionally, I was also unable to get this to work substituting S1
in the eqLabels
with "\\mathrm{S1}"
.