TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Super/Subscript
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


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 Mar 24 14:03:54 CET 2023 ; file is: 1364.98060185185 days old
contact webmaster _at_ TeXnik.de