mhchem / MathJax-mhchem

3rd-party extension to MathJax for typesetting chemical equations
Apache License 2.0
95 stars 13 forks source link

Support cancel extension within \ce #15

Open polyluxus opened 4 years ago

polyluxus commented 4 years ago

It would be great to have the cancel extension somehow supported. Here is a real world example on chemistry.se: Why did they ‘split’ this H2+ ion in the ionic equation?

The current work-around for me was to nest the commands:

\ce{Mg(s) + H2+(aq) + \cancel{\ce{SO4^{2-} (aq)}} 
    &-> Mg^{2+}(aq) + \cancel{\ce{SO4^{2-} (aq)}} + H2(g)}