Subscript and Superscript
Subscript and superscript text is common in mathematical expressions and chemical formulas. When rendered, the size of subscripted and superscripted text is reduced. Subscripted text is placed at the baseline and superscripted text above the baseline. The size and precise placement of the text depends on the font and other stylesheet parameters applied to the converted document.
Text is subscripted when you enclose it in a pair of tildes (
~) and superscripted with a pair of carets (
One tilde (
~) on either side of a word or phrase makes it subscript.
One caret (
^) on either side of a word or phrase makes it superscript.
"`Well the H~2~O formula written on their whiteboard could be part of a shopping list, but I don't think the local bodega sells E=mc^2^,`" Lazarus replied.
The result of Example 1 is rendered below.
“Well the H2O formula written on their whiteboard could be part of a shopping list, but I don’t think the local bodega sells E=mc2,” Lazarus replied.
|You can write equations and formulas in AsciiDoc documents using MathJax.|