6

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?

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

2 Answers 2

13

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}
2
  • Works perfectly! Thanks for the super fast reply!
    – dfshk
    Commented Oct 23, 2012 at 20:21
  • 2
    An alternative to mathptmx is the new newtx package, newtxtext and newtxmath.
    – Guido
    Commented Oct 23, 2012 at 20:40
2

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

enter image description here

\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.

6
  • \sectfont looks like a user command, but isn't documented.
    – lockstep
    Commented Oct 23, 2012 at 20:17
  • If I am using lualatex with fontspec, how can I change the font of every element to times new roman?
    – Diaa
    Commented Nov 29, 2016 at 22:44
  • @DiaaAbidou: What do you mean by "every element"?
    – Werner
    Commented Nov 29, 2016 at 22:51
  • I mean text body, title page, chapter/section/... etc.
    – Diaa
    Commented Nov 29, 2016 at 22:53
  • @DiaaAbidou: You probably need \usepackage{fontspec} \setmainfont{Times New Roman}.
    – Werner
    Commented Nov 29, 2016 at 22:59

Not the answer you're looking for? Browse other questions tagged .