Unterschneidung for slanted Greek für kursives Griechisch in TeX Gyre Termes Math
Continuing Setzen wir [http://tex.stackexchange.com/questions/484404/kerning-for-subscripts-of-sigma][1] and und [http://latex.org/forum/viewtopic.php?t=32442][2] (which demonstrate issues for specific letters),the kerning around the slanted Greek letters in the fort (die das Problem für spezielle Zeichen beschreiben), so stellt es sich heraus, dass die Unterschneidung um kursive griechische Buchstaben in `TeX Gyre Termes Math` font turned out to leave much to be desired *in general*.
Here is an example of problems:
*im Allgemeinen* viel zu viel zu Wünschen übrig lässt.
Die Probleme sieht man am folgenden Beispiel:
\RequirePackage{ifthen}
\RequirePackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\documentclass{article}
\ifxetexorluatex
\tracinglostchars=2
\usepackage{fontspec}%% needed only for xelatex.
\usepackage[american,british,french,norsk,german,ngerman]{babel} % warning: last language option will be chosen for fixed text of environments like example or definition (in svmono)
\usepackage{mathtools}%%% loads amsmath internally
\mathtoolsset{mathic=true} %%% See http://tex.stackexchange.com/a/3496
\usepackage{amssymb}
\usepackage[math-style=ISO]{unicode-math}
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}
\setsansfont{TeX Gyre Heros}[Scale=0.88]%%% Somewhat ok.
\setmonofont{TeX Gyre Cursor}%%% No explicit turning on ligatures for the monospaced font.
\setmathfont[Ligatures=TeX]{TeX Gyre Termes Math}
\setmathfont[Ligatures=TeX,range={\setminus}]{Asana Math}%%% Set difference
\setmathfont[Ligatures=TeX,Extension=.otf,range={"2982},BoldFont=XITSMath-Bold]{XITSMath-Regular}%%% Z notation type colon ⦂ (U+2982). (Big tall oblong ⫿ also exists in XITS, but is slightly smaller in STIX.)
\setmathfont[Ligatures=TeX,Extension=.otf,range={"2AFF}]{STIX-Regular}%%% Big tall oblong ⫿ (U+2AFF). Slightly smaller than in XITS.
\else
\usepackage[T2A,T1]{fontenc}%%% The fontenc package is explicitly loaded with the T2A,T1 argument simply to avoid the warning of babel about missing T2A in the log. As for the order of loading, David Carlisle says in https://tex.stackexchange.com/questions/241452/generating-a-template/241479#241479 that fontenc produces information needed by inputenc (which, however, delays processing till the beginning of the document, which makes the order of these two packages irrelevant). Moreover, in the examples in the documentation of newtx fontenc is always loaded before newtx.
\usepackage[utf8]{inputenc} % Native LaTeX umlaut support
\usepackage[american,british,french,norsk,german,ngerman]{babel} % warning: last language option will be chosen for fixed text of environments like example or definition (in svmono)
\usepackage{newtxtext}% Load it after babel according to Michael Sharpe's newtx manual from Dec 14, 2017.
\usepackage[slantedGreek]{newtxmath}%% Should be loaded after the text font according to its manual. The default uppercase Greek letters should be slanted according to the Springer manual.
\usepackage{courier}
\usepackage{mathtools}%%% loads amsmath internally
\mathtoolsset{mathic=true} %%% See https://tex.stackexchange.com/a/3496
\fi
\usepackage[babel=true,verbose=errors]{microtype}%%% Microtype documentation says it determines the best settings itself, depending on the compiler and the driver.
\begin{document}
\(\Delta(\sigma)\)
\(\tau_0, \tau_1, \dotsc, \tau_9, \tau_i, \tau_j, \tau_k, \tau_{\mathrm{k}}, \tau_n, \tau_{i+1}, \tau_{i-1}\)
\(\pi_0, \pi_1, \dotsc, \pi_9, \pi_i, \pi_j, \pi_k, \pi_{\mathrm{k}}, \pi_n, \pi_{i+1}, \pi_{i-1}\)
\(\sigma_0, \sigma_1, \dotsc, \sigma_9, \sigma_i, \sigma_j, \sigma_k, \sigma_{\mathrm{k}}, \sigma_n, \sigma_{i+1}, \sigma_{i-1}\)
\end{document}
The output produced by Die Ausgabe von `pdflatex` has a nice kerning:
zeige eine schöne Unterschneidung:
[![produced by pdflatex][3]][3]
But the outputs produced by xelatex and lualatex have kerning too large:
Aber die Ausgaben von `xelatex` und `lualatex` zeigen eine viel zu große Unterschneidung:
[![produced by xelatex][4]][4]
[![produced by lualatex][5]][5]
The kerning is way too large around the parentheses as well as between the normalsize symbol and its subscript. In fact, the subscript is often closer to the subsequent comma than to the preceding letter, whereas this should be the other way round.
One could probably adjust the kernings on a letter-by-letter basis as described in the postings cited above. Has anyone done this dirty work perhaps so far, or would we be doomed to reinvent the wheel? Is there some microtype-based solution, perhaps? If nothing else works, can we switch another math font family, provided it is Times-like, is available for free, and can be accompanied by a matching Times-like font for the main text, Die Unterschneidung zwischen π, σ, τ einerseits und ihren tiefgestellten Indizes andererseits sowie um die Klammern ist viel zu groß. Tatsächlich ist der Index oft näher ans folgende Komma als an Arial/Helvetica-like font for sans text, and a Courier-like font for the monospaced text?
das vorangehende Symbol, wobei es sinngemäß anders herum sein sollte.
Man könnte vermutlich die Unterschneidungen für jedes paar von Symbolen einzeln setzen wie in den zitierten Postings beschrieben. Hat sich schon mal jemand diese Mühe gemacht, oder sind wir dazu verdonnert, das Rad neu zu erfinden? Gibt es vllt. eine microtype-basierte Lösung? Wenn nichts anderes geht, können wir die Mathe-Schriftart ganz wechseln, angenommen dass sie Times-ähnlich ist, frei verfügbar ist, von einer Times-ähnlichen Schrift für den Haupttext, von einer Arial/Helvetica-ähnlichen Schrift für den serifenlosen Text und von einer Courier-ähnlichen Schrift für den Maschinenschriftsatz begleitet werden kann?
Crossposts: [http://latex.org/forum/viewtopic.php?p=109170][6] and [https://golatex.de/viewtopic,p,106262.html][7]
[1]: http://tex.stackexchange.com/questions/484404/kerning-for-subscripts-of-sigma
[2]: http://latex.org/forum/viewtopic.php?t=32442
[3]: http://golatex.de/files/pdflatex_155.png
[4]: http://golatex.de/files/xelatex_459.png
[5]: http://golatex.de/files/lualatex_117.png
[6]: http://latex.org/forum/viewtopic.php?p=109170
[7]: https://golatex.de/viewtopic,p,106262.html