From 0802a708ed95182f5c7bb86348a2af88def6e1c1 Mon Sep 17 00:00:00 2001
From: Philip Bergmann <philip.bergmann@uni-wuerzburg.de>
Date: Tue, 12 Mar 2024 09:21:00 +0100
Subject: [PATCH] Chapter title in header + a line separating the header from
 the body text

---
 declaration-license.tex |  2 ++
 scrskoma.cls            | 10 +++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/declaration-license.tex b/declaration-license.tex
index bd99a5d..0e840e5 100644
--- a/declaration-license.tex
+++ b/declaration-license.tex
@@ -1,3 +1,5 @@
+\thispagestyle{plain}
+
 \IfStrEq{de}{\localeinfo{language.tag.bcp47}}{
 \foreignlanguage{ngerman}{
 
diff --git a/scrskoma.cls b/scrskoma.cls
index 75809d8..a17ad35 100644
--- a/scrskoma.cls
+++ b/scrskoma.cls
@@ -104,7 +104,15 @@
 \setcounter{secnumdepth}{\subsubsectionnumdepth}
 
 % Print chapter titles in the header
-\pagestyle{headings}
+\RequirePackage[
+    % automatic page titles from the chapter name
+    automark,
+    % print a line separating the header from the rest of the text
+    headsepline
+]{scrlayer-scrpage}
+
+% Not required, scrheadings replaces the default headings and plain page styles
+%\pagestyle{scrheadings}
 
 
 %-------------------------------------------------------------------------------
-- 
GitLab