这些\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}