I'm putting together my thesis, using the Koma script book class and biblatex to create separate reference lists for each chapter. I'm putting the name of the chapter in the header of each left page, using the chapterprefix=on
option to scrbook
. I'm also using the [header=subbibintoc]
option to the \printbibliography
command to get the bibliography as an unnumbered section in the table of contents. However, from the reference section and through to the end of each chapter, the chapter name in the heading is changed to "Bibliography". How do I get the header to print the chapter name throughout the bibliography section in each chapter?
Using [header=subbibliography]
almost gives me what I want, except the bibliography does not appear in the table of contents. Using [header=subbibnumbered]
also almost gets me what I want, except the bibliography is numbered.
I've included a minimal working example below that illustrates my problem. Note that on page two of the compiled document, the header correctly prints the chapter name, while on page 4, it erroneously prints "Bibliography".
\documentclass[chapterprefix=on]{scrbook}
\usepackage[
backend=biber,
style=authoryear-comp,
refsection=chapter,
]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\usepackage{appendix}
\usepackage{lipsum}
\begin{document}
\tableofcontents
\mainmatter
\chapter{Test}
\lipsum \lipsum \lipsum \autocite{A01}.
\printbibliography[heading=subbibintoc]
\begin{subappendices}
\section{An appendix}
\lipsum
\end{subappendices}
\end{document}