From c905588855e140209ebc1ac3882dd4530e23c8a2 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Fri, 4 Aug 2023 20:24:39 +0200
Subject: [PATCH] `\backmatter` changes pagenumbering to roman

---
 HsH-classes.dtx    |  3 ++-
 src/HsH-report.cls | 15 ++++++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/HsH-classes.dtx b/HsH-classes.dtx
index fbb78bd..ddf7e5f 100644
--- a/HsH-classes.dtx
+++ b/HsH-classes.dtx
@@ -295,7 +295,8 @@
   \@mainmattertrue\pagenumbering{arabic}%
 }
 \newcommand*\backmatter{%
-  \if@openright\cleardoubleoddpage\else\clearpage\fi\@mainmatterfalse
+  \if@openright\cleardoubleoddpage\else\clearpage\fi
+  \@mainmatterfalse\pagenumbering{roman}%
 }
 
 %</report>
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index cbde0a7..f78d875 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -5,21 +5,21 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `report')
-%% 
+%%
 %% This is a generated file.
-%% 
+%%
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%% 
+%%
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%% 
+%%
 %%    http://www.latex-project.org/lppl.txt
-%% 
+%%
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%% 
+%%
 \typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-report}
@@ -219,7 +219,8 @@
   \@mainmattertrue\pagenumbering{arabic}%
 }
 \newcommand*\backmatter{%
-  \if@openright\cleardoubleoddpage\else\clearpage\fi\@mainmatterfalse
+  \if@openright\cleardoubleoddpage\else\clearpage\fi
+  \@mainmatterfalse\pagenumbering{roman}%
 }
 
 %% custom commands
-- 
GitLab