LaTeX template: set secnumdepth to 5 if --number-sections specified.

This yields behavior equivalent to the other writers, numbering
level 4 and 5 headers too.
This commit is contained in:
John MacFarlane 2013-02-18 08:49:37 -08:00
parent bc561191b2
commit eb7dfde58b

View file

@ -102,6 +102,7 @@ $endif$
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
\setcounter{secnumdepth}{5}
$else$
\setcounter{secnumdepth}{0}
$endif$