latex3 / unicode-math

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

Missing number error with new L3 release #392

Closed tweh closed 7 years ago

tweh commented 7 years ago

The following code used to work fine but produces a missing number error after I made an update to the current LaTeX 3 packages (see file list below). I.e. although stated in the manual the TeX syntax to access a slot doesn’t work anymore …

% !TeX program = xelatex
\documentclass{scrbook}

\usepackage{expl3}

\usepackage{unicode-math}
\setmathfont{texgyrepagella-math.otf}[
   range = { `\+ }
]

\begin{document}

Test $+$

\end{document}

This is my file list for the above MWE:

 *File List*
 scrbook.cls    2017/04/13 v3.23 KOMA-Script document class (book)
scrkbase.sty    2017/04/13 v3.23 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2017/04/13 v3.23 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2017/04/13 v3.23 KOMA-Script package (loading files)
tocbasic.sty    2017/04/13 v3.23 KOMA-Script package (handling toc-files)
scrsize11pt.clo    2017/04/13 v3.23 KOMA-Script font size class option (11pt)
typearea.sty    2017/04/13 v3.23 KOMA-Script package (type area)
   expl3.sty    2017/07/19 L3 programming layer (loader) 
expl3-code.tex    2017/07/19 L3 programming layer 
l3xdvipdfmx.def    
unicode-math.sty    2017/01/27 v0.8d Unicode maths in XeLaTeX and LuaLaTeX
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
ucharcat.sty    2015/11/19 v0.03 ucharcat for luaLaTeX (DPC)
  xparse.sty    2017/07/19 L3 Experimental document command parser
l3keys2e.sty    2017/07/19 LaTeX2e option processing using LaTeX3 keys
fontspec.sty    2017/07/23 v2.6c Font selection for XeLaTeX and LuaLaTeX
fontspec-xetex.sty    2017/07/23 v2.6c Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
   tuenc.def    2017/04/05 v2.0i Standard LaTeX file
fontspec.cfg
  fix-cm.sty    2015/01/14 v1.1t fixes to LaTeX
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
filehook.sty    2011/10/12 v0.5d Hooks for input files
filehook-scrlfile.sty    2011/01/03 v0.1 filehook patch for scrlfile package
unicode-math-xetex.sty    
 ***********
eg9 commented 7 years ago

Caused by the breaking change to booleans, I guess.

josephwright commented 7 years ago

@wspr is away: I'll take a look and see if I can sort a pull request (possibly tomorrow: busy rebuilding laptop ATM)

tweh commented 7 years ago

Update: it is the same for unicode numbers like "27D0. Only macros (e.g. \int or \mathit) still work.

wspr commented 7 years ago

Thanks for reporting this. Indeed a problem with greedy booleans. Fix on its way.

tweh commented 7 years ago

Great. Thanks :-)