Add local toc of contents
This commit is contained in:
15
main.tex
15
main.tex
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user