Page MenuHomePhabricator

Rendering <chem>^3 [4]</chem> produces TeX parse error: Extra close brace or missing open brace
Open, Needs TriagePublic


The type of error frequently occurs when trying to render <chem> expressions even though no braces are missing.

Event Timeline

Debenben created this task.Dec 7 2018, 4:36 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 7 2018, 4:36 PM
Pkra moved this task from Incoming to Mathoid on the Math board.EditedDec 7 2018, 10:56 PM
Pkra added subscribers: mhchem, Physikerwelt, Pkra.

Huh, this is weird.

It looks like mathoid is not using mhchem 3.x but the much older unmaintained version -- to get the new one, the mathjax configuration needs mchem: {legacy: false} in the TeX block, cf. the mathjax docs.

Mhchem 3.x (even the somewhat dated version used in mathoid) should handle this fine (note again that chem content is turned into {\displaystyle \ce{... }

@Physikerwelt was this intentional? Changing this would be a major change with possible regressions. (I suspect it would be well worth it as the new extension is much more powerful and other sites like chem.SE went through it happily.)

ping @mhchem

Aklapper moved this task from Mathoid to Incoming on the Math board.Jun 24 2020, 5:32 AM