Add local toc of contents

This commit is contained in:
2024-04-16 14:18:57 +02:00
parent 9aeb720a9f
commit 48d7bbffaf
3 changed files with 23 additions and 9 deletions

View File

@@ -21,6 +21,8 @@
\let\bibcloseparen=\bibclosebracket%
}
\usepackage{etoc} % Local table of contents
\hypersetup{ % Hyperlinks
bookmarksnumbered=true, % Include section numbers in bookmarks
bookmarksopen=true, % Auto-open bookmarks
@@ -52,6 +54,19 @@
\newcommand{\inputchapter}[1]{\clearemptydoublepage\input{#1}}
\newcommand{\mainchapter}[2]{%
\chapter{#2}%
\label{ch:#1}%
%
\graphicspath{{#1/figures/}}% Load figures from the chapter folder
%
% Print the table of contents for the chapter
\vspace*{-1cm}%
\localtableofcontents%
\par\noindent\rule{\textwidth}{0.4pt}%
\vspace*{0.5cm}%
}
%% Document
\begin{document}