答案1
\documentclass{article}
\usepackage{amssymb,centernot}
\newcommand*\crampedhalign[1]{%
\vcenter{%
\baselineskip=0pt
\lineskip=0pt
\halign{$\mathsurround=0pt##$\crcr#1\crcr}%
}%
}
\newcommand*\nrightleftarrows{\mathrel{\crampedhalign{\nrightarrow\cr\nleftarrow\cr}}}
\newcommand*\nleftrightarrows{\mathrel{\crampedhalign{\nleftarrow\cr\nrightarrow\cr}}}
\begin{document}
$\centernot\leftrightarrows$
$\centernot\rightleftarrows$
$\nleftrightarrows$
$\nrightleftarrows$
\end{document}
答案2
这是一个 Ti钾Z 解决方案。用于\raisebox
使符号垂直完美居中。
\documentclass[border = 1cm]{standalone}
\usepackage{tikz}
\newcommand{\doubleCross}{%
\raisebox{-1pt}{%
\begin{tikzpicture}[scale = 1.2]%
\draw [->] (0, 0) -- (0.25, 0); % Right arrow
\draw [<-] (0, 0.1) -- (0.25, 0.1); % Left arrow
\draw [black](0.25,0.15) -- (0,-0.05); % Cross on both arrows
\end{tikzpicture}
}%
}
\newcommand{\singleCross}{%
\raisebox{-1pt}{%
\begin{tikzpicture}[scale = 1.2]%
\draw [<-] (0, 0) -- (0.25, 0); % Left arrow
\draw [black](0.16,0.15) -- (0.08,0.05); % Left arrow cross
\draw [->] (0, 0.1) -- (0.25, 0.1); % Right arrow
\draw [black](0.16,0.05) -- (0.08,-0.05); % Right arrow cross
\end{tikzpicture}
}%
}
\begin{document}
This is the \verb|\doubleCross| \doubleCross symbol.
This is the \verb|\singleCross| \singleCross symbol.
\end{document}