From 520be0856a3a3d88cce2de115bd839f166be2f07 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Sun, 4 May 2025 22:29:03 +0200 Subject: [PATCH] Hide ToC itself in ToC --- 0-front/contents.tex | 1 + config/content.tex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/0-front/contents.tex b/0-front/contents.tex index 3f711e8..abf7c37 100644 --- a/0-front/contents.tex +++ b/0-front/contents.tex @@ -1,5 +1,6 @@ \begin{listof} \renewcommand{\contentsname}{\textsf{Contents}} \renewcommand{\cftsecfont}{}% Unbold sections + \pdfbookmark[chapter]{\contentsname}{toc} \tableofcontents \end{listof} diff --git a/config/content.tex b/config/content.tex index 989e681..d7b6079 100644 --- a/config/content.tex +++ b/config/content.tex @@ -23,7 +23,7 @@ \usepackage[autostyle]{csquotes}% For quotes \usepackage[dvipsnames]{xcolor}% More colors \usepackage{tocloft}% Customise the table of contents -\usepackage{tocbibind}% Add bibliography and lists to the table of contents +\usepackage[nottoc]{tocbibind}% Add bibliography and lists to the table of contents, and hide the table of contents itself % Footnotes \usepackage[hang]{footmisc}