1. Text directly over objects

I know how to do things like $\overbrace{\longrightarrow}^{\text{yay!}}$...but how would I do this $\longrightarrow^{\text{yay!}}$ but have it centered over the arrow. Same thing for something under like $\max\left(\xi\right)_{x\in(-1,1)}$

2. Originally Posted by Mathstud28
I know how to do things like $\overbrace{\longrightarrow}^{\text{yay!}}$...but how would I do this $\longrightarrow^{\text{yay!}}$ but have it centered over the arrow. Same thing for something under like $\max\left(\xi\right)_{x\in(-1,1)}$
Try \xrightarrow{yay!} ... $\xrightarrow{yay!}$

The general syntax is \xrightarrow[subscript]{superscript} (also works for \xleftarrow)

3. Originally Posted by Chris L T521
Try \xrightarrow{yay!} ... $\xrightarrow{yay!}$

The general syntax is \xrightarrow[subscript]{superscript} (also works for \xleftarrow)
$\xrightarrow{\text{yay!}}$

$\xmax[x\in(-1,1)]$

$\xrightarrow[\text{yay!}]$

It does not work for non-arrows? And I cannot seem to get the text under the arrow.

4. Originally Posted by Mathstud28
$\xrightarrow{\text{yay!}}$

$\xmax[x\in(-1,1)]$

$\xrightarrow[\text{yay!}]{}$

It does not work for non-arrows? And I cannot seem to get the text under the arrow.
Fixed the third one... it should be \xrightarrow[\text{yay!}]{}

For the second one, use the \limits command: \max\limits_{x\in(-1,1)} gives you $\max\limits_{x\in(-1,1)}$.

5. Originally Posted by Chris L T521
For the second one, use the \limits command: \max\limits_{x\in(-1,1)} gives you $\max\limits_{x\in(-1,1)}$.
Why do you use the \limits command, Chris ? \max_{x\in(-1,1)} gives $\max_{x\in(-1,1)}$ too.

6. Originally Posted by flyingsquirrel
Why do you use the \limits command, Chris ? \max_{x\in(-1,1)} gives $\max_{x\in(-1,1)}$ too.
$\max_{x\in(-1,1)}(\xi)$

Thank you Flyingsquirrel, the problem was the order I was writing. I was writing $$\max(\xi)_{x\in(-1,1)}$$

7. $\stackrel{yup}{\longrightarrow}$

\stackrel{yup}{\longrightarrow}

8. Originally Posted by Moo
$\stackrel{yup}{\longrightarrow}$

\stackrel{yup}{\longrightarrow}
$\stackrel{\stackrel{thank}{you}}{\longrightarrow}$

9. $\stackrel{\displaystyle{\stackrel{thank}{you}}}{\l ongrightarrow}$

does it look better ?
It depends on how you want to use it, \displaystyle looks more useful for a three lines stuff.

10. Originally Posted by Moo
\displaystyle looks more useful for a three lines stuff.
\substack gives a nice result : $\stackrel{\substack{\text{a two lines}\\ \text{stuff} }}{\longrightarrow}$, $\stackrel{\substack{\text{and a } \\ \text{three lines}\\ \text{stuff} }}{\longrightarrow}$.

To write the whole proof over the arrow, use Chris' solution : $f(x)\xrightarrow[x\to0]{\text{Let }\varepsilon>0.\,\text{According to the previous lemma, if one lets}\,\delta=\ldots }\pi$.