I'm looking for a way to remove the page number of entries that are on the same page.
I would like to avoid having repeated page numbers in the ToC.. but I've found nothing explicit enough.
Here's an example :
\documentclass[12pts, a4paper]{article}
\begin{document}
\tableofcontents
\newpage
\section{Lorem ipsum}
dolor sit amet
\subsection{consectetur adipiscing}
elit. Donec a diam lectus.
\subsubsection{Sed}
\section{sit amet}
ipsum mauris. Maecenas congue[...]
\newpage
\section{ligula}
ac quam viverra[...]
\newpage
\subsection{nec}
\end{document}
So here, only the first section, the third section, and the 3.1 subsection ("nec") should have a pagenumber.
Sigur : Yes, but even for a short document or report, it's not pretty. So even if you're right, I can't make them longer..
jfbu : Yes, the dots should appear only if the entry has a page number.
Werner : Yes, all entries (part, section, sub(sub)sections..).
– fr33tux Nov 07 '13 at 18:27