2

This will be a short one: I want the underbrace to be extended as much as I want, without writing something on top. So far I got:

$\underbrace{\hspace{12pt}}_{\vec{F_p} = \frac{-{e}^2}{4\,\pi\varepsilon_0\,{\vec{r}}^{\,2}}\,\frac{\vec{r}}{r}}$. 

The brace has still shrunk

3
  • 2
    I'd say just increase12pt, but I have a feeling that this is an XY problem. What exactly are you trying to achieve?
    – campa
    Commented Apr 16, 2021 at 16:59
  • Actually I want to export the graphics into another graphic design program. I don't want to have this written in some sort of text. Just some large brace, which width I can control and only the formula beneath.
    – Leon
    Commented Apr 16, 2021 at 17:02
  • Nevermind, increasing the number of \hspace resolves the Problem. Thank you for pointing to the obvious
    – Leon
    Commented Apr 16, 2021 at 17:03

1 Answer 1

3

You want to use a phantom of the subscript.

\documentclass{article}

\newcommand{\emptyunderbrace}[1]{%
  {\underbrace{\hphantom{\scriptstyle#1}}_{#1}}%
}

\begin{document}

$\emptyunderbrace{\vec{F_p} = \frac{-{e}^2}{4\pi\varepsilon_0{\vec{r}}^{\,2}}\frac{\vec{r}}{r}}$.

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .