\RequirePackage[l2tabu, orthodox]{nag} \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern} \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry} \usepackage{tocloft} \renewcommand{\cftdotsep}{2} % Points spacement ... \makeatletter % To fix a small offset with page number. \renewcommand{\@pnumwidth}{2.3em} % {1.75em} %\renewcommand{\@tocrmarg}{2.75em} % Useless command? \makeatother \setcounter{tocdepth}{3} % Add sub-sub-sections to ToC. % Chapter spacement: \renewcommand{\cftchappresnum}{\chaptername\ } \renewcommand{\cftchapaftersnumb}{\newline} \setlength{\cftchapnumwidth}{0pt} % Spacement to left of chapter number. % Sections spacement: %\renewcommand{\cftsecpresnum}{\hfill} % %\renewcommand{\cftsecaftersnum}{\hspace*{10pt}} % %\setlength{\cftsecindent}{18pt} % %\setlength{\cftsecnumwidth}{36pt} % \addtolength{\cftsecnumwidth}{10pt} % % Sub-sections spacement: %\renewcommand{\cftsubsecpresnum}{\hfill} % %\renewcommand{\cftsubsecaftersnum}{\hspace*{10pt}} % %\setlength{\cftsubsecnumwidth}{44pt} % \setlength{\cftsubsecindent}{54pt} % \addtolength{\cftsubsecnumwidth}{12pt} % % Sub-sub-sections spacement: \renewcommand{\cftsubsubsecfont}{\normalfont\sffamily\footnotesize} % Subsubsection style. \setlength{\cftsubsubsecindent}{98pt} % %\setlength{\cftsubsubsecnumwidth}{0pt} % \begin{document} \tableofcontents \mainmatter \setcounter{chapter}{16} \chapter{Chapter title} \setcounter{section}{22} \section{Section title} \setcounter{subsection}{32} \subsection{Subsection title} \subsubsection{Title of a subsubsection} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \setcounter{chapter}{9} \setcounter{section}{8} \section{Section title} \subsection{Subsection title} \subsubsection{Title of a subsubsection} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \subsection{Subsection title} \end{document}
Here's what it gives:
I would like to get the subsubsections titles to be exactly aligned with their subsection title. Currently, the spacement shown above is done by eye and isn't exact.
Also, the section number should have a constant space with its title. Currently, I'm unable to get this.
And lastly, I would like to have the subsection number to be left aligned with its section title, and have a constant spacing on its right and its title.
How can I achieve that?