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. :-)


2 Answers 2


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.

  • Ok that was a fast and (so far) perfect answer. Thanks a lot! :-) Oct 28, 2012 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).


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .