From 95021fc04652c6e02c81cb454b03237c3616eb49 Mon Sep 17 00:00:00 2001
From: Silvio Rhatto <rhatto@riseup.net>
Date: Tue, 11 Jun 2024 17:07:54 +0100
Subject: Feat: PDF: fine-grained control of lists of tables, figures etc

---
 structure/book/pt-br/99-end.tex | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

(limited to 'structure/book/pt-br/99-end.tex')

diff --git a/structure/book/pt-br/99-end.tex b/structure/book/pt-br/99-end.tex
index 098fdd8..c7e4a38 100644
--- a/structure/book/pt-br/99-end.tex
+++ b/structure/book/pt-br/99-end.tex
@@ -1,17 +1,28 @@
 % Bookdown LaTeX footer file
 
 % Put all indexes in a final chapter
+\ifx\BookupListIndex\undefined
+\else
 \chapter{Índice}
 
-%Listas de tabelas, figuras, definições e etimologias.
-%Listas de tabelas e figuras.
-Listas de tabelas, figuras etc.
+\ifx\BookupListElements\undefined
+\else
+  %Listas de tabelas, figuras, definições e etimologias.
+  %Listas de tabelas e figuras.
+  Listas de tabelas, figuras etc.
+\fi
 
 % Print the list of tables
-\listoftables
+\ifx\BookupListTables\undefined
+\else
+  \listoftables
+\fi
 
 % Print the list of figures
-\listoffigures
+\ifx\BookupListFigures\undefined
+\else
+  \listoffigures
+\fi
 
 % Print the list of definitions
 % See https://latex.org/forum/viewtopic.php?t=17679
@@ -32,8 +43,12 @@ Listas de tabelas, figuras etc.
 \fi
 
 % Print the index
-\printindex
+\ifx\BookupListWordIndex\undefined
+\else
+  \printindex
+\fi
 
 % ChangeLog
 % This is commented until a LaTeX version is available
 %\IfFileExists{snippets/changes.md}{\input{snippets/changes.md}}{}
+\fi
-- 
cgit v1.2.3

