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}} \renewcommand{\contentsname}{\textsf{Contents}}
\pdfbookmark[chapter]{\contentsname}{toc} \renewcommand{\cftsecfont}{}% Unbold sections
\renewcommand{\cftsecfont}{}% Unbold sections in ToC
\tableofcontents \tableofcontents
} \end{listof}

View File

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

View File

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

View File

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

View File

@@ -17,7 +17,8 @@
% Formatting % Formatting
\usepackage[autostyle]{csquotes} % For quotes \usepackage[autostyle]{csquotes} % For quotes
\usepackage[dvipsnames]{xcolor} % More colors \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 % Footnotes
\usepackage[hang]{footmisc} \usepackage[hang]{footmisc}

View File

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