这是我的 MWE:
\documentclass{article}
\usepackage{unicode-math}
\newcommand\closure[1]{\overline{#1}}
\begin{document}
The intersection of the closed ball $\overline{B}(1)$ with the closed
ball $\closure{B}(2)$ is the same as the intersection of the closed
ball $\closure{B}(2)$ with the closed ball $\overline{B}(1)$.
\end{document}
请注意“B(2)”之前的多余空格和缺失的上划线。
当我注释掉时问题就消失了\usepackage{unicode-math}
。
答案1
原因是unicode-math
默默地重新定义\closure
以产生角色
⁐ U+2050 特写
这似乎是一个“隐藏的功能”。
\documentclass{article}
\usepackage{unicode-math}
\AtBeginDocument{%
\providecommand{\closure}{}%
\renewcommand\closure[1]{\overline{#1}}%
}
\begin{document}
The intersection of the closed ball $\overline{B}(1)$ with the closed
ball $\closure{B}(2)$ is the same as the intersection of the closed
ball $\closure{B}(2)$ with the closed ball $\overline{B}(1)$.
\end{document}