summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2020-05-27 18:16:08 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2020-05-27 18:16:08 +0200
commit2449a674f035e1b0d9e456d1499f6a957f21af8a (patch)
tree3d07250df990e39e30c792b5d4832cf57f5ca60f
parent1dc8190583262cd311c09e431791a4480e847f6e (diff)
Secnumdepth default to 0 in book template
-rw-r--r--templates/book.latex2
1 files changed, 1 insertions, 1 deletions
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$