From 2449a674f035e1b0d9e456d1499f6a957f21af8a Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Wed, 27 May 2020 18:16:08 +0200
Subject: Secnumdepth default to 0 in book template

---
 templates/book.latex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'templates')

diff --git a/templates/book.latex b/templates/book.latex
index b496157..90c1ff7 100644
--- a/templates/book.latex
+++ b/templates/book.latex
@@ -499,7 +499,7 @@ $if(colorlinks)$
   \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
 $endif$
   \setcounter{tocdepth}{$toc-depth$}
-  \setcounter{secnumdepth}{$toc-secnumdepth$}
+  \setcounter{secnumdepth}{$if(toc-secnumdepth)$$toc-secnumdepth$$else$0$endif$}
   \tableofcontents
 }
 $endif$
-- 
cgit v1.2.3