![这些 \setlength、逻辑符号 \oplus、\nor 和 \nand 是否与 IEEEtran 兼容?](https://linux22.com/image/452791/%E8%BF%99%E4%BA%9B%20%5Csetlength%E3%80%81%E9%80%BB%E8%BE%91%E7%AC%A6%E5%8F%B7%20%5Coplus%E3%80%81%5Cnor%20%E5%92%8C%20%5Cnand%20%E6%98%AF%E5%90%A6%E4%B8%8E%20IEEEtran%20%E5%85%BC%E5%AE%B9%EF%BC%9F.png)
这些\setlength
、逻辑符号\oplus
、\nor
、\nand
与 IEEEtran 兼容吗?
我搜索并找到了一个参考这里但是有太多不同的设置,令人困惑。
\documentclass[journal]{IEEEtran}
\usepackage{mathtools}
\makeatletter
\DeclareRobustCommand{\nand}{\mathbin{\mathpalette\n@and@or\land}}
\DeclareRobustCommand{\nor}{\mathbin{\mathpalette\n@and@or\lor}}
\newcommand{\n@and@or}[2]{%
\vphantom{#2}%
\ooalign{$\m@th#1#2$\cr\hidewidth$\m@th#1\sim$\hidewidth\cr}%
}
%
\setlength{\abovedisplayskip}{12pt plus 3pt minus 9pt}%
\setlength{\belowdisplayskip}{12pt plus 3pt minus 9pt}%
\setlength{\abovedisplayshortskip}{12pt plus 3pt minus 9pt}%
\setlength{\belowdisplayshortskip}{7pt plus 3pt minus 4pt}%
\setlength{\jot}{3pt}% Inter-equation spacing
%
\begin{document}
$
A\oplus B\\
A\nor B \\
A\nand B
$
\end{document}