Overset and Underset

« 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$.

page revision: 1, last edited: 26 Sep 2009 19:21