7

In my ToC, the "Bibliography" entry is treated as a chapter heading, so has no line of dots to the page number. However, as it has no sections, my publishers would like the line of dots. Same for the index.

What's the easiest way to do this?

6

Use the tocloft package, then where you want to switch it on

\addtocontents{toc}{%
    \protect\renewcommand{\protect\cftchapleader}{%-- switch it on here
        \bfseries\protect\cftdotfill{\protect\cftdotsep}}}
\bibliography{your-bib-file}
\makeindex
\addtocontents{toc}{%
    \protect\renewcommand{\protect\cftchapleader}{}}%-- switch it of again
  • Brilliant! That works perfectly - thank you very much. – Alasdair Apr 14 '11 at 12:12
  • @Danie Els: Is there another perhaps less wordy way of accomplishings this without needing to put this for everything without dots? – night owl Dec 15 '11 at 17:28

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.