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

Compiling unimath-symbols.ltx fails #570

Open stone-zeng opened 3 years ago

stone-zeng commented 3 years ago

Description

Recently compiling unimath-symbols.ltx will lead to error:

! Dimension too large.
\LT@max@sel #1#2->{\ifdim #2=\wd \tw@ 
                                      #1\else \number \c@LT@chunks \fi }{\th...

l.191 \SHOW\mathopen

?

Add info or delete as appropriate:

Version information

stone-zeng commented 3 years ago

See https://github.com/tabu-issues-for-future-maintainer/tabu/issues/26

davidcarlisle commented 3 years ago

It also fails for me on the name for the stix two math font, this runs without error although the count ref are broken somewhere

diff --git a/unimath-symbols.ltx b/unimath-symbols.ltx
index df6ac0e..972bcd4 100644
--- a/unimath-symbols.ltx
+++ b/unimath-symbols.ltx
@@ -10,7 +10,7 @@
 \documentclass[final]{article}
 \makeatletter

-\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,tabu,hyperref}
+\usepackage{ragged2e,setspace,booktabs,catchfile,shortvrb,geometry,metalogo,textcomp,longtable,array,hyperref}

 \geometry{margin=3cm}
 \hypersetup{colorlinks,linkcolor=black}
@@ -52,7 +52,7 @@

 \defmathfont{lm}{latinmodern-math.otf}{CC6666}{L}
 \defmathfont{xits}{XITSMath-Regular.otf}{6666CC}{X}
-\defmathfont{stix}{STIX2Math.otf}{66CC66}{S}
+\defmathfont{stix}{STIXTwoMath-Regular.otf}{66CC66}{S}
 \defmathfont{pagella}{texgyrepagella-math.otf}{AA6666}{P}
 \defmathfont{dejavu}{texgyredejavu-math.otf}{AACC66}{D}
 \defmathfont{fira}{FiraMath-Regular.otf}{AA66CC}{F}
@@ -60,13 +60,14 @@
 \def\INPUT{\input{unicode-math-table.tex}}
 \def\TABLE{%
 \par\noindent
-\begin{longtabu}[l]{@{}l *{\Nfonts}{c} lX[l]@{}}
+\setlength\tabcolsep{4pt}%
+\begin{longtable}[l]{@{}l *{\Nfonts}{c} lp{100pt}@{}}
   \toprule
   \textsc{usv} & \Llm & \Lxits & \Lstix & \Lpagella & \Ldejavu & \Lfira & Macro & Description \\
   \midrule \endhead
   \INPUT\\
   \bottomrule
-\end{longtabu}
+\end{longtable}
 }
 \makeatletter
 \def\USV#1{\footnotesize\scshape\MakeLowercase{u+\@gobble#1}}
davidcarlisle commented 3 years ago

if you add an \mbox{} after \FINISH the laels get written to the aux file, we shoudl check the kernel last page handling...