Somewhere I read that fontspec
uses Latin Modern by default, so I assumed that loading the lmodern
package is not required anymore when using LuaLaTeX. But today I noticed that kerning does not seem to work within amsmath's \operatorname
command:
\documentclass{scrartcl}
\usepackage{fontspec}
%\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{microtype}
\begin{document}
$\operatorname{Wait}, \text{Wait}$
\end{document}
This produces the following output on my machine:
When loading lmodern
explicitly (remove comment sign on line 4), kerning will be applied within \operatorname
and both words look the same.
Although I already found a solution, I would like to understand what is going on here. In particular, are there any further things that need to be considered when using latin modern along with LuaLaTeX?