From 3ad225571706f58b18a6799fa22511e787109253 Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Wed, 23 Jan 2019 00:11:13 -0500 Subject: 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 --- test/lhs-test.latex | 2 +- test/lhs-test.latex+lhs | 2 +- test/writer.latex | 2 +- test/writers-lang-and-dir.latex | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/lhs-test.latex b/test/lhs-test.latex index f18af737c..da7dfe6a0 100644 --- a/test/lhs-test.latex +++ b/test/lhs-test.latex @@ -79,7 +79,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 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 diff --git a/test/writer.latex b/test/writer.latex index d801e1590..04ba7cd15 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -57,7 +57,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 diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index bb3575771..8c75341e3 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.latex @@ -42,7 +42,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 -- cgit v1.2.3