Table of contents should show subsections up to (at least) 4 levels
matthiasdiener opened this issue · comments
... currently, its only up to 3 levels.
(see modelotese.doc, page 8):
1 INTRODUÇÃO ..................................................................................................................... 9
1.1 Sobre os Títulos e Capítulos .............................................................................................. 9
1.1.1 Sobre o Sumário .............................................................................................................. 10
1.1.1.1 Sobre a Lista de Abreviaturas e Siglas ......................................................................... 10
1.1.1.2 Sobre a Lista de Símbolos ............................................................................................ 10
1.1.1.3 Sobre as Listas de Figuras e de Tabelas ....................................................................... 10
Le patch (on top of the fix for #7) :
diff --git a/inputs/iiufrgs.cls b/inputs/iiufrgs.cls
index e79cca9..0217c73 100644
--- a/inputs/iiufrgs.cls
+++ b/inputs/iiufrgs.cls
@@ -385,6 +385,7 @@
% Ajuste do sumário (nada indentado)
%==============================================================================
+\setcounter{tocdepth}{4}
\newcommand\samepagechapter{
%\thispagestyle{plain}%
\global\@topnum\z@
@@ -413,9 +414,11 @@
\newlength{\seclen}\settowidth{\seclen}{\textbf{2.2~}}
\newlength{\subseclen}\settowidth{\subseclen}{2.2.2~}
+\newlength{\subsubseclen}\settowidth{\subsubseclen}{2.2.2.2~}
\renewcommand*{\l@section}[2]
{\@dottedtocline{1}{0em}{\seclen}{\textbf{#1}}{\hss #2}}
\renewcommand*{\l@subsection}{\@dottedtocline{2}{0em}{\subseclen}}
+\renewcommand*{\l@subsubsection}{\@dottedtocline{3}{0em}{\subsubseclen}}
\newif\if@aftertoc
\@aftertocfalse
\renewcommand{\tableofcontents}{%
Paragraphs now appear on the table of contents, and they seem rather unaligned (look at cic-tc.pdf from the examples). I don't know if paragraphs should appear on the table of contents, since the standards don't say anything about it, the example document doesn't have paragraphs and I don't have access to the document NBR 6027 from ABNT.
If you manage to remove the paragraphs from the table of contents, it would be ok.
Whoops.... this is the right line to show subsubsections, but not paragraphs:
+\setcounter{tocdepth}{3}