LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

incorrect use of mathvariant=normal for single character identifiers

Open xworld21 opened this issue 2 months ago • 2 comments

LaTeXML uses a naive check to decide if mathvariant="normal" should be applied to single character identifiers: https://github.com/brucemiller/LaTeXML/blob/3875cd64faeb5bdc275d595cb6af772958a51080/lib/LaTeXML/Post/MathML.pm#L717

However, MathML Core prescribes that the automatic italic conversion only applies to the characters in Appendix C.1, not all single character identifiers: https://www.w3.org/TR/mathml-core/#math-auto-transform

I don't think this results in an actual bug, because an extra mathvariant="normal" would simply be redundant, while having $variant eq 'italic' will probably have no effect. I just wanted to add a note about it.

xworld21 avatar Dec 23 '25 19:12 xworld21