Ver código fonte

Update table of content styling

JoostSijm 6 anos atrás
pai
commit
544ca6358b
1 arquivos alterados com 19 adições e 2 exclusões
  1. 19 2
      preamble.tex

+ 19 - 2
preamble.tex

@@ -64,8 +64,25 @@
 
 % Table of content
 \usepackage{tocloft}
-\cftpagenumbersoff{section}
-\cftpagenumbersoff{subsection}
+\renewcommand{\cfttoctitlefont}{\rmfamily\Large\MakeUppercase}
+
+\usepackage{titletoc}
+\titlecontents{section}
+    [15pt]
+    {\addvspace{8pt}\large\rmfamily}
+    {\contentslabel{15pt}}
+    {\hspace*{-9mm}}
+    {\contentspage}[\medskip]
+
+\titlecontents{subsection}
+    [35pt]
+    {\rmfamily}
+    {\contentslabel{25pt}}
+    {\hspace*{-12mm}}
+    {\contentspage}
+
+% Page numbering
+\pagenumbering{gobble}
 
 % Title
 \titleformat{\section}[runin]