2

I am using XeLaTeX and unicode-math with the Libertinus Math font. Some symbols are missing therefore I'm using the range command. Then I get an unwanted crossed-square symbol beside big curly braces. Here is a MWE.

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Libertinus Math}
\setmathfont[range={\rightrightarrows,\twoheadrightarrow}]{xits-math.otf}
% The seemingly useleess command below is needed for a different known bug
\setmathfont[range={\int}]{Libertinus Math}
\begin{document}
\[
\Bigl\{\Bigr\}
\]
\end{document}

enter image description here

Known bug in the comment above: Unicode-math changes font outside of range

Does anybody know if this is a known bug? Is there a solution?

EDIT: I just found a workaround here. Is there a "cleaner" solution?

1
  • 1
    The bug has been fixed with unicode-math version 0.8j, released 2018-01-07.
    – egreg
    Commented Jan 10, 2018 at 12:03

1 Answer 1

4

You can reset the delcode:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Libertinus Math}
\setmathfont[range={\rightrightarrows,\twoheadrightarrow}]{xits-math.otf}
% The seemingly useleess command below is needed for a different known bug
\setmathfont[range={\int}]{Libertinus Math}
\ExplSyntaxOn
\__um_set_delcode:nnn {operators} {`\.} {\c_zero}
\ExplSyntaxOff
\begin{document}
\[
\Bigl\{\Bigr\}
\]
\end{document}

But it would be better if this were corrected in unicode-math (or xetex if it indicates a xetex bug).

3
  • Thanks, I'm hoping to look into all of these problems shortly... Commented Oct 23, 2017 at 12:51
  • @WillRobertson On the whole I think it is a xetex peculiarity. It seems to handle the dot in the operators family (fam0? I never remember this) differently than in other families. So it is probably best to hardcode this delcode. Commented Oct 23, 2017 at 12:57
  • — I remember hardcoding this already in general (inside \[email protected]_setup_delcodes: in the source) so I suspect you're right that hardcoding it for operators and so on is also needed. Commented Oct 25, 2017 at 0:56

You must log in to answer this question.

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