我想使用\not
,但让斜线向后划\
,而不是向前划/
。如何实现?
答案1
像这样吗?
\documentclass{amsart}
\usepackage{amsmath}
\newcommand\mynot[1]{%
\mathrel%
{%
\ooalign{\hidewidth$\backslash$\hidewidth\cr$#1$}%
}%
}
\begin{document}
\[ a\mynot{=}b\]
\[a\mynot{\geq}b\]
\end{document}
答案2
这是一个\backnot
命令:
\documentclass{article}
\usepackage{graphicx}
\makeatletter
\newcommand\backnot{\mathrel{\mathpalette\back@not\relax}}
\newcommand\back@not[2]{%
\makebox[0pt][l]{%
\sbox\z@{$\m@th#1=$}%
\kern\wd\z@
\reflectbox{$\m@th#1\not$}%
}%
}
\makeatother
\begin{document}
$a\not= b_{\not=}$
$a\backnot= b_{\backnot=}$
\end{document}