The following MWE prints a cumulative bibliography, subdivided by chapter, using biblatex
. Since there is a reference in the appendix the corresponding heading in the bibliography should read "References Appendix A" but I'm getting "References Chapter A". If I change \chaptername
for \appendixname
in the bibheading
definition I get chapters headings in the bibliography as "References Appendix 1" which is also incorrect.
\documentclass{book}
\usepackage[refsegment=chapter, backend=bibtex]{biblatex}
\defbibheading{bibbook}[\bibname]{\chapter{#1}}
\defbibheading{subbib}[\refname\space\chaptername\space % try \appendixname here
\ref*{refsegment:\therefsection\therefsegment}]{%
\setcounter{secnumdepth}{0}%
\section{#1}}
\addbibresource{biblatex-examples.bib}
\usepackage{hyperref}
\begin{document}
\mainmatter
\chapter{Bar}
\nocite{cms}
\appendix
\chapter{Fooo}
\nocite{glashow}
\backmatter
\printbibheading[heading=bibbook]
\bibbysegment[heading=subbib]
\end{document}
Edit: I tried using \chaptertitlename
instead of \chaptername
but that also didn't work.