![让 \not\longrightarrow 看起来不错的最简单方法](https://linux22.com/image/236405/%E8%AE%A9%20%5Cnot%5Cl%E2%80%8B%E2%80%8Bongrightarrow%20%E7%9C%8B%E8%B5%B7%E6%9D%A5%E4%B8%8D%E9%94%99%E7%9A%84%E6%9C%80%E7%AE%80%E5%8D%95%E6%96%B9%E6%B3%95.png)
我目前使用\longrightarrow
表示“趋向于 [某个极限]”,有时我需要使用它的否定。我看到有一个\nrightarrow
,但不幸的是它与 不匹配\longrightarrow
,\not\longrightarrow
看起来很糟糕。调整小斜线的位置以便定义 的最简单方法是什么\nlongrightarrow
?解决方案来自这个相关问题看起来很棒,但对于我的目的来说似乎有点过度了。
答案1
\centernot
一般来说,使用centernot
包而不是正常\not
命令。
然而,在这种情况下,stmaryrd
软件包提供了您可以用于此目的的特殊\longarrownot
/宏:\Longarrownot
\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{centernot}
\usepackage{stmaryrd}
\begin{document}
$\centernot\longrightarrow$ % with centernot
$\longarrownot\longrightarrow$ % with stmaryrd
\end{document}
结果:
centernot
:,
stmaryrd
:
答案2
如果你只需要文本大小的符号,你可以说
\usepackage{stmaryrd}
\newcommand\nlongrightarrow{
\mathrel{\ooalign{$\longrightarrow$\cr
\hskip 0pt plus .5fill $\arrownot$\hskip 0pt plus 2fill\cr}}
}
跳过值是通过反复试验找到的。无论如何我都会使用\rightarrow
;\nrightarrow
我想说,这是个人喜好。:)