Wie verwende ich das Paket stix2-otf
Ich habe auf CTAN das Paket `stix2-otf` gefunden. Ich möchte das gerne mal ausprobieren.
Also schreibe ich `\usepackage{stix2-otf}`. Dummwerweise bekomme ich da nur die Fehlermeldung: "File 'stix2-otf.sty' not found.". Normalerweise lädt doch Miktex automatisch Pakete nach, falls eines fehlt(?). Ich bin mir aber auch nicht mal sicher, ob das die korrekte Art und Weise ist, das Paket zu laden. Auf der CTAN-Seite zu stix2-otf finde ich weit und breit keinen Hinweis dazu, wie das Paket zu laden ist (normalerweise ist das ja auch einfach immer `\usepackage{name}`).
Wenn ich einfach mal `\usepackage{stix2}` verwende (analog zu `libertinus` und `libertinus-otf`), dann kompiliert das Dokument. Aber das sind dann keine otf-Schriften mehr (sofern ich die Angeben von Acrobat Reader korrekt interpretiere, da steht als Typ: "Type 1"). Bei otf-Schriften steht bei Typ normalerweise "Type 1 (CID)". Hier einmal zum Vergleich, was es mir bei Verwenung von `libertinus-otf` und `stix2`:
Mit `libertinus-otf:`
[![alt text][1]][2]
Mit `stix2`:
[![alt text][3]][3]
Also ist mein nächster Versuch über `unicode-math` und `\setmainfont{STIXTwoText}` sowie `\setmathfont{STIXTwoMath}`. Dann kompiliert das Dokument allerdings auch nicht mehr.
Ich vermute, das müsste der relevante Ausschnitt aus dem .log sein:
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: Font "STIXTwo
Text" not found.
! Package fontspec Error:
(fontspec) The font "STIXTwoText" cannot be found; this may
(fontspec) be but usually is not a fontspec bug. Either there
(fontspec) is a typo in the font name/file, the font is not
(fontspec) installed (correctly), or there is a bug in the
(fontspec) underlying font loading engine (XeTeX/luaotfload).
For immediate help type H <return>.
...
l.19 \setmathfont
{STIXTwoMath}
A font might not be found for many reasons.
Check the spelling, where the font is installed etc. etc.
When in doubt, ask someone for help!
luaotfload | aux : no font with id 0
luaotfload | aux : no font with id 0
Package fontspec Info:
(fontspec) Could not resolve font "STIXTwoText/BI" (it probably
(fontspec) doesn't exist).
Package fontspec Info:
(fontspec) Could not resolve font "STIXTwoText/B" (it probably
(fontspec) doesn't exist).
Package fontspec Info:
(fontspec) Could not resolve font "STIXTwoText/I" (it probably
(fontspec) doesn't exist).
! Package fontspec Error:
(fontspec) The font "STIXTwoText" cannot be found; this may
(fontspec) be but usually is not a fontspec bug. Either there
(fontspec) is a typo in the font name/file, the font is not
(fontspec) installed (correctly), or there is a bug in the
(fontspec) underlying font loading engine (XeTeX/luaotfload).
For immediate help type H <return>.
...
l.19 \setmathfont
{STIXTwoMath}
A font might not be found for many reasons.
Check the spelling, where the font is installed etc. etc.
When in doubt, ask someone for help!
Wie heißt der font (beim "manuellen" Laden über `\setmainfont` oder `\setmathfont`)? Oder wie lädt man das Paket `stix2-otf` korrekt?
Hier ein kleines MWE:
%!TeX LuaLaTeX
\documentclass{scrartcl}
%\usepackage{stix2}
\usepackage[
math-style=ISO,
]{unicode-math}
\setmainfont{STIXTwoText}
\setmathfont{STIXTwoMath}
\begin{document}
Hallo Welt, \(a+b=c^2\).
\end{document}
__EDIT:__ Hier funktioniert es, bei mir nicht.
[1]: https://texwelt.de/upfiles/fonts_libertinus-otf.png
[2]: https://texwelt.de/upfiles/fonts_libertinus-otf.png
[3]: https://texwelt.de/upfiles/fonts_stix2.png