aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2019-03-04 18:58:20 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-04 16:58:20 -0700
commitd7f56f818972d3dbe218343caa0222a8912877c3 (patch)
treef0d78bdbaca24126d0afc6248b1bef042d310cc9 /data
parentebdcf752760aeb9c8f207fd17a28ae1a2fd945cf (diff)
downloadpandoc-d7f56f818972d3dbe218343caa0222a8912877c3.tar.gz
LaTeX template: Robust section numbering removal (#5351)
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/>. Update tests
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index b76562f7b..fd15e5b15 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -283,7 +283,7 @@ $endif$
$if(numbersections)$
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
$else$
-\setcounter{secnumdepth}{-2}
+\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$
$if(beamer)$
$else$