[luatex] open math constants leaks out?

Ulrike Fischer luatex at nililand.de
Mon Sep 5 15:47:06 CEST 2016


Am Mon, 5 Sep 2016 15:19:03 +0200 schrieb Hans Hagen:

>> Is this a bug? And what exactly happens that luatex changes the
>> spacing?
> 
> many mechanisms have two branches: traditional and opentypemath and the 
> mathconstants table determines what branch is entered
> 
> math italics and kerning is different for both kind of fonts; so using a 
> math table for a type one math fonts or omitting one for opentype math 
> gives a mess


The problem is naturally that the use of the opentype math table
from libertine wasn't intentional. And if one isn't aware that it
has a mathcontants table if can have quite bewildering side effects
if one load the font for some symbols as the last mathcontants table
always wins. As an latex example:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Cambria Math}

\setsansfont{Linux Libertine O}
\DeclareMathAlphabet
{\mathtest}{EU2}\sfdefault\mddefault\updefault

\begin{document}

\[
\int_{-\infty}^{\infty}a
\]

$\mathtest{abc}$

\[
\int_{-\infty}^{\infty}a
\]

\end{document}


I wonder if the fontloader code could offer some option to ignore
the mathconstants if one doesn't want them so that one has better
control about whose table will be used.


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list