TeX - LaTeX Asked by electro7912 on August 6, 2021
I want to know how I can write an equation that has a left arrow on top with text and a right arrow on the bottom with text. Essentially, I want to be able to write:
Due to the symmetry, an array
will do with no other trick:
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}
For less generous vertical space use something like
[
renewcommand{arraystretch}{0.75}
frac{dI}{dm}=
begin{array}{@{}c@{}}
text{Approach 1}
$leftarrowfill$
[...]
Correct answer by egreg on August 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP