By default, KOMA-Script composes headers using sans-serif. I would like to type them in a serif font, so I used:
\addtokomafont{chapter}{\normalfont}
This works, but I would like the label "Contents" in the TOC to also be written in a sans-serif font. How can I do this?
\documentclass[mpinclude=true, version=last, chapterprefix=false,numbers=noenddot]{scrbook}
\addtokomafont{chapter}{\textrm}
\begin{document}
\chapter{chapter 1}
\chapter{chapter 2}
\chapter{chapter 3}
\tableofcontents
\end{document}
Best Answer
If you really want all chapter titles with serifs but the title “Contents”, which is also a chapter title, in sans serif, you can change option
sfdefaults
several times:But I would recommend to use the same font for the heading of the table of contents as for all other chapter headings and therefore either
sfdefaults=false
in the optional argument of\documentclass
(as shown in egreg's answer) or not. Inconsistency in typography is usually not the very best idea.