# How to put a period between the chapter number and chapter title with scrlayer-scrpage?

By default, the headings with scrrept, scrlayer-scrpage, and scrheadings are of the form "«number» «title»" in the headings for numbered chapters. I am wishing to change it to "Chapter «number». «title»" (i.e., add "Chapter" and the period). Moreover, the unnumbered chapters should have just "«title»" in the headings. I read through several tex.se Q&A-pages and finally arrived at a bulky solution which goes great lengths to achieve that:

\documentclass[twoside=false]{scrreprt}
\usepackage{lipsum}
\begin{document}

\lipsum[1-20]

\clearpage
\let\oldchaptermark\chaptermark
\renewcommand{\chaptermark}[1]{\markboth{\chapapp\ \thechapter\autodot}{#1}}

\chapter{The rise of the house of Usher}
\lipsum[1-20]

\chapter{The fall of the house of Usher}
\lipsum[1-20]

\clearpage
\renewcommand{\chaptermark}{\oldchaptermark}

\appendix
\lipsum[1-20]
\end{document}


Is there some more automatic way in which all the additional commands could be issued in the preamble rather than inserted between \begin{document} and \end{document}?

An aside: In the main text, there should be no periods after chapter numbers or section numbers.

• If also sections etc. should have a period after the number, use KOMA-Script option numbers=endperiod. – esdd Jul 25 '16 at 19:27

If you only want to change the chapternumber format in page headers you can redefine the KOMA-Script command \chaptermarkformat to your needs

\renewcommand\chaptermarkformat{%
\chapapp~\thechapter.\enskip
}


Code:

\documentclass[twoside=false]{scrreprt}

\renewcommand\chaptermarkformat{%
\chapapp~\thechapter.\enskip
}

\usepackage{lipsum}
\begin{document}