1

Is there a way to only have an underbrace for part of an expression? I want to only have the brace below the 0's but if I move the 5 out of the \underbrace then a gap between the 5 and the 0 appears.

Picture of what I have right now

1
  • Welcome to TeX.SE.
    – Mico
    Feb 16 at 20:55
2

To achieve your typesetting objective, all you need to do is enclose the entire \underbrace{...}_{...} expression in an extra pair of curly braces.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
5{\underbrace{00\dots0}_{\text{$n$ $0$'s}}}^3 \quad\text{vs.}\quad
 5\underbrace{00\dots0}_{\text{$n$ $0$'s}}{}^3
\]
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.