Skip to content

Commit 3d8222a

Browse files
committed
feat(listof): add better support for List of ...
Signed-off-by: Jonas Dujava <[email protected]>
1 parent d067ab3 commit 3d8222a

3 files changed

Lines changed: 21 additions & 12 deletions

File tree

chapters/Features.tex

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ \subsection{Structure Environments}%
286286
PRs welcome.
287287
\end{Note}
288288

289-
\subsection{References, Links}%
289+
\subsection{References and Links}%
290290
\label{sub:References Links}
291291
\fileTeXtured{preamble/hacks/custom-reference-boxes.tex}
292292

@@ -309,16 +309,20 @@ \subsection{References, Links}%
309309
This behavior is adapted in \TeXtured{} with the macro of the same name \custommacro{\Cref}.
310310
\end{remark}
311311

312-
\subsection{Table of Contents, Index}%
312+
\subsection{Table of Contents and Outline/Index}%
313313
\label{sub:Table of Contents and Index}
314314
\fileTeXtured{preamble/layout/toc.tex}
315315

316316
Clear and elegant Table of Contents, which includes all of the important parts --- also (unnumbered) subsections, but in a more compact style.
317317

318-
Similarly, automatically populate the Index (digital Table of Contents in PDF viewer).
318+
Similarly, automatically populate the PDF Outline/Index (digital Table of Contents in PDF viewer).
319319
It is very handy for navigating longer documents, and includes also other important pages other than just initial pages of main chapters: Title Page, Contents, Introduction, References, and so on.
320320
\begin{remark}
321-
I use \texttt{Zathura} as my PDF viewer, with the Index just one \macro{Tab} away, allowing me to quickly jump to the desired part of the document.
321+
I use \texttt{Zathura} as my PDF viewer, with the Outline/Index just one \macro{Tab} away, allowing me to quickly jump to the desired part of the document.
322+
\end{remark}
323+
324+
\begin{remark}[List of Figures, Tables, \ldots{}]
325+
If you want/need to include a List of Figures, List of Tables, and so on, you can easily do so by uncommenting the relevant lines in the \custommacro{\contentsandlists} macro.
322326
\end{remark}
323327

324328

@@ -498,11 +502,6 @@ \subsection{Footnotes}%
498502
\end{itemize}
499503
\end{itemize}
500504

501-
\subsection{List of Figures, List of ...}%
502-
\label{sub:List of Figures List of ...}
503-
504-
Don't really see the point, but one is free to include it.
505-
506505
\subsection{Index, Glossary}%
507506
\label{sub:Index Glossary}
508507

preamble/layout/toc.tex

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
%% Table of Contents
22
% \addtocontents{toc}{\vspace{-0.9em}} % change space after "Contents" title in TOC
3-
\NewDocumentCommand{\contents}{}{
3+
\NewDocumentCommand{\contentsandlists}{}{
44
{\hypersetup{hidelinks}
55
\tableofcontents
6-
% \listoftheorems[title=List of Definitions and Theorems, onlynamed, swapnumber]
6+
7+
%% Add list of structure environments
8+
%% -> see `thmtools` package for more customization
9+
% \DeclareExpandableDocumentCommand{\listtheoremname}{}{List of Definitions, Remarks, \ldots}
10+
% \cleardoublepage\phantomsection
11+
% \currentpdfbookmark{\listtheoremname}{loe} % add PDF Index/Outline entry
12+
% \listoftheorems[onlynamed, swapnumber]
13+
14+
%% Add list of figures and tables
15+
%% -> see `tocbibind` package (or maybe also `titletoc`)
716
% \listoffigures
17+
% \listoftables
818
}
919
}
1020

thesis.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
% \include{frontmatter/dedication}
5151
% \include{frontmatter/information}
5252

53-
\contents
53+
\contentsandlists
5454

5555
\include{chapters/Introduction}
5656
\include{chapters/QuickSummary}

0 commit comments

Comments
 (0)