After a recent TeX Live update, my documents, which used to compile properly, are now typeset with a wrong font. I then unsuccessfully tried to understand how I should do fonts "the right way". Since I am under time pressure, I hope it is okay to just ask here for a solution to my problem.
I have tried four scenarios:
1 Compilation with pdfLaTeX
\documentclass{article}
\pagestyle{myheadings}
\markright{My \textbf{header}}
\usepackage[fleqn]{amsmath}
%\usepackage{fontspec}
\usepackage{fouriernc}
%\usepackage{polyglossia}
\begin{document}
My \textbf{text} and \textbf{equation}:
\begin{align}
F_\text{G}
\end{align}
\end{document}
Compiling the MWE above with pdfLaTeX produces:
This looks fine.
2 Compilation with LuaLaTeX
\documentclass{article}
\pagestyle{myheadings}
\markright{My \textbf{header}}
\usepackage[fleqn]{amsmath}
%\usepackage{fontspec}
\usepackage{fouriernc}
%\usepackage{polyglossia}
\begin{document}
My \textbf{text} and \textbf{equation}:
\begin{align}
F_\text{G}
\end{align}
\end{document}
Compiling the MWE above with LuaLaTeXproduces:
All fonts except the normalsize math font are wrong.
3 Adding fontspec
\documentclass{article}
\pagestyle{myheadings}
\markright{My \textbf{header}}
\usepackage[fleqn]{amsmath}
\usepackage{fontspec}
\usepackage{fouriernc}
%\usepackage{polyglossia}
\begin{document}
My \textbf{text} and \textbf{equation}:
\begin{align}
F_\text{G}
\end{align}
\end{document}
Compiling the MWE above with LuaLaTeXproduces:
This looks fine.
4 Adding polyglossia
\documentclass{article}
\pagestyle{myheadings}
\markright{My \textbf{header}}
\usepackage[fleqn]{amsmath}
\usepackage{fontspec}
\usepackage{fouriernc}
%\usepackage{polyglossia}
\begin{document}
My \textbf{text} and \textbf{equation}:
\begin{align}
F_\text{G}
\end{align}
\end{document}
Compiling the MWE above with LuaLaTeXproduces:
Regular text and the math index are wrong now.
This behavior only occurred after the TeX Live update. Has there been a significant change?
Questions
My goal is to use the fonts I used to get with the fouriernc
package, use polyglossia
(I have issues with babel
and isodate
with the language set to nswissgerman
), and compile with LuaLaTeX.
- Is this possible?
- What is the simplest, most lightweight (i.e. of compiling time) way to achieve this? Is it, for example, possible to set my desired font(s) with
fontspec
instead of loadingfouriernc
?
Thanks a lot for your input!
\setmainfont
is undefined. So fourier does seem to be doing something useful. On the other hand you said using fourier is simply wrong for lualatex. So I wonder how to do things properly. (Sorry for insisting and my ignorance.)