I need to set a document in Times New Roman with bold headings (I need to use fontspec because some parts of the document are to be set in another font). However, the command \bfseries for headings seems to be ignored in the preamble, whereas \textbf works as expected in the main body.
MWE:
\documentclass{scrreprt}
\usepackage[english]{babel}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\timesfont{Times New Roman}
\addtokomafont{chapter}{\timesfont\bfseries\large}
\addtokomafont{section}{\timesfont\large}
\begin{document}
\chapter{First Chapter - should be bold}
Some text and \textbf{some bold text.}
\section{First Section - not bold, as defined}
\end{document}
I also tried \section{\textbf{First Section}} (remains non-bold} and, in the preamble, \addtokomafont{disposition}{\bfseries\timesfont}, which makes the font Times New Roman, but it still isn't bold. How do I get bold fonts in the headings of a scrreprt document using fontspec with Times New Roman?
\addtokomafont{chapter}{\rmfamily\bfseries\large}would be better. – Ulrike Fischer Apr 14 '20 at 08:47