![如何在带有文本的方程式上方和下方显示左右箭头](https://linux22.com/image/420774/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%B8%A6%E6%9C%89%E6%96%87%E6%9C%AC%E7%9A%84%E6%96%B9%E7%A8%8B%E5%BC%8F%E4%B8%8A%E6%96%B9%E5%92%8C%E4%B8%8B%E6%96%B9%E6%98%BE%E7%A4%BA%E5%B7%A6%E5%8F%B3%E7%AE%AD%E5%A4%B4.png)
答案1
由于对称性,不需要array
其他技巧:
\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$\\
[...]