我想在公式中使用\overbrace
s 和s。但是,当我将s 文本写得太长时,不包含正确的部分。\underbrace
\overbrace
\overbrace
\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}
答案1
那这个呢?
\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}