Page MenuHomePhabricator

MathRM parsing error
Closed, ResolvedPublic

Description

Hi, the example string <math>\mathrm{HSO_4^-}</math> produces a minus which is not in superscript, while it works correctly with numbers before the minus (e.g. 2-) <math>\mathrm{SO_4^{2-}}</math>

Event Timeline

Physikerwelt claimed this task.
Physikerwelt subscribed.

I guess what you are trying to do is to write chemical markup?
Have you considered using the chem tag instead <chem>HSO4-</chem> probably produces the expression you would like to discribe.
Can you explain why you want to use the mathrm command. Also note the difference between mathrm and operatorname https://tex.stackexchange.com/questions/48459/whats-the-difference-between-mathrm-and-operatorname

See for the reproduction of your case
https://www.mediawiki.org/wiki/Extension:Math/T167569

my answer is on the mediawiki page, cheers, ghilt