Bibliography, appendix and TOC

861 views
Skip to first unread message

Bram Adams

unread,
Mar 12, 2008, 11:18:12 AM3/12/08
to latex...@googlegroups.com
Hi,

I'm having problems with adding my bibliography to the table of contents (TOC) of a Latex document (book), as the bibliography is added in the wrong place in the TOC and strangely enough the bibliography is recognised as a part of the last appendix.

More in particular, I have the following:

==========
\documentclass[10pt,a4paper,twoside,dutch,english]{book}
...
\begin{document}
...
\tableofcontents
...
\mainmatter
...
\include{chapter1}
...
\include{chapterN}
...
\addcontentsline{toc}{section}{Bibliography} %1

\appendix
\include{app1/app1}
\include{app2/app2}

%\addcontentsline{toc}{section}{Bibliography} %2

\bibliographystyle{plain}
\bibliography{mybib}

\end{document}
==========

The TOC now contains:
==========
A   First Appendix             200
     Bibliography                 200

B   Second Appendix        220
==========

However, the bibliography starts on page 240, i.e. after appendix B. In addition, on top of the bibliography pages I see the title of appendix B, i.e. the bibliography is recognised as part of the second appendix.

If instead the line marked with %2 replaces the one with %1, the TOC contains:
==========
A   First Appendix             200

B   Second Appendix        220
     Bibliography                 240
==========

This seems better, but the entry looks as if Bibliography is part of appendix B. And indeed, again the title of appendix B shows up on top of the page, i.e. the bibliography is still recognised as part of the appendix.

So, how do I (1) get the bibliography to stand on its own and (2) get it mentioned in the TOC on the right place? Thanks in advance.

Kind regards,

Bram Adams
GH-SEL, INTEC, Ghent University (Belgium)

Richard Karnesky

unread,
Mar 12, 2008, 1:14:48 PM3/12/08
to LaTeX Users Group
Please try to give examples that compile. I removed extraneous dots,
replaced '\include{chapter|app1#}' with \chapter{#} & placed a dummy
bibliography in the example you gave.

In case 1, my TOC had the bibliography as a section in the last
chapter, before the appendices. This is correct behavior for the
strange place you placed the addcontentsline.

In case 2, I had the same results you did & this is expected.

> %\addcontentsline{toc}{section}{Bibliography} %2
>
> This seems better, but the entry looks as if Bibliography is part of
> appendix B.

This is correct behavior for your input--the ToC line called for a
'section' entry, rather than a 'chapter' entry.


> And indeed, again the title of appendix B shows up on top of the
> page, i.e. the bibliography is still recognised as part of the appendix.

I don't know what packages you are using, but this might be the
correct behavior if none of them create chapter headings for the
bibliography. You can explicitly place the bib in a new chapter (or
chapter*).

Depending on the packages that you use, you might also need to use one
or both of these lines:
\cleardoublepage
\phantomsection

See <http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocbibind>

--Rick

Bram Adams

unread,
Mar 12, 2008, 6:06:28 PM3/12/08
to latex...@googlegroups.com
Hi,

2008/3/12, Richard Karnesky <karn...@gmail.com>:
Please try to give examples that compile.

OK, sorry for that.

Depending on the packages that you use, you might also need to use one
or both of these lines:
  \cleardoublepage
  \phantomsection

Thanks, this fixes the TOC. Tomorrow, I will try to fix the other issue (bibliography part of appendix) with a separate chapter.

Kind regards,

Bram Adams
Reply all
Reply to author
Forward
0 new messages