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

I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part.

enter image description here

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
\rlap{$\overbrace{\phantom{(r+\epsilon)V_t}}^{\text{Required return}}$} (r+\epsilon)V_t
=
\rlap{$\overbrace{\phantom{V_{t+1}^e-V_t}}^{\text{Expected capital gain}}$}\underbrace{D^e_t+V_{t+1}^e-V_t}_{\text{Total expected return on shares}}
\]
\end{document}
share|improve this question
up vote 7 down vote accepted

What about this?

\documentclass[12pt]{article}
\usepackage{mathtools}

\begin{document}

\begin{displaymath}
  \overbrace{(r+\epsilon)V_t}^{\text{\clap{Required return}}}
  \quad = \quad \underbrace{\overbrace{D^e_t+V_{t+1}^e}^{\text{\clap{Expected capital gain}}}
              - V_t}_{\text{\clap{Total expected return on shares}}}
\end{displaymath}

\end{document}

enter image description here

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.