The titletoc Package
Documentation | titletoc |
---|---|
Categories | layout |
Description | Adjust the formatting of the table of contents |
Options |
\usepackage{titletoc} |
Examples |
\definecolor{mygray}{gray}{0.4}
\definecolor{darkgray}{gray}{0.25}
\definecolor{gold}{RGB}{178, 139, 51} %hmc-official gold
\usepackage{titletoc}
\titlecontents{chapter}[3em]{\addvspace{1.5pc}\bfseries}%
{\contentslabel{3.em}}{\sf}%
{\hspace{0.5em}{\color{gold}\footnotesize$\bullet$}\hspace{0.5em}{\thecontentspage}}
\titlecontents{section}[3em]{}%
{\contentslabel{3.em}}{}%
{\hspace{0.5em}{\color{mygray}\footnotesize$\bullet$}\hspace{0.5em}{\thecontentspage}}
\titlecontents{subsection}[3em + 3.5em]{\small}%
{\contentslabel{3em}}{ }%
{\hspace{0.5em}{\color{darkgray}\scriptsize$\bullet$}\hspace{0.5em}{\thecontentspage}}
\titlecontents{figure}[3em]{}%
{\contentslabel{3.em}}{\sf}%
{\hspace{0.5em}{\color{mygray}\footnotesize$\bullet$}\hspace{0.5em}{\thecontentspage}}
\titlecontents{table}[3em]{}%
{\contentslabel{3.em}}{\sf}%
{\hspace{0.5em}{\color{mygray}\footnotesize$\bullet$}\hspace{0.5em}{\thecontentspage}}