TransWikia.com

How to create underbrace with nothing on top

TeX - LaTeX Asked on July 15, 2021

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,pivarepsilon_0,{vec{r}}^{,2}},frac{vec{r}}{r}}$. 

The brace has still shrunk

One Answer

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}{4pivarepsilon_0{vec{r}}^{,2}}frac{vec{r}}{r}}$.

end{document}

enter image description here

Correct answer by egreg on July 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP