latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
245 stars 29 forks source link

math font in DeclareMathOperator broken #449

Closed PatrickMassot closed 6 years ago

PatrickMassot commented 6 years ago

Description

Since fairly recently, code like \DeclareMathOperator{\Op}{\mathbf{OB}} fails with: `! Undefined control sequence.

\math@bgroup \cs_if_eq:cNF {M@\f@encoding }\M@TU {\M@TU }\__um_switchto_literal` ## Check/indicate - [X] Relevant for XeTeX - [X] Relevant for LuaTeX - [X] Issue tracker has been searched for similar issues? - [ ] Links to discussion if appropriate ## Minimal example demonstrating the issue ``` \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \DeclareMathOperator{\Op}{\mathbf{OB}} \begin{document} $\Op$ \end{document} ``` ## Further details I'm using TeXLive 2017 on Debian Sid but I have one collaborator who noticed the issue and seems to be using Ubuntu 16.04.
wspr commented 6 years ago

Thanks, I’ve now fixed that up. Will make a new release shortly.

PatrickMassot commented 6 years ago

Thanks for the speedy fix!