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

I'm currently using \longrightarrow to mean "tends to [some limit]", and sometimes I need to use its negation. I see that there is an \nrightarrow, but unfortunately it doesn't make a matching pair with \longrightarrow, and \not\longrightarrow looks quite bad. What's the easiest way to adjust the position of the little slash so that I can define a \nlongrightarrow? The solution from this related question looks excellent but seems to be overkill for my purposes.

share|improve this question
up vote 13 down vote accepted

Generally, you can often achieve better results by using the \centernot macro from the centernot package instead of the normal \not command.

In this case, however, the stmaryrd package offers the special \longarrownot/\Longarrownot macros you can use for this purpose:

    $\centernot\longrightarrow$ % with centernot
    $\longarrownot\longrightarrow$ % with stmaryrd


centernot: result with centernot, stmaryrd: result with stmaryd

share|improve this answer

If you need the symbol only in text size, you can say

    \hskip 0pt plus .5fill $\arrownot$\hskip 0pt plus 2fill\cr}}

The skip values were found by trial and error. I would use \rightarrow and \nrightarrow anyway; personal taste, I'd say. :)

share|improve this answer

Your Answer


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.