%20Problem%20mit%20Stix%20Math%20Two%2C%20wenn%20%5Csmall%20auf%20die%20Gruppe%20angewendet%20wird%20(Lualatex).png)
Betrachten Sie das folgende MWE:
\documentclass[12pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX2Math.otf}
\begin{document}
{\small Small size
\[
\left(\frac{a}{b}\right) \left(\frac{\frac{a}{b}}{\frac{a}{b}}\right)
\]
}
Normal size
\[
\left(\frac{a}{b}\right) \left(\frac{\frac{a}{b}}{\frac{a}{b}}\right)
\]
\end{document}
Wenn Sie es kompilieren, werden Sie feststellen, dass Klammern in der ersten mit Direktive nicht richtig hochskaliert werden \small
. Wenn Sie es auskommentieren, \setmathfont{Stix Two Math}
funktioniert es jedoch. Dies scheint also ein Stix-2-Problem zu sein. Ich verwende ein vollständig aktualisiertes LuaLatex-System (MacTeX 2017).
Meine Fragen: a) Ist das ein bekanntes Problem? b) Wie kann ich dieses Problem auf transparente Weise umgehen?
(Ich kann nicht zu XeLaTex wechseln, da ich vorhabe, mit etwas Lua-Code zu spielen.)
Antwort1
Das Problem scheint in der +ssty
Option zu liegen, die für Größen kleiner als die Basisgröße verwendet wird; einFehlerberichtwurde bereits bei Sourceforge eingereicht.
xetex
Hier ist ein Beispiel, das mit oder kompiliert wird luatex
und unterschiedliche Ergebnisse liefert.
\input ifxetex.sty
\ifxetex
\font\extsymbolsA="STIX Two Math/OT:script=math;language=DFLT;"
\font\extsymbolsB="STIX Two Math/OT:script=math;language=DFLT;+ssty=0;"
\else
\input luaotfload.sty
\font\extsymbolsA="STIX Two Math:mode=base;script=math;language=DFLT;"
\font\extsymbolsB="STIX Two Math:mode=base;script=math;language=DFLT;+ssty=0;"
\fi
\Udelcode`(="3 `(
\Udelcode`)="3 `)
\textfont3=\extsymbolsA
$$
\left(a\over b\right)
$$
\textfont3=\extsymbolsB
$$
\left(a\over b\right)
$$
\bye
Ausgabe mitxetex
Ausgabe mitluatex
Das Problem scheint auf eine Interaktion mit der Option und LuaTeX oder zurückzuführen zu sein luaotfload
.
Allerdings scheint es nur die Klammern zu betreffen und nicht die anderen Trennzeichen:
\documentclass[10pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\begin{document}
{\small Small size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
}
Normal size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
\end{document}
Ein möglicher Workaround:
\documentclass[10pt]{article}
\usepackage{unicode-math}
\setmathfont{STIX Two Math}
\setmathfont[range={\(,\)}]{XITS Math}
\AtBeginDocument{%
\Udelcode`(="4 `(
\Udelcode`)="4 `)
}
\begin{document}
{\small Small size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
}
Normal size
\[
\left(\frac{a}{b}\right)
\left[\frac{a}{b}\right]
\left\{\frac{a}{b}\right\}
\left\langle\frac{a}{b}\right\rangle
\]
\end{document}