-1

This post uses this math equation

enter image description here

How to write the latex for the L^2 on an arrow?

4
  • @Lukas your link is already a duplicate
    – BambOo
    Commented Sep 18, 2019 at 14:04
  • F_n(x) \xrightarrow{\scriptscriptstyle \: L^2\:} F(x) I think it looks best with a little extra space and an even smaller font size
    – daleif
    Commented Sep 18, 2019 at 14:06
  • Kind user you can try, also, this code: \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \begin{document} $F_n(x)\overset{\scriptstyle L^2}{\to}F(x)$ \end{document}. It is very important to try to read any guide for LaTeX :-). The tag, for my humble opinion, is off-topic.
    – Sebastiano
    Commented Sep 18, 2019 at 14:29
  • @BambOo I think that is still not the right duplicate. \rightarrow and \Rightarrow are very different.
    – schtandard
    Commented Sep 18, 2019 at 14:35

1 Answer 1

2
\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
 \[F_n(x)\underrightarrow{L^2}F(x)\] % answer by Sango
 \[F_n(x)\overset{\scriptstyle L^2}{\to}F(x)\] % answer by Sebastiano
\end{document}

enter image description here

7
  • 7
    $\xrightarrow{L^2}$ from the amsmath package is a better choice in terms of spacing in my opinion. Commented Sep 18, 2019 at 13:48
  • That might be true. But this is also an answer for the question. I don't understand why this is downvoted.
    – Sango
    Commented Sep 18, 2019 at 14:45
  • 1
    @Sango Your output (code) is different from the image of the user. It is very important to put a MWE (with all the packages used). Addendum: I have given trusted you. Enter an MWE.
    – Sebastiano
    Commented Sep 18, 2019 at 14:47
  • 1
    The arrow should be higher, just like when one types \rightarrow. Pushing it down there is wrong.
    – egreg
    Commented Sep 18, 2019 at 14:57
  • 1
    Added MWE, took @Sebastiano s answer from the comments and added that also for comparison. It does look better.
    – Sango
    Commented Sep 18, 2019 at 15:04

Not the answer you're looking for? Browse other questions tagged .