aboutsummaryrefslogtreecommitdiff
path: root/structure
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-08 11:12:02 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-08 11:12:02 +0100
commit70090ba022efa56166989367404fb9c6136f388c (patch)
tree1c6a61850f976b04021ce75444a40cffaad28d82 /structure
parent8503c1f04924018d6a05116a26c455e5d6b83b5e (diff)
downloadbookup-70090ba022efa56166989367404fb9c6136f388c.tar.gz
bookup-70090ba022efa56166989367404fb9c6136f388c.tar.bz2
Fix: make list of definitions and etimologies configurable
Diffstat (limited to 'structure')
-rw-r--r--structure/00-header.tex3
-rw-r--r--structure/99-end.tex14
2 files changed, 13 insertions, 4 deletions
diff --git a/structure/00-header.tex b/structure/00-header.tex
index 48b7150..ded10bd 100644
--- a/structure/00-header.tex
+++ b/structure/00-header.tex
@@ -79,3 +79,6 @@
% See https://stackoverflow.com/questions/45963505/coverpage-and-copyright-notice-before-title-in-r-bookdown
\let\oldmaketitle\maketitle
\AtBeginDocument{\let\maketitle\relax}
+
+% Custom header
+\IfFileExists{snippets/header.tex}{\input{snippets/header.tex}}{}
diff --git a/structure/99-end.tex b/structure/99-end.tex
index f1657bd..1959646 100644
--- a/structure/99-end.tex
+++ b/structure/99-end.tex
@@ -16,14 +16,20 @@ Listas de tabelas, figuras etc.
% Print the list of definitions
% See https://latex.org/forum/viewtopic.php?t=17679
% https://ctan.org/pkg/thmtools
-%\renewcommand\listtheoremname{Lista de Definições}
-%\listoftheorems[ignoreall,show={definition}]
+\ifx\BookupListDefinitions\undefined
+\else
+ \renewcommand\listtheoremname{Lista de Definições}
+ \listoftheorems[ignoreall,show={definition}]
+\fi
% Print the list of etimologies
% The "proposition" theorem type is allocated for etimologies in this book
% See the _bookdown.yml at the top-level project folder for more information
-%\renewcommand\listtheoremname{Lista de Etimologias}
-%\listoftheorems[ignoreall,show={proposition}]
+\ifx\BookupListEtimologies\undefined
+\else
+ \renewcommand\listtheoremname{Lista de Etimologias}
+ \listoftheorems[ignoreall,show={proposition}]
+\fi
% Print the index
\printindex