Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a way to align multiple underbraces so that they sit on the same horizontal line? For example, the following code

\[
\biggl(
\underbrace{0,1}_{A}, 
\underbrace{\frac{1}{2},\frac{1}{3}}_{B}
\biggr)
\]

produces this:

underbraces

But I would like "A" and "B" to be on the same line.

share|improve this question
add comment

1 Answer

up vote 12 down vote accepted

To align the braces and the text

\[
\biggl(
\underbrace{\vphantom{\frac{1}{2},\frac{1}{3}}0,1}_{A},
\underbrace{\frac{1}{2},\frac{1}{3}}_{B}
\biggr)
\]

or to align the text only

\[
\biggl(
\mathop{\vphantom{\underbrace{\frac{1}{2},\frac{1}{3}}}\underbrace{0,1}}_{A},
\underbrace{\frac{1}{2},\frac{1}{3}}_{B}
\biggr)
\]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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