From f755d74675fc89b7a2efadef9de4b307f4a7b365 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Wed, 26 Jun 2024 10:31:48 +0200 Subject: [PATCH] Add starbookmark commands --- utils/commands.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/commands.tex b/utils/commands.tex index b185663..2ec2741 100644 --- a/utils/commands.tex +++ b/utils/commands.tex @@ -172,8 +172,14 @@ %% Structure \newcommand{\chapterstartoc}[1]{\chapter*{#1}\addcontentsline{toc}{chapter}{#1}} +\newcommand{\chapterstarbookmark}[1]{\pdfbookmark[chapter]{#1}{#1}\chapter*{#1}} + \newcommand{\sectionstartoc}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}} +\newcommand{\sectionstarbookmark}[1]{\pdfbookmark[section]{#1}{#1}\section*{#1}} + \newcommand{\subsectionstartoc}[1]{\subsection*{#1}\addcontentsline{toc}{subsection}{#1}} +\newcommand{\subsectionstarbookmark}[1]{\pdfbookmark[subsection]{#1}{#1}\subsection*{#1}} + \newcommand{\subsubsubsection}[1]{\paragraph*{\textit{#1}}}