Results 1 to 10 of 10

Thread: Text directly over objects

  1. #1
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641

    Text directly over objects

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

  2. #2
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    5
    Quote Originally Posted by Mathstud28 View Post
    I know how to do things like $\displaystyle \overbrace{\longrightarrow}^{\text{yay!}}$...but how would I do this $\displaystyle \longrightarrow^{\text{yay!}}$ but have it centered over the arrow. Same thing for something under like $\displaystyle \max\left(\xi\right)_{x\in(-1,1)}$
    Try \xrightarrow{yay!} ... $\displaystyle \xrightarrow{yay!}$

    The general syntax is \xrightarrow[subscript]{superscript} (also works for \xleftarrow)
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by Chris L T521 View Post
    Try \xrightarrow{yay!} ... $\displaystyle \xrightarrow{yay!}$

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

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

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

    It does not work for non-arrows? And I cannot seem to get the text under the arrow.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    5
    Quote Originally Posted by Mathstud28 View Post
    $\displaystyle \xrightarrow{\text{yay!}}$

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

    $\displaystyle \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 $\displaystyle \max\limits_{x\in(-1,1)}$.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Quote Originally Posted by Chris L T521 View Post
    For the second one, use the \limits command: \max\limits_{x\in(-1,1)} gives you $\displaystyle \max\limits_{x\in(-1,1)}$.
    Why do you use the \limits command, Chris ? \max_{x\in(-1,1)} gives $\displaystyle \max_{x\in(-1,1)}$ too.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by flyingsquirrel View Post
    Why do you use the \limits command, Chris ? \max_{x\in(-1,1)} gives $\displaystyle \max_{x\in(-1,1)}$ too.
    $\displaystyle \max_{x\in(-1,1)}(\xi)$

    Thank you Flyingsquirrel, the problem was the order I was writing. I was writing [tex]\max(\xi)_{x\in(-1,1)}[/tex]
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    $\displaystyle \stackrel{yup}{\longrightarrow}$

    \stackrel{yup}{\longrightarrow}
    Follow Math Help Forum on Facebook and Google+

  8. #8
    MHF Contributor Mathstud28's Avatar
    Joined
    Mar 2008
    From
    Pennsylvania
    Posts
    3,641
    Quote Originally Posted by Moo View Post
    $\displaystyle \stackrel{yup}{\longrightarrow}$

    \stackrel{yup}{\longrightarrow}
    $\displaystyle \stackrel{\stackrel{thank}{you}}{\longrightarrow}$
    Follow Math Help Forum on Facebook and Google+

  9. #9
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    $\displaystyle \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.
    Follow Math Help Forum on Facebook and Google+

  10. #10
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Quote Originally Posted by Moo View Post
    \displaystyle looks more useful for a three lines stuff.
    \substack gives a nice result : $\displaystyle \stackrel{\substack{\text{a two lines}\\ \text{stuff} }}{\longrightarrow}$, $\displaystyle \stackrel{\substack{\text{and a } \\ \text{three lines}\\ \text{stuff} }}{\longrightarrow}$.

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

Similar Math Help Forum Discussions

  1. directly proportional
    Posted in the Algebra Forum
    Replies: 1
    Last Post: Mar 21st 2011, 10:54 AM
  2. Prove directly
    Posted in the Calculus Forum
    Replies: 1
    Last Post: Aug 30th 2010, 05:42 PM
  3. Directly proportional
    Posted in the Algebra Forum
    Replies: 1
    Last Post: Jun 6th 2010, 07:47 AM
  4. directly proportional problem
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: Apr 27th 2010, 04:13 PM
  5. Type TeX directly into Word
    Posted in the Math Software Forum
    Replies: 0
    Last Post: Dec 3rd 2008, 08:04 AM

Search Tags


/mathhelpforum @mathhelpforum