2

To obtain a larger version of \nrightarrow (LaTeX, Package amssymb), I typed

$\xymatrix{A\ar@<-1.5ex>@{}[r]^{/}\ar[r]&B}$ 

Is there a simpler way to obtain the same result, i.e. is it possible to move upward or downward the subscript (or the superscript) of an arrow?

egreg
  • 1,121,712
  • Welcome to TeX.SX! It's almost always to post a full example instead of only a fragment of code –  Dec 02 '14 at 11:34
  • How do you want to use this arrow? In a formula or like in your example or in text? Would a bigger scaled \nrightarrow work for you? – LaRiFaRi Dec 02 '14 at 12:05
  • The fragment of code was just an example. The question is: "Is it possible to move upward or downward the subscript (or the superscript) of an arrow?" (assuming the arrow is horizontal...)". – Albert Laffite Dec 02 '14 at 12:51
  • I see no subscript or superscript. – egreg Dec 02 '14 at 15:37
  • The aim is to draw an arrow, and in the middle of it a slash, without breaking the arrow. The solution above is made of three steps: – Albert Laffite Dec 02 '14 at 17:40
  • draw an invisible arrow shifted downwards (code \ar@<-1.5ex>@{}[r]) 2. Draw a superscript, here, a slash (code ^{/}) 3. draw another arrow (code \ar[r]).
  • – Albert Laffite Dec 02 '14 at 17:54
  • Related? http://tex.stackexchange.com/a/13940, http://tex.stackexchange.com/q/16173, http://tex.stackexchange.com/q/201659, http://tex.stackexchange.com/q/51022. In general: take a look to [tag:tikz-cd] which is easier and more powerful than [tag:xy-pic]. Or you scale and position your \nrightarrow to your needs. It is still very unclear, what subscript and superscript you are talking about. Please spend some more time in asking a clear question with an MWE! Thanks. – LaRiFaRi Dec 04 '14 at 13:29
  • http://tex.stackexchange.com/q/47063 – LaRiFaRi Dec 04 '14 at 13:34
  • Is your problem solved with my answer? If yes, please consider to accept it in order to close this post. If not, please tell us, what is missing. – LaRiFaRi May 19 '15 at 08:14