6

I am using the following MWE. First time with unicode-math, second time without it:

% arara: lualatex

\documentclass{article}
\usepackage{amssymb}
%\usepackage{unicode-math}

\begin{document}
$\tilde\Box \hat\Box \bar\Box$   
\end{document}

enter image description here

enter image description here

Where does the difference come from? The kerning is clearly broken.

amssymb.sty 2013/01/14 v3.01 AMS font symbols

unicode-math.sty 2013/05/21 v0.7e Unicode mathematics support for XeTeX and LuaTeX

Edit

Barbara Beeton suggested to try the package latexsym instead of amssymb. This results in worse vertical positioning and the very same effect for I/O unicode-math:

% arara: lualatex

\documentclass{article}
\usepackage{latexsym}
%\usepackage{unicode-math}

\begin{document}
$\tilde\Box \hat\Box \bar\Box$   
\end{document}

enter image description here

enter image description here

2
  • 1
    latexsym also defines \Box. what happens when you use that one instead of amssymb? Commented May 7, 2014 at 17:27
  • @barbarabeeton I've tried that and added the non-pleasant result to my OP.
    – LaRiFaRi
    Commented May 8, 2014 at 7:04

1 Answer 1

5

You shouldn't be using amssymb together with unicode-math. The \Box command can be substituted with the (not really clearly named) \mdlgwhtsquare command (for U+25A1 WHITE SQUARE).

% arara: lualatex

\documentclass{article}

\usepackage{unicode-math}

\renewcommand{\Box}{\mdlgwhtsquare}

\begin{document}
$\tilde{\Box} \hat{\Box} \bar{\Box}$
\end{document}

enter image description here

1
  • Thanks. I was hoping, not to get this answer, as it does not help me with my answer here: tex.stackexchange.com/a/175853 But as you say that both packages are incompatible, my main question is answered herewith.
    – LaRiFaRi
    Commented May 8, 2014 at 7:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .