adding toc lines

WARNING: Please update your bookmarks! The content of this site has been moved to http://dille.name where it will be updated as needed. This page will remain unchanged.

some environments will not automatically add an entry in the table of contents (e.g. bibliography).

the following commands will allow to correct this:
\phantomsection
\addcontentsline{toc}{TYPE}{Text}

where type is either one of part, chapter, section depending on which level you want the bookmark to appear.

NOTE: \addcontentsline will create an entry in the table of contents which refers to the last macro which allows being referred to. this will most certainly not yield the desired effect. that's why the \phantomsection command is needed.

NOTE: it seems no harm is done when adding toc lines with the type part for bibliography, index and such.