Welcome to the TeXnik web site

Super/Subscript
TUG logo

Main page

Index
English FAQ
Documentation
Software
CTAN
Search CTAN:
Main Server

Statistics

 


 


More Books

Super- subscript in direct mode are only possible in latex mathmode:

in the text
 8$^{th}$ Floor
gives by default the "th" in italic (latex puts it as a variable). With
 8$^{\textrm{th}}$ Floor
the superscript is in standard textstyle, means upright and normal size.
Same is possible for subscript, where digits are always in upright-mode.
x$_{01}$, x$_{\textrm{01}}$

If you don't like this writing in mathmode ($...$) you can choose \raisebox
in latex preamble write
\newcommand{\sups}[1]{\raisebox{1ex}{\small #1}}
\newcommand{\subs}[1]{\raisebox{-1ex}{\small #1}}
In the text then write
8\sups{th} Floor
x\subs{01}
it looks a little bit better, because it's easier to choose a different fontsize, e.g. small.

local time: Fri May 22 19:15:07 UTC 2026; file is: 1.2237 days old
contact webmaster _at_ TeXnik.de