From 8a4a0bdb81d26b5910b9ea1a971fcb630a037345 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Sun, 4 May 2025 22:52:13 +0200 Subject: [PATCH] Add \chapternotoc --- utils/commands.tex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/commands.tex b/utils/commands.tex index b582fdc..e6fc3e7 100644 --- a/utils/commands.tex +++ b/utils/commands.tex @@ -160,10 +160,13 @@ \newcommand{\tabref}[1]{Table~\ref{tab:#1}} %% Structure -\newcommand{\sectionstartoc}[1]{ -\section*{#1}\addcontentsline{toc}{section}{#1}} -\newcommand{\sectionstarbookmark}[1]{\pdfbookmark[section]{#1}{#1} -\section*{#1}} +\newcommand{\chapternotoc}[1]{% + \begingroup% + \renewcommand{\addtocontents}[2]{}% + \chapter*{#1}% + \endgroup% +} + \newcommand{\subsectionstartoc}[1]{ \subsection*{#1}\addcontentsline{toc}{subsection}{#1}}