Using the scrbook class, how do I place the chapter title under the chapter number? Here's a MWE
\documentclass{scrbook}
\usepackage{xcolor, graphicx}
\usepackage[showframe]{geometry}
\definecolor{chaptergrey}{rgb}{0.7,0.7,0.7}
\let\raggedchapter\raggedleft
\addtokomafont{disposition}{\normalfont}
\setkomafont{chapter}{\LARGE}
\renewcommand*{\chapterformat}{%
\scalebox{5}{\color{chaptergrey}\thechapter}%
}
\begin{document}
\chapter{A chapter}
\end{document}
The corresponding output is
And what I'd like to have is something like this
Once I can do that, how do I change the vertical space between the two?
EDIT:
\documentclass[chapterprefix]{scrbook}
\usepackage{xcolor, graphicx}
\definecolor{chaptergrey}{rgb}{0.7,0.7,0.7}
\let\raggedchapter\raggedleft
\addtokomafont{disposition}{\normalfont}
\setkomafont{chapter}{\LARGE}
\renewcommand*{\chapterformat}{%
\scalebox{5}{\color{chaptergrey}\thechapter}%
}
%\makeatletter
%\renewcommand{\@chapapp}{}
%\makeatother
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{theorems}{
\renewcommand{\chaptermark}[1]{\markboth{##1}{}}
\fancyhead[LO, RE]{\itshape\nouppercase\leftmark}
\fancyhead[LE, RO]{\thepage}
\fancyfoot{}}
\pagestyle{theorems}
\begin{document}
\tableofcontents
\chapter{A chapter}
\newpage
a
\end{document}
Corresponding heading




\usepage[showframe]{geometry}changed the size of the text area and margins. If you don't want this, you should either use\usepackage{showframe}instead of loadinggeometryor add optionpass. – Schweinebacke Mar 24 '19 at 15:28fancyhdrtogether with a KOMA-Script class is not recommended. It needs extra user work to not break several features of KOMA-Script (e.g. to respect\chaptermarkformat). See the warning message of KOMA-Script. – Schweinebacke Mar 24 '19 at 15:35scrlayer-scrpageas recommended by the warning in thelog-file. – Schweinebacke Mar 24 '19 at 15:44scrlayer-scrpagepackage. – noibe Mar 24 '19 at 16:08