From 6dee650df3456770d53eecdf25c9079349375c73 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Fri, 4 Aug 2023 20:15:18 +0200
Subject: [PATCH] fix plain pagestyle

---
 HsH-classes.dtx     | 7 +++++++
 src/HsH-article.cls | 2 ++
 src/HsH-report.cls  | 2 ++
 3 files changed, 11 insertions(+)

diff --git a/HsH-classes.dtx b/HsH-classes.dtx
index 8017e89..fbb78bd 100644
--- a/HsH-classes.dtx
+++ b/HsH-classes.dtx
@@ -200,6 +200,13 @@
 %
 %<*article|report>
 %% header and footer
+% first clear the default styles
+\clearpairofpagestyles
+% than we set the pagenumber for the plain and normal style
+%<article>\cfoot*{\pagemark}
+%<report>\ofoot*{\pagemark}
+%
+% now we define our custom header style
 \newpagestyle{HsHheadings}{
 % twosided left page header
   {
diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index 5240a5b..b58cf14 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -145,6 +145,8 @@
 \upsubscripts
 
 %% header and footer
+\clearpairofpagestyles
+\cfoot*{\pagemark}
 \newpagestyle{HsHheadings}{
   {
     \parbox[b]{\sls@headwidth}{
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index 111a7ae..cbde0a7 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -145,6 +145,8 @@
 \upsubscripts
 
 %% header and footer
+\clearpairofpagestyles
+\ofoot*{\pagemark}
 \newpagestyle{HsHheadings}{
   {
     \parbox[b]{\sls@headwidth}{
-- 
GitLab