I got a problem with one page number in the toc: the one of the 'References' generated by biblatex. I am always using the command \addcontentsline{toc}{chapter}{title} to add stuff to the TOC, and in all other cases it worked fine (list of tables etc.).

Problem description: The page number in the toc is always the last page of the References. This means if the References are from page 80 to page 84, then in the TOC page 84 is used (instead of page 80 where the References begin).

edit: KOMA script provides bibliography=totoc which solves the issue. However, if anyone could explain why \addcontentsline{toc}{chapter}{title} works for other lists but not for the library, I would be thankful.

I cannot hand out my lib-file (named Lib1 in the code), but you could simply import one of yours which is a few pages long to see the problem.

Here is my preamble. As I don't know what the reason is, I have kept most of the definitions and macros generated from helpful users of these forums in. I only removed stuff which I was certain that it is harmless (e.g. table definitions etc.). The appendices have been made by @karlkoeller. But I don't think they are the problem because they start after the bibliography.

Thanks for any help!

\documentclass[a4paper, 12pt, headsepline, headings=small, numbers=noendperiod]{scrreprt}

\newcommand\listofloaname{List of Appendices}



% Biblatex:









\addcontentsline{toc}{chapter}{List of tables}


\chapter{Appendix Chapter}

  • Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. (I see, you did the last one already.)
    – Speravir
    Jan 18, 2014 at 19:26
  • @Speravir I am a human and not a machine...I understand that conciseness is a good thing, but on the other hand 1 line saying 'thank you' doesn't add that much space. Most of the threads don't add any further communication once the answers have been provided anyway, right? Not giving thanks if someone helps you is -- to me -- a sign of bad behavior.
    – TomM
    Jan 19, 2014 at 1:56

3 Answers 3


the \printbibliography command causes the entire bibliography to print, so issuing \addeontentsline after it will of course have the number of the last page.

i assume that the bibliography will start on a new right-hand page. so if you issue the command \cleardoublepage, then \addcontentsline, and then the \printbibliography, the entry in the contents should come out with the correct page number. if the document is one-sided, then \clearpage is sufficient.

(you have to run latex twice, of course.)

edit: it's been asked whether, if it's necessary to add a contents line for a chapter, should the \addcontentsline always be added before \chapter. the answer is, not usually.

in most document classes, \chapter issues a \clearpage (or \cleardoublepage) command, so if the \addcontentsline line precedes \chapter, the page number will be too low by one (or two). thus if you issue the \chapter command yourself, the \addcontents line should be placed right after it. this will rarely be necessary, of course, unless you're using a document class that doesn't automatically add a contents line for \chapter (as book does not for \chapter*).

\printbibliography is a special case -- the command includes the \chapter* but goes right ahead and processes the bibliography, without leaving a "hook" to allow an author to say "i want this chapter title in the table of contents". there are some packages that make this adjustment; the approach taken here does not use a separate package.

  • Thanks for the explanation. I am using a one-sided document, so I guess it would be clearpage instead. So I always have to put \addcontentsline before the chapter headings if I want to use it, correct?
    – TomM
    Jan 18, 2014 at 17:23
  • 1
    @TomM -- it's a little more complicated than that. i'll add an edit to the answer. Jan 18, 2014 at 17:25

The Koma-Script classes already have facilities for adding standard material to the table of contents.

If you call the class like


you won't need any \addcontentsline for \listoftables. For the references, use biblatex facilities:


Note that the Koma-Script classes have their method for defining new floats. If you load also \usepackage{scrhack} before float, you'll avoid an annoying warning.

By the way, wouldn't the following be easier for adding the items in the appendix to the list of appendices?

  • Thanks for some very interesting information besides a working solution! :) I assume the question you have asked is adressed to @karlkoeller
    – TomM
    Jan 18, 2014 at 18:09

You can just use \clearpage then \addcontentstoline then \listoftables .... like this.. it worked for me..

  • 1
    Welcome to TeX.SX! Could you please include more details to your answer? For instance, providing a solution as minimal working example would be great. May 29, 2015 at 6:49
  • \addcontentstoline?
    – user31729
    May 29, 2015 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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