Overset and Underset
rating: 0+x

« All Snippets

Basic Commands

Sometimes you find yourself wanting to put something over another symbol, e.g. putting a label above an arrow. The appropriate LaTeX command is \overset{annotation}{symbol}. This puts the annotation in a smaller type size directly above the symbol.

Here are a few examples:

Example 1:
$X \overset{f}{\rightarrow} Y$ produces $X \overset{f}{\rightarrow} Y$.

Example 2:

\frac{f(x+\Delta x)-f(x)}{\Delta x}
   \overset{\Delta x\to 0}{\longrightarrow}
f'(x)

produces(1)
\begin{align} \frac{f(x+\Delta x)-f(x)}{\Delta x} \overset{\Delta x\to 0}{\longrightarrow} f'(x) \end{align}

Variations

The \underset command works similarly:

Example 3:
$X \underset{f}{\rightarrow} Y$ produces $X \underset{f}{\rightarrow} Y$.

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License