LaTeXML
LaTeXML copied to clipboard
\operatorname content should not be parsed
An improbable edge case: characters like -, * get parsed even within \operatorname{}. This should not happen:
$a-b$ $\operatorname{a-b}$
compiles to the PDF
Per amsmath documentation,
\operatorname{} effectively resets the math codes, disabling the special behaviour of -, *, explaining the above behaviour.
LaTeXML instead prints
<mrow>
<mi mathvariant="normal">a</mi>
<mo>−</mo>
<mi mathvariant="normal">b</mi>
</mrow>
which is not a single operator, and moreover the hyphen has become U+2212.