2

Here's my 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}

This is what I'm seeing (with xelatex): enter image description here

Note the extra space before "B(2)" and the missing overline.

The problem goes away when I comment out \usepackage{unicode-math}.

1 Answer 1

2

The reason is that unicode-math silently redefines \closure to yield the character

⁐ U+2050 CLOSE UP

which seems to be a “hidden feature”.

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

enter image description here

2
  • 1
    See github.com/wspr/unicode-math/issues/486 Commented Aug 16, 2018 at 21:24
  • Excellent! Thank you for the quick response. Commented Aug 16, 2018 at 22:20

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.