
我已經輸入文檔幾個月了,並且正在使用 scrreprt 類別。我剛剛注意到,標題字體(曾經是無襯線字體)已恢復為襯線字體,因為 koma 字體“pageheadfoot”沒有接受命令\sffamily
(也沒有\ttfamily
)。我將問題簡化為這個 MWE:
% !TeX TS-program = lualatex
% !TeX encoding = UTF-8
% !TeX spellcheck = it_IT
\documentclass{scrbook}
\usepackage{polyglossia}
\setmainlanguage{italian}
\usepackage{scrlayer-scrpage}
\setkomafont{pageheadfoot}{\sffamily \bfseries}
\KOMAoptions
{ headsepline=on }
\ohead
{ \headmark }
\ofoot*
{ \pagemark }
\usepackage{lipsum}
\begin{document}
\pagestyle{scrheadings}
\chapter{Chapter 1}
\section{Section 1}
\lipsum[1-5]
\section{Section 2}
\lipsum[6-9]
\section{Section 3}
\lipsum[10-12]
\end{document}
然而,輸出是您可以在這裡看到的:
更新 - 我想出了一個解決方法,將其放入\sffamily
其中\markboth
......\markright
但我不知道它是“乾淨”還是“作弊”。