如何使用帶有文字的方程式在上方和下方顯示左右箭頭

如何使用帶有文字的方程式在上方和下方顯示左右箭頭

我想知道如何編寫一個方程,其頂部有一個帶有文字的左箭頭,底部有一個帶有文字的右箭頭。本質上,我希望能夠寫:

在此輸入影像描述

答案1

由於對稱性, an arraywill 不需要其他技巧:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\frac{dI}{dm}=
\begin{array}{@{}c@{}}
\text{Approach 1} \\
$\leftarrowfill$\\
\displaystyle
\frac{\partial f_p(m_{p})}{m_{p}}\,
\frac{\partial f_{p-1}(m_{p-1})}{m_{p-1}}
\dots
\frac{\partial f_1(m_{1})}{m_{1}}
\\
$\rightarrowfill$\\
\text{Approach 2}
\end{array}
\]

\end{document}

在此輸入影像描述

對於不太寬敞的垂直空間,請使用類似的東西

\[
\renewcommand{\arraystretch}{0.75}
\frac{dI}{dm}=
\begin{array}{@{}c@{}}
\text{Approach 1} \\
$\leftarrowfill$\\
[...]

在此輸入影像描述

相關內容