I am using jqMath
to display chemistry formulas on a website. I need to be able to display charges as superscripts (ie, 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?
将上标括在{}
: $H^{+}$
(或$\\H^{+}$
以避免斜体)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.