[Tex/LaTex] Table of contents problems

appendicesbibliographiestable of contents

I am writing my thesis and I am having a few problems with my format. My thesis structure is as follows:

I Introduction

II Part 1

  • chapter 1
  • chapter 2

III Part 2

  • chapter 3
  • chapter 4

Appendices

Bibliography

My problem is this:

In my table of contents, this appears like this:

I Introduction

II Part 1

  • chapter 1
  • chapter 2

III Part 2

  • chapter 3
  • chapter 4

IV Appendices

  • bibliography

So two questions:

  1. How do I remove the part number for the Appendices
  2. How do I bump up the bibliography to the {part} level in the table of contents (this entry is automatically generated by the \bibliography at the moment)

I really appreciate any help!!

Best Answer

how you get the bibliography treated as a part in the t-of-c depends on how it's defined in the documentclass you're using. however, i assume that you want the appearance of the bibliography itself to remain with the first page looking like the first page of a chapter.

the two documentclasses with parts with which i'm most familiar (the latex book.cls and amsbook.cls) both start {thebibliography} as \chapter* (though in slightly different ways). the main difference is that book.cls doesn't put anything into the t-of-c for \chapter*. with such a class, all you need to do is enter something like

\addcontentsline{toc}{part}{Bibliography}

after \begin{thebibliography} and before the first reference entry.

for a class like amsbook.cls, which automatically writes a t-of-c entry, you would need to suppress that and then add a replacement. the deletion can be accomplished by defining a command such as

\DeclareRobustCommand{\SkipTocEntry}[4]{} 

(using [5] instead if you're loading hyperref). then, just before the start of the bibliography, insert

\addtocontents{toc}{\SkipTocEntry}

and proceed as above with the replacement.