I try to customize my chapter headings, without using additional packages like titlesec, as I'd like to avoid incompatibilities with all the other stuff around.
I almost have what I want:
\documentclass[
fontsize=12pt,
BCOR=15mm,
DIV=15,
twoside=true,
open=right,
chapterprefix = true,
headings=twolinechapter,
headings=big,
]{scrbook}
\usepackage{fontspec}
\setmainfont[Numbers = OldStyle,Ligatures = TeX,SmallCapsFeatures = {Renderer=Basic}]{Minion Pro}
\usepackage{anyfontsize}
\setkomafont{chapter}{\normalfont\Huge}
\renewcommand*{\chapterheadstartvskip}{\vspace*{5\baselineskip}}
\renewcommand*{\chapterheadendvskip}{\vspace*{2\baselineskip}}
\renewcommand*{\chapterformat}{%
{\fontsize{20}{30}\scshape\chapappifchapterprefix{\nobreakspace}}
\fontsize{120}{30}\selectfont\thechapter\autodot\enskip}
\renewcommand*{\raggedchapter}{\raggedleft}
\setkomafont{section}{\Large\rmfamily}
\usepackage{blindtext}
\begin{document}
\chapter{Hello World!}
\section{Section 1}
\blindmathpaper
\end{document}
There is just on detail missing:
How can I place chapter and section numbers in the margin and align title and prefix with the text?
So basically I try to achieve:
Best Answer
Add the following definition for sections and alike
and change the definition of
\chapterformat
toMWE:
Output:
UPDATE (KOMA-Script v3.17)
Starting with KOMA-Script v3.17,
\othersectionlevelsformat
doesn't work as before, so, instead of usingyou will have to use
instead. If you also want that behavior for subsections, use
and so on.