It's easy to make subscripts in math mode: $a_i$.
How do I make a subscript outside math environment, likethis?
|
It's easy to make subscripts in math mode: How do I make a subscript outside math environment, likethis? |
||||
|
|
|
LaTeX provides
|
|||
|
|
|
If you use the |
||||
|
|
|
If you don't want to use additional packages you can use the following syntax: Alternatively, you can define a command
|
|||||||||||
|
|
Since I've always been bugged by the fact that LaTeX's sscripts need math mode (setting normal text inside math mode have issues with LuaTeX's directionality), motivated by this question, I "stole" the subscript/superscript code from ConTeXt which is set entirely in text mode, with quick hacks to get it work with plain TeX (needs pdftex/luatex though), it is here for now, if there is interest may be it can be turned into some package. |
|||||
|
|
Note that
That applies to math and math symbols in sectioning headings of course as well. |
|||||||||||
|
|
This is included in the fixltx2e package:
Interestingly (?), there's a This is included already in the KOMA-Script bundle. If you want to typeset chemical formulas, have a look at the mchem package. (Thanks to Caramdir for those last two.) |
|||||||
|