TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I type this notation in latex? enter image description here

share|improve this question
3  
With amsmath use f_n \xrightarrow{\mu} f. – Sigur Jan 30 at 20:47
    
Thanks a lot, it works!!! But the arrow is a bit short, how can I make it longer? – SiXUlm Jan 30 at 20:51
2  
Like this for example: f_n \xrightarrow{\enskip\mu\enskip} f . Alternatively you could use a longrightarrow and overset. This way the arrow is always the same length: f_n \overset{\mu}{\longrightarrow} f. – Benjamin Jan 30 at 20:52
    
@Benjamin: It is exactly what I'm looking for. Thanks a lot!!! – SiXUlm Jan 30 at 20:55
2  
Or you define your own custom xrightarrow with a fixed width: \newcommand{\myrightarrow}[1]{\xrightarrow{\makebox[2em][c]{$\scriptstyle#1$}}}‌​. You can use it then like this: f_n \myrightarrow{\mu} f – Benjamin Jan 30 at 20:59
up vote 14 down vote accepted

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:

simple

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{\enskip\mu\enskip} f
f_n \xrightarrow{\enskip L^p\enskip} f

with space

To prevent this you could use \overset{•}{•} combined with a \longrightarrow.

f_n \overset{\mu}{\longrightarrow} f
f_n \overset{L^p}{\longrightarrow} f

overset

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 

enter image description here

share|improve this answer
    
very complete answer. Thanks!!! – SiXUlm Jan 30 at 23:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.