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

What LaTeX markup would one have to write to produce a result similar to the image below?

enter image description here

Please excuse my Paint-and-mouse drawing skills. :-)

share|improve this question
Well, depending on how fancy you want to get there is always a \tikzmark solution... :-) – Peter Grill Oct 28 '12 at 1:27
@PeterGrill Do you have an example of something fancy? :-) – Bent Rasmussen Oct 28 '12 at 2:24
Well, have a look at Curly brace to insert something into an equation? Like an inverted underbrace, or Asymmetric overbrace, or Overbrace in amsmath align environment. Only useful, if you perhaps want to add color, change the arrow tips, etc... – Peter Grill Oct 28 '12 at 3:06
Also have a look at the mathtools package for fixing the spacing of the braces and introducing brackets together with many other fixes to amsmath package. Section 3.3.2 is the part I've mentioned. – percusse Oct 28 '12 at 9:46
up vote 18 down vote accepted

amsmath's \text can help to obtain the correct size of superscript/subscript fonts in math mode, while the bracing it possible using the traditional \overbrace/\underbrace:

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
$\overbrace{a\rightarrow\underbrace{(b\rightarrow c)}_{\text{bar}}}^{\text{foo}}$

For other symbols (like arrows), see the Comprehensive LaTeX Symbol List.

share|improve this answer
Ok that was a fast and (so far) perfect answer. Thanks a lot! :-) – Bent Rasmussen Oct 28 '12 at 1:11

While Werner's solution is compact and precise, this one shows other possibilities.

  \overset{\text{foo}}{\overbrace{a\rightarrow \underset{\text{bar}}{\underbrace{(b \rightarrow c)}}}}

enter image description here

However, I would go Werner's way if I have to do this :-). (This answer is for having some fun).

share|improve this answer
Thanks to you both for good solutions to the problem. – Bent Rasmussen Oct 28 '12 at 1:24

Your Answer


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.