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 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

1 Answer 1

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.