Jump to content

Talk:Subscript and superscript

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EmilJ (talk | contribs) at 10:54, 30 January 2008 (TeX code). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Other Script Positions

This is a well written article, but is mention given to the other placements (eg overscript, underscript; also pre-subscript, pre-superscript as per text of patent 5182709) elsewhere? I couldn't find articles for the other positions, much less a meta-article discussing (or at least mentioning) all of the positions...

Examples include Mathematical notation, which commonly uses overscript and underscript (perhaps all six), and Furigana, which appears to be an instance of overscript given yokogaki (horiztonal text).

--Eibwen 19:44, 6 November 2007 (UTC)[reply]

TeX code

Isn't there a way to get superscripts in TeX without going into a maths/equation environment? Like for "1st", for example, or "Mrs". Perhaps as Superior letter? —DIV (128.250.80.15 (talk) 09:19, 30 January 2008 (UTC))[reply]

No. Yes. Sort of.
Superscripts as such can only be produced by TeX in math mode. You can use M$^{\rm rs}$, or, if you have to cope with spaces in the superscript, M$^{\hbox{\scriptsize foo bar}}$. There is a LaTeX macro called \textsuperscript which you can use like M\textsuperscript{rs}, but it actually expands to something equivalent to the \hbox \scriptsize code above (along with a lot of garbage), so it also uses math mode even if it's not apparent on the surface (and it's not really easier to type).
If you really want to avoid math mode, you can try some box shuffling, such as M\raise.8ex\hbox{\scriptsize rs}. This solution however relies on empirical font-dependent constants (like the 0.8ex above), which makes it rather inelegant.
Ordinal superscripts are bad style anyway, so the best way to write "1st" in TeX is 1st. -- EJ (talk) 10:54, 30 January 2008 (UTC)[reply]