Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I add a chapter entry to TOC without showing the correspondent page number? my documentclass is report and I am generating my TOC like this:

\phantomsection 
\pdfbookmark{\Contents}{contents}
\tableofcontents

Thank you.

share|improve this question

2 Answers 2

You could load the tocloft package and issue the command \cftpagenumbersoff{chapter}. This will suppress the showing of the page numbers of chapter-type entries globally.

To make this change apply to only a single instance of a chapter, you might type

\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\chapter{XYZ}
...
\addtocontents{toc}{\cftpagenumberson{chapter}} % to restore the showing of page numbers
share|improve this answer

You can add text to the table of contents using the command \addtocontents. Internally, LaTeX uses a couple of commands to create these entries. So for example to add a line, matching the rest of the contents style for chapters write

\addtocontents{toc}{\contentsline{chapter}{\numberline{}Title of this chapter}{}}

Here I assuming you do not wish to have the chapter number displayed, as per your question on bibliographies. If you do wish to have a chapter number, it is inserted as the first argument to \numberline (one can conviently use \thechapter for that).

share|improve this answer

Your Answer

 
discard

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.