From 71af1079f14a35f9152ff4eef24ef413c11cbdc7 Mon Sep 17 00:00:00 2001
From: Felix <felix@hilsky.de>
Date: Wed, 3 Feb 2021 17:42:14 +0000
Subject: [PATCH] support for Appendix package to get a title over the
 appendices

---
 tex/header/stdmath.sty | 8 ++++++++
 tex/main.tex           | 4 +++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/tex/header/stdmath.sty b/tex/header/stdmath.sty
index 2cafe51..ca38511 100644
--- a/tex/header/stdmath.sty
+++ b/tex/header/stdmath.sty
@@ -109,6 +109,14 @@ exponent-product=\cdot]{siunitx}  % provides nice typesetting for units and numb
    pdfencoding=auto
   ]{hyperref}
 %\parindent0.0em % = Einrueckungsweite des ersten Satzes eines Absatzes
+% is necessary to let babel work with appendix:
+% see https://tex.stackexchange.com/a/67636
+\RequirePackage{bookmark}
+\RequirePackage[toc,page]{appendix}
+\ifopt@german \renewcommand{\appendixpagename}{Anhänge}
+  \renewcommand{\appendixname}{Anhang}
+  \renewcommand{\appendixtocname}{Anhänge}
+\fi
 
 % ---------------------------------------------------------------
 % Custom commands, rougly grouped
diff --git a/tex/main.tex b/tex/main.tex
index 77f0820..1b0a2ef 100644
--- a/tex/main.tex
+++ b/tex/main.tex
@@ -5,6 +5,8 @@
 \author{Felix Hilsky}
 \maketitle
 % use \textinput as described in /header and _TEMPLATE
-\appendix
+\begin{appendices}
+  % \textinput{some-appendix-section}
+\end{appendices}
 % use \textinput as described in /header and _TEMPLATE
 \docEnd
-- 
GitLab