Location: guide/no-numbers-on-table-of-contents.tex - annotation

bkuhn
Move stuff to make the ToC with now ...'s and numbers to another file, and comment it out by default.
1
2
3
4
5
6
7
8
9
% BEGIN CODE TO FORCE NO PAGE NUMBER ON ToC
\usepackage{tocloft}
\addtocontents{toc}{\cftpagenumbersoff{part}} %% Similarly for subsection, figure... as you wish
\addtocontents{toc}{\cftpagenumbersoff{section}} %% Similarly for subsection, figure... as you wish
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\addtocontents{toc}{\cftpagenumbersoff{section}} %% Similarly for subsection, figure... as you wish
\addtocontents{toc}{\cftpagenumbersoff{subsection}} %% Similarly for subsection, figure... as you wish
\renewcommand{\cftdot}{} %empty {} for no dots. you can have any symbol inside. For example put {\ensuremath{\ast}} and see what happens.
% END  CODE TO FORCE NO PAGE NUMBER ON ToC