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.

I have some problem to make the Underbrace partly for the equation like the picture shows. The unique part is the "b" is used twice.

enter image description here

Thanks !

share|improve this question
    
What is the expected output? Try to explain it a little better. EDIT: I mean, if we achieve that “b is used twice”, both underbraces will obviously collide. Do you want one under, and other over? And then, on the top, the bigger one? –  Manuel Feb 27 at 10:32
    
As your reader, I'd be confused by this... –  Jubobs Feb 27 at 11:19
    
@Jubobs ,my bad,Eglish is not my first language. I didn't explain it in a proper way. I would like to say that the first under-brace is for "a+b" and the second under-brace is for "b+c" but there is only one "b" appeared in the equation. And usually I use \underbrace{a+b}_\text{bla bla} for the first under-brace. However, the b is already used buy the first under-brace so \underbrace{b?+c}_\text{bla bla} is really a problem for me –  user3004698 Feb 27 at 11:40
    
No no :) I understand what output you want to achieve. I'm just saying I have a problem with the output itself: whether b belongs to one, both or none of the the underbraces is not immediately obvious to me, and it may not be to your readers. –  Jubobs Feb 27 at 11:46

1 Answer 1

up vote 9 down vote accepted

You can underbrace “a+(nothing)”, print a zero width “b” and again underbrace “(nothing)+c”:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
\overbrace{
  \underbrace{a+{}}_\text{text}
  \mathclap{b}
  \underbrace{{}+c}_\text{text}
}^{\text{text}}
\]
\end{document}

enter image description here

share|improve this answer
    
Thanks bro! That's what I need!!! –  user3004698 Feb 27 at 11:41
2  
@user3004698 It would require some more work in case the symbol in the middle is wider. Just add to your question in case you need some adjustments. –  egreg Feb 27 at 11:43

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.