-1

This post uses this math equation

enter image description here

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

whnlp
  • 321
  • @Lukas your link is already a duplicate – BambOo Sep 18 '19 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 Sep 18 '19 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 Sep 18 '19 at 14:29
  • @BambOo I think that is still not the right duplicate. \rightarrow and \Rightarrow are very different. – schtandard Sep 18 '19 at 14:35

1 Answers1

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

Sango
  • 887
  • 7
    $\xrightarrow{L^2}$ from the amsmath package is a better choice in terms of spacing in my opinion. – Lukas D. Sauer Sep 18 '19 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 Sep 18 '19 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 Sep 18 '19 at 14:47
  • That also may be, but it answers the question on how to write L^2 above an arrow. – Sango Sep 18 '19 at 14:48
  • 1
    The arrow should be higher, just like when one types \rightarrow. Pushing it down there is wrong. – egreg Sep 18 '19 at 14:57
  • 1
    Added MWE, took @Sebastiano s answer from the comments and added that also for comparison. It does look better. – Sango Sep 18 '19 at 15:04
  • looks a lot better now, I removed the downvote – Lukas D. Sauer Sep 18 '19 at 15:21