aboutsummaryrefslogtreecommitdiff
path: root/test/lhs-test.latex+lhs
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2019-01-23 00:11:13 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-22 21:11:13 -0800
commit3ad225571706f58b18a6799fa22511e787109253 (patch)
tree310d3c1ba6253a4f4605887a1d4721f97cb7f48c /test/lhs-test.latex+lhs
parent690193e4e5fd7449fe44bc870a74d2496a5d8c0e (diff)
downloadpandoc-3ad225571706f58b18a6799fa22511e787109253.tar.gz
LaTeX template: Respect `numbersections` for books (#5235)
Ensure that `\part` and `\chapter` are only numbered if `numbersections` is set. To return to the previous behaviour, use `-V numbersections -V secnumdepth=0`. Notes on secnumdepth: 1 = Number `\section` 0 = Number `\chapter` -1 = Number `\part` -2 = No numbering
Diffstat (limited to 'test/lhs-test.latex+lhs')
-rw-r--r--test/lhs-test.latex+lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs
index dc6f2803b..e959a5e7c 100644
--- a/test/lhs-test.latex+lhs
+++ b/test/lhs-test.latex+lhs
@@ -44,7 +44,7 @@
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
-\setcounter{secnumdepth}{0}
+\setcounter{secnumdepth}{-2}
% Redefines (sub)paragraphs to behave more like sections
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph