aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Hodgson <[email protected]>2024-10-01 21:26:28 +0200
committerGitHub <[email protected]>2024-10-01 12:26:28 -0700
commitf2b1de53973b4633f057d621d2c1a22a00914bda (patch)
tree663d5091ce2f84d0c5be9b962a9c892a9cbb260e /test
parente583ab79700a299d1057b54899cccd82165a562b (diff)
Make --number-sections work with beamer (#10245)
+ Remove section numbering code from common.latex + Add section numbering to default.latex + Add logic for numbering sections in default.beamer. I moved the template setting code to where other beamer templates are set. This makes the section-titles and numbersections variables independent. This should make --number-sections work with beamer.
Diffstat (limited to 'test')
-rw-r--r--test/command/9472.md2
-rw-r--r--test/writer.latex2
-rw-r--r--test/writers-lang-and-dir.latex2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/command/9472.md b/test/command/9472.md
index 273edde94..fd6f1d3e2 100644
--- a/test/command/9472.md
+++ b/test/command/9472.md
@@ -15,6 +15,7 @@ More text in English. ['Zitat auf Deutsch.']{lang=de}
]{article}
\usepackage{xcolor}
\usepackage{amsmath,amssymb}
+\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
@@ -61,7 +62,6 @@ More text in English. ['Zitat auf Deutsch.']{lang=de}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
-\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
diff --git a/test/writer.latex b/test/writer.latex
index a5ee8a04e..6e6811cf0 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -5,6 +5,7 @@
]{article}
\usepackage{xcolor}
\usepackage{amsmath,amssymb}
+\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
@@ -60,7 +61,6 @@
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
-\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index 2a3e8242a..4f2269a60 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -5,6 +5,7 @@
]{article}
\usepackage{xcolor}
\usepackage{amsmath,amssymb}
+\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
@@ -55,7 +56,6 @@
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
-\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifPDFTeX
\TeXXeTstate=1
\newcommand{\RL}[1]{\beginR #1\endR}