Files @ 04a38b87ecf6
Branch filter:

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

bkuhn
Order matters in \usepackage{hyperref}.

The problem exhibited only in PDF files, wherein \ref{} links to
appendix chapters referred instead to regular chapters.

http://tex.stackexchange.com/questions/77886/fncychap-and-hyperref-messes-up-page-references
suggest that loading hyperref second fixes the problem. This indeed
worked.
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