enter image description here

I can't find a way to remove only the page index of sections while keeping the page index of the subsections

  • 1
    Welcome to tex.sx. The setting of section information is defined in the document class, so if anyone is to be able to help you, we need to know that. For best results, please include a complete small example, beginning with \documentclass and ending with \end{document} that demonstrates what you're getting now. Aug 16 '21 at 15:31

Assuming you're using one of the "standard" LaTeX document classes (or a document class that's based on one of the standard classes), you could employ the machinery of the tocloft package to achieve your formatting objective.

enter image description here

\setstretch{1.5}  % just for this example

\setcounter{tocdepth}{2} % or some higher number

\usepackage{tocloft} % modify appearance of ToC, LoF, and/or LoT
% Don't show section page numbers in ToC:


\section{Dati dell'opera}
\subsection{Informazioni generali}
\subsection{Storia dell'opera}
\subsection{Studi per l'opera}

\section{Leonardo da Vinci}
\subsection{Movimento artistico: Il Rinascimento}
  • Thank you, I tried to apply your suggestion but (the numbers disappeared as i wanted) but now the same dots that were to the side of subsections appeared also to the side of sections.
    – Michael B
    Aug 16 '21 at 16:54
  • 2
    @MichaelB - Sadly, but probably not surprisingly, my mind-reading and psychic divination skillls are pure rubbish. Please feel free to tell us a lot more about your document setup, including which document class you employ. Without this information, chances that anyone will be able to guess correctly what's going on in your document, let alone come up with a solution, will be slim to nonexistent.
    – Mico
    Aug 16 '21 at 18:19

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.