\tilde{\otimes} 的间距

\tilde{\otimes} 的间距

我怎样才能使两个符号\otimes和的间距\tildeotimes相同?

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\tildeotimes}{\tilde{\otimes}}
\begin{document}
    $a \otimes b$

    $a \tildeotimes b$
\end{document}

答案1

使用\mathbin{}左右\tildeotimes

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\tildeotimes}{\tilde{\otimes}}
\begin{document}
    $a \otimes b$

    $a \mathbin{\tildeotimes} b$
\end{document}

enter image description here

根据答案如何使用 \DeclareMathOperator 模拟 \bullet 周围的间距?\DeclareMathOperator“仅适用于\log类似函数”。因此,首选的实现是:

\documentclass{article}
\usepackage{amsmath}
\newcommand*{\tildeotimes}{\mathbin{\tilde{\otimes}}}
\begin{document}
    $a \otimes b$

    $a \tildeotimes b$
\end{document}

相关内容