Closed kelvinsjk closed 9 months ago
If you want unary operators to have different spacing than binary operators, I'll think you'll have to raise that issue elsewhere.
Maybe at the MathML-Core issue tracker.
Ah, so the issue is with mathml. Thanks for the insight!
I think this is an issue with Temml, not MathML. Temml should emit form="prefix"
for unary operators. For now I'm post-processing the Temml output with this regex:
.replaceAll(
/(<\/mo>(?:<\/mrow>)?(?:<mrow>)?)<mo>(−|-|\+)<\/mo>/g,
"$1<mo form=\"prefix\">$2<\/mo>"
)
I think this is an issue with Temml ... Temml should emit
form="prefix"
for unary operators.
@mk12 You are correct! Thank you for pointing that out. I'll have it fixed sometime later this week.
Also happens inside brackets ((-x)
) and after word operators (\exp -x
).
Fixed by release v0.10.20.
The typesetting of negative and minus signs seems to be off after = signs
PS: Thanks for the awesome library