TeX - LaTeX Asked by SiXUlm on January 27, 2021
As Sigur mentioned in the comments you could use amsmath
's xrightarrow{•}
.
f_n xrightarrow{mu} f
Unfortunately this leads to a quite short arrow:
There are multiple options to get a longer arrow. You could just add some space at the left and right. But this still leads to differently long arrows depending on the overset content.
f_n xrightarrow{enskipmuenskip} f
f_n xrightarrow{enskip L^penskip} f
To prevent this you could use overset{•}{•}
combined with a longrightarrow
.
f_n overset{mu}{longrightarrow} f
f_n overset{L^p}{longrightarrow} f
But in this case imho the arrow is still a little bit short. So the best way is probably to define a custom xrightarrow
with a fixed width like this. Change the predefined value 2em
to get a shorter or longer arrow.
newcommand{myrightarrow}[1]{xrightarrow{makebox[2em][c]{$scriptstyle#1$}}}
Which can then easily be used like this:
f_n myrightarrow{mu} f
f_n myrightarrow{L^p} f
Correct answer by Benjamin on January 27, 2021
Building on Benjamin's answer, if anyone looking for how to get the text under the arrow, you can use [mu]{}
instead of {mu}
.
f_n xrightarrow[mu]{} f
Similarly, if you want the arrows to be longer, you can add some space to either side
f_n xrightarrow[enskipmuenskip]{} f
f_n xrightarrow[enskip L^penskip]{} f
Lastly, you could also get them the same size by using the longrightarrow
f_n underset{mu}{longrightarrow} f
f_n underset{L^p}{longrightarrow} f
Answered by Finn-Henrik Barton on January 27, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP