TransWikia.com

How to have left and right arrow above and below with an equation with text

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:

enter image description here

One Answer

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}

enter image description here

For less generous vertical space use something like

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

enter image description here

Correct answer by egreg on August 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP