4

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.