5

The following code

% !TEX program = XeLaTeX 
\documentclass{article}
    \usepackage{unicode-math,mathtools}
\begin{document}
    $\overline{A}\overline{A}\mathrlap{A}$
\end{document}

gives

Going deeper

Through some experiments, I found that mathtools and \mathclap are not to blame.

% !TEX program = XeLaTeX 
\documentclass{article}
    \usepackage{unicode-math}
\begin{document}
    $\overline{B}\overline{B}\hbox{$\scriptstyle B$}$
\end{document}

This disagreement is restricted to

  • The packageunicode-math
  • XeLaTeX (LuaLaTeX is fine)
  • The first \overline (The second is fine. \underline is fine)
  • \hbox containing scriptstyle and something printable.

One may also try this

$\overline{C}\overline{C}\mathchoice{}{}{}{\hbox{$\scriptstyle C$}}$

I have no idea how to go deeper. Any idea?

Symbol 1
  • 36,855

1 Answers1

2

This bug has been resolved. Both in TeXLive2017 and in a current miktex the output of a xelatex compilation is fine:

enter image description here

Ulrike Fischer
  • 327,261