O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stacking expressions

Formulas may become complex: we might need to put one symbol above another one or above whole expressions, or we wish to put lines, braces, or dots above symbols. There are several ways.

Underlining and overlining

\overline puts a line above its argument, which may be nested:

s = \overline{AB}
Underlining and overlining

The counterpart is \underline.

It doesn't have to be a line; braces are popular too. The commands are \underbrace and \overbrace . You may use subscripts and superscripts:

N = \underbrace{1 + 1 + \cdots + 1}_n
Underlining and overlining

Setting accents

We've already seen ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required