[Tex/LaTex] Vertical spacing with underbrace command

bracesmath-modespacing

How can I set how much vertical spacing is put between my equation and the curly bracket used in underbrace?

As an example, I feel like the following just puts the brace too close to the equation:

\underbrace{c = a + b}_{\text{my equation}}

Many thanks…

Best Answer

You can put a \strut just before c to enlarge the depth of your equation and if you still find the curly bracket too close, you can also define your own "strut":

\documentclass{minimal}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\newcommand*\mystrut[1]{\vrule width0pt height0pt depth#1\relax}
\begin{document}
$\underbrace{c = a + b}_{\text{my equation}}$
$\underbrace{\strut c = a + b}_{\text{my equation}}$
$\underbrace{\mystrut{1.5ex}c = a + b}_{\text{my equation}}$
$\underbrace{\mystrut{2.5ex}c = a + b}_{\text{my equation}}$
\end{document}