Add \chapternotoc

This commit is contained in:
2025-05-04 22:52:13 +02:00
parent 520be0856a
commit 8a4a0bdb81

View File

@@ -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}}