TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 16 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

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.