TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

\usepackage[refsegment=chapter, backend=bibtex]{biblatex}
\defbibheading{subbib}[\refname\space\chaptername\space     % try \appendixname here






Edit: I tried using \chaptertitlename instead of \chaptername but that also didn't work.

share|improve this question
up vote 5 down vote accepted

You can hook code into \appendix to save the current reference segment number:


Then your bibliography heading definition can select the appropriate name:

share|improve this answer
Audrey that works perfectly well. How can you extend it (maybe by adding a conditional) so I can use the same bibheading definition even when an appendix is not defined? – petobens Jun 5 '13 at 20:45
@petobens Initialize the new counter with a large value. For example: \setcounter{lastmainsegment}{1000}. – Audrey Jun 5 '13 at 21:02
Brilliant. Thanks – petobens Jun 5 '13 at 21:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.