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}} \newcommand{\tabref}[1]{Table~\ref{tab:#1}}
%% Structure %% Structure
\newcommand{\sectionstartoc}[1]{ \newcommand{\chapternotoc}[1]{%
\section*{#1}\addcontentsline{toc}{section}{#1}} \begingroup%
\newcommand{\sectionstarbookmark}[1]{\pdfbookmark[section]{#1}{#1} \renewcommand{\addtocontents}[2]{}%
\section*{#1}} \chapter*{#1}%
\endgroup%
}
\newcommand{\subsectionstartoc}[1]{ \newcommand{\subsectionstartoc}[1]{
\subsection*{#1}\addcontentsline{toc}{subsection}{#1}} \subsection*{#1}\addcontentsline{toc}{subsection}{#1}}