I wanted to write some scientific text in TeX Gyre Schola, because I like its increased weight compared to Latin Modern Roman.
Unfortunately, I noticed that the spacing between a variable and its upright subscript looks extremely odd. E.g. for $v_{\mathrm{eff}}$
, the distance between v
and e
is too large.
To investigate further, I changed the font back to Latin Modern Roman and compared the output between pdflatex
and luatex
and noticed that the subscript from luatex
is a bit further away than its pdflatex
counterpart.
So what's the problem? Is the luatex
font system simply 'bad' or did I use the wrong syntax? And maybe, is there a simple fix?
\documentclass[paper=a4]{article}
\usepackage{iftex}
% math
\usepackage{amsmath}
\ifPDFTeX
\usepackage{amsfonts}
\usepackage{amssymb}
\fi
% font
\ifPDFTeX
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\fi
\ifLuaTeX
\usepackage{fontspec}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
%\setmainfont{TexGyre Schola}
%\setmathfont{TexGyre Schola Math}
\fi
\begin{document}
\begin{align}
v_{\mathrm{eff}}
\end{align}
\end{document}
article
class has no optionpaper=a4
, and tells you this in the log:LaTeX Warning: Unused global option(s): [paper=a4]
. You want\documentclass[a4paper]{article}
.