
Considere o código
% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass[11pt]{book}
\usepackage{unicode-math}
\setmainfont [Ligatures=TeX] {TeX Gyre Pagella}
\setmathfont [Scale=1.05] {Latin Modern Math}
\setmathfont [range=\mathbb] {TeX Gyre Pagella Math}
\def\csdef #1{\expandafter\def\csname#1\endcsname}
\def\foo #1{\mathop{\mathcal{#1\kern 0pt }}\nolimits}
\def\Newfunction #1#2{\csdef{#1}{\mathop{\mathrm {\rm #2}\kern 0pt}\nolimits}}
\def\bor {\mathcal{B}\mathit{or}}
\Newfunction{Bor}{\mathcal{B}\mathit{or}}
\Newfunction{Imp}{\mathcal{I}\mkern -2mu \textit{mp}}
\parskip 5pt
\begin{document}
1) $\foo{B} + \foo{I}$ \par
2) $\bor+\Bor$ \par
3) $\Imp$ \par
4) $\bigl(( \quad )\bigr)$ \par
\end{document}
Com o XeTeX, versão 3.14159265-2.6-0.99992 (TeX Live 2015), está tudo OK, exceto o \big no item 4.
Com o XeTeX, Versão 3.14159265-2.6-0.99996 (TeX Live 2016), o mathcal desaparece nos itens 2, 3.
No item 4, o \big é muito pequeno e um espaço extra é adicionado entre parênteses.
Ainda não entendo porque o item 1 está sempre correto...
Computador: MacMini final de 2012 + Mac OSX El Capitan 10.11.5
Responder1
Obrigado por relatar os bugs em unicode-math
@egreg. Os dois problemas já foram corrigidos com
- https://github.com/wspr/unicode-math/commit/3147086b80244df9e737e79f2f6808539bf47c69e
- https://github.com/wspr/unicode-math/commit/0f245c2ec4c527397a67f3ff04aea8107a6cbe31.
A versão relevante é v0.8l de 01/02/2018.