I know it's possible to have \xrightarrow (text), but if I try to do \xRightarrow (text) I get an error each time. Does anybody know if it's a syntax error or if there is a other way to produce the \Rightarrow with text above?


enter image description here

Just taking the definition of \xrightarrow and replacing r by R :


\newcommand{\xRightarrow}[2][]{\ext@arrow 0359\Rightarrowfill@{#1}{#2}}




  • 29
    oh, please at least make that \mathit{hello} to get rid of the obnoxious math kerning. Dec 1 '12 at 19:19
  • 3
    As I posted I felt your pain but I had to dash:-) Dec 1 '12 at 20:52
  • 1
    how do you choose the single arrow when making the command? copy pasting your code (that has no explanation) yields the double arrow. May 29 '20 at 20:02
  • @CharlieParker I'm not sure I understand your question, my answer shows two arrows, the single one \xrightarrow is a standard command from amsmath just shown for comparison, and the double arrow version with capital R which is defined here. May 29 '20 at 20:41



enter image description here

  • 15
    Why the difference in arrow lengths? The head of the double arrow is under "o" of hello, while "hello" is entirely above the shaft of the single arrow. Sep 1 '14 at 14:59

You can also use underset and overset:

$\underset{\text{hello}} \longrightarrow$

$\overset{\text{hello}} \longrightarrow$

$\underset{\tiny\text{hello}} \longrightarrow$

$\overset{\tiny\text{hello}} \longrightarrow$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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