3

Is there simple way how to obtain customization of the chapter for scrbook? I want to have

Lecture 1. My first lecture

I try to do:

\renewcommand{\chaptername}{Lecture}

but nothing happen. I try to ready scrguien and also the similar question "Change the word "Chapter" to something else". I hope that, this not need to load other packages like fancyhdr.

My MNWE is:

\documentclass[a4paper]{scrbook}
\usepackage{blindtext}

\renewcommand{\chaptername}{Lecture}

\begin{document} \chapter{My first lecture} \blindtext[1] \end{document}

JardaFait
  • 3,922

3 Answers3

8

Try this code.

\documentclass[a4paper,chapterprefix=on]{scrbook}
\usepackage{blindtext}

\renewcommand{\chaptername}{Lecture}% change Chapter for Lecture

\begin{document} \chapter{My first lecture} \blindtext[1] \end{document}

a

chapterprefix=on makes “Chapter” to appear before the chapter number.

Simon Dispa
  • 39,141
7

Same output of very nice use @Simon Dispa (+1) using chapterprefix=true (you can see the guide to pag. 61 to the link https://ctan.mirror.garr.it/mirrors/ctan/macros/latex/contrib/koma-script/doc/scrguien.pdf)

enter image description here

There is the same effect instead of chapterprefix=on.

\documentclass[a4paper,chapterprefix=true]{scrbook}
\usepackage{blindtext}

\renewcommand{\chaptername}{Lecture}

\begin{document} \chapter{My first lecture} \blindtext[1] \end{document}

enter image description here

Sebastiano
  • 54,118
3

If you do not want a second line for the chapter title you can redefine \chapterformat and maybe \chaptermarkformat.

\renewcommand*{\chapterformat}{\chaptername~\thechapter\autodot\enskip}
\renewcommand*{\chaptermarkformat}{\chaptername~\thechapter\autodot\enskip}

If there should be a dot after the chapter even if option numbers=noenndot or numbers=autodot (default) is used:

\renewcommand*{\chapterformat}{\chaptername~\thechapter.\enskip}
\renewcommand*{\chaptermarkformat}{\chaptername~\thechapter.\enskip}

To rename the chapter prefix you can use

\defcaptionname{english}{\chaptername}{Lecture}

Example:

\documentclass[
  numbers=enddot
]{scrbook}
\usepackage{blindtext}
%\usepackage[english]{babel}

\defcaptionname{english}{\chaptername}{Lecture} \renewcommand{\chapterformat}{\chaptername~\thechapter\autodot\enskip} \renewcommand{\chaptermarkformat}{\chaptername~\thechapter\autodot\enskip}

\begin{document} \chapter{My first lecture} \Blindtext \end{document}

enter image description here

esdd
  • 85,675