1

I am using jqMath to display chemistry formulas on a website. I need to be able to display charges as superscripts (i.e., positive + and negative charges -). It seems like jqMath (or maybe MathML) hardcodes all math operators to display as normal size. I've tested this with +, -, =, and % signs and none will display as superscripts (tested here: http://mathscribe.com/author/jqmath.html). Note that

<sup></sup> 

is not valid markup when using jqMath; the ^ precedes any character to be superscripted.

Has anyone found a way around this?

VividD
  • 10,456
  • 6
  • 64
  • 111
Diana E
  • 430
  • 6
  • 21

1 Answers1

0

Enclose the superscript in {}: $H^{+}$ (or $\H^{+}$ to avoid italics).

Dave Barton
  • 1,429
  • 13
  • 12
  • Thank you very kindly! I racked my brain for awhile before posting here and definitely wish I had done so sooner. – Diana E Jan 31 '13 at 00:53