Fix (again) toc, lists

This commit is contained in:
2024-09-29 14:07:42 +02:00
parent b91944c976
commit f2d82affe7
6 changed files with 23 additions and 30 deletions

View File

@@ -1,9 +1,6 @@
{
\hypersetup{linkcolor=black}
\begin{listof}
\renewcommand{\contentsname}{\textsf{Contents}}
\pdfbookmark[chapter]{\contentsname}{toc}
\renewcommand{\cftsecfont}{}% Unbold sections in ToC
\renewcommand{\cftsecfont}{}% Unbold sections
\tableofcontents
}
\end{listof}

View File

@@ -1,4 +1,4 @@
\chapter*{Bibliography}
\label{bibliography}
\printbibliography[heading=none]
{
\singlespacing
\printbibliography[heading=bibliography]
}

View File

@@ -1,9 +1,4 @@
\chapter*{List of Figures}
\label{figures}
{% Set the link color to black only for the list of figures
\hypersetup{linkcolor=black}%
\makeatletter%
\@starttoc{lof}% Print the list of figures without the title
\makeatother%
}%
\begin{listof}
\renewcommand{\listfigurename}{\textsf{List of Figures}}
\listoffigures
\end{listof}

View File

@@ -1,10 +1,4 @@
\chapter*{List of Tables}
\label{tables}
{% Set the link color to black only for the list of tables
\hypersetup{linkcolor=black}%
\makeatletter%
\@starttoc{lot}% Print the list of tables without the title
\makeatother%
}%
\begin{listof}
\renewcommand{\listtablename}{\textsf{List of Tables}}
\listoftables
\end{listof}

View File

@@ -17,7 +17,8 @@
% Formatting
\usepackage[autostyle]{csquotes} % For quotes
\usepackage[dvipsnames]{xcolor} % More colors
\usepackage{tocloft}
\usepackage{tocloft} % Customise the table of contents
\usepackage[nottoc]{tocbibind} % Add bibliography and lists to the table of contents
% Footnotes
\usepackage[hang]{footmisc}

View File

@@ -7,6 +7,12 @@
\end{oldequation}%
}
% Contents, figures and tables
\NewDocumentEnvironment{listof}{}{
\hypersetup{linkcolor=black}
\singlespacing
}{}
% Images
% example: \fig[1]{filename}{Caption}[Additional caption text, not shown in the list of figures]
% reference later with: \figref{filename}