# Set default Koma script font to Times [duplicate]

Possible Duplicate:
KOMA-Script: change font of sectioning headings to serif

I am using scrbook document class but want to change the default font to Times. However when I add:

\usepackage{times}


to the preamble, it does not change the font of the chapter, section or the ToC, but only the text. Am I missing something?

-

## marked as duplicate by doncherry, lockstep, clemens, Kurt, Harish KumarOct 23 '12 at 22:31

@doncherry I swear I've looked for an "original" before I answered this. Voted to close. – lockstep Oct 23 '12 at 20:47
@lockstep: That's quite alright, you don't have to apologize to me :) – doncherry Oct 23 '12 at 20:59

By default, the KOMA-Script classes will typeset sectioning headings in sans-serif (and bold, \sffamily\bfseries), so changing the serif font to Times won't affect those headings. To switch to serif for headings, use \setkomafont{disposition}{\bfseries}. You should also replace the obsolete times package with mathptmx.

\documentclass{scrbook}

\usepackage{mathptmx}

\setkomafont{disposition}{\bfseries}

\usepackage{lipsum}

\begin{document}

\chapter{foo}

\lipsum[1]

\end{document}

-
Works perfectly! Thanks for the super fast reply! – StevenHouben Oct 23 '12 at 20:21
An alternative to mathptmx is the new newtx package, newtxtext and newtxmath. – Guido Oct 23 '12 at 20:40

The font family is set to \sffamily for sectional titles. You can modify \sectfont for this:

\documentclass{scrbook}% http://ctan.org/pkg/koma-script
\usepackage{times}% http://ctan.org/pkg/times
\renewcommand*\sectfont{\normalcolor\bfseries}% removed \sffamily
\begin{document}
\chapter{Chapter title}
\end{document}​


However, the times package is superseded by mathptmx that provides math support in Times as well. Lockstep's answer is perhaps more Koma-Script-y.

-
\sectfont looks like a user command, but isn't documented. – lockstep Oct 23 '12 at 20:17
Thanks for the quick reply! – StevenHouben Oct 23 '12 at 20:19