In scrreprt
, using scrlayer-scrpage
I have the header set up so it says "Chapter #" in the outer header of the even page and "Chapter title" in the outer header of the odd page. I would like this header to continue in this exact way in the bibliography as well (see image). I figured that this would work if Latex treated the bibliography as a section inside of the current chapter instead of as a chapter by itself. How do I achieve this?
MWE:
\documentclass[A5paper, twoside, openright, headsepline, chapterprefix=true]{scrreprt}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
%%%---header/footer
\usepackage[manualmark]{scrlayer-scrpage}
\automark{chapter}
%%--"Chapter #" in lehead (only for numbered chapters), chapter name in rohead
\renewcommand*\chaptermark[1]{%
\markboth{\ifnumbered{chapter}{\chaptermarkformat}{}}{#1}%
}
\AfterTOCHead[toc]{\markboth{}{\contentsname}}
\ofoot[\pagemark]{\pagemark}
%%%%---bibliography
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
%%%---blindtext
\usepackage{lipsum}
\begin{document}
\chapter{Title of a chapter}
\lipsum[1-5]
citing \cite{angenendt, doody, matuz:doody, gillies, herrmann, kastenholz, murray, reese, sarfraz}
\section{Title of a section}
\lipsum[6-10]
citing \cite{aksin, sigridsson, spiegelberg, springer, weinberg, yoon, augustine, cicero, coleridge, companion}
\printbibliography
\end{document}
\automark{chapter}
in my other answer, sorry. I have changed this in the answer there.bibliography=leveldown
to the class options. Note thatA5paper
is not a valid option. Replace it bypaper=A5
orpaper=a5
ora5paper
. Additionally addDIV=14
(adjust the value to your needs) because the automatical calculated value (26) is too big.