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

Mit stix2:

alt text

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.

gefragt 09 Mai, 14:35

AndreGismo's gravatar image

AndreGismo
6062032
Akzeptiert-Rate: 72%

bearbeitet 09 Mai, 14:40

Deine Antwort auf die Frage: (Bemerkungen bitte oben als Kommentar)
Vorschau umschalten

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Markdown-Grundlagen

  • *kursiv* oder _kursiv_
  • **Fett** oder __Fett__
  • Link:[Text](http://url.com/ "Titel")
  • Bild?![alt Text](/path/img.jpg "Titel")
  • nummerierte Liste: 1. Foo 2. Bar
  • zum Hinzufügen ein Zeilenumbruchs fügen Sie einfach zwei Leerzeichen an die Stelle an der die neue Linie sein soll.
  • grundlegende HTML-Tags werden ebenfalls unterstützt

Frage-Themen:

×51
×32
×1

gestellte Frage: 09 Mai, 14:35

Frage wurde gesehen: 71 Mal

zuletzt geändert: 09 Mai, 14:40