4

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, Mensch, user11232 Oct 23 '12 at 22:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • @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
10

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! – dfshk Oct 23 '12 at 20:21
  • 2
    An alternative to mathptmx is the new newtx package, newtxtext and newtxmath. – Guido Oct 23 '12 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.

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.