From 963c46dc18fef11178e8a9b7459b0b3f8c6ed578 Mon Sep 17 00:00:00 2001
From: Franz Zieris <zieris@inf.fu-berlin.de>
Date: Wed, 17 Oct 2018 13:43:54 +0200
Subject: [PATCH] fix: use arabic page numbers from first page

---
 agse-thesis.cls | 49 ++++++++++++++++---------------------------------
 thesis.tex      |  4 +++-
 2 files changed, 19 insertions(+), 34 deletions(-)

diff --git a/agse-thesis.cls b/agse-thesis.cls
index 80d4693..1a4f982 100644
--- a/agse-thesis.cls
+++ b/agse-thesis.cls
@@ -1,5 +1,5 @@
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{agse-thesis}[2017/05/23 v0.1 AGSE Thesis]
+\ProvidesClass{agse-thesis}[2018/10/17 v0.1.1 AGSE Thesis]
 
 %%% Read options
 % Language: Default is German
@@ -166,32 +166,6 @@
         {\endquotation}%
     }{}
 
-% (Re)define frontmatter and mainmatter
-\ifthenelse{\equal{\baseClass}{book}}{
-    \let\frontmatterOrig\frontmatter
-    \renewcommand{\frontmatter}{
-        \frontmatterOrig
-        \pagestyle{plain}
-    }
-    \let\mainmatterOrig\mainmatter
-    \renewcommand{\mainmatter}{
-        \mainmatterOrig
-        \pagestyle{fancy}
-        \setcounter{page}{1}
-    }
-}{
-    \newcommand{\frontmatter}{
-        \pagestyle{plain}
-        \pagenumbering{roman}
-        \setcounter{page}{1}
-    }
-    \newcommand{\mainmatter}{
-        \pagestyle{fancy}
-        \pagenumbering{arabic}
-        \setcounter{page}{1}
-    }
-}
-
 \RequirePackage{xstring}
 \RequirePackage{etoolbox}
 \newcommand{\coverpage}[2][]{
@@ -246,10 +220,19 @@
         Berlin, \thesisDate
     \end{center}
 
-    \ifcsdef{separateAbstract}{\cleardoublepage\frontmatter}{\vfill}
-    \begin{abstract}
-        #2
-    \end{abstract}
-    \cleardoublepage
-    \ifcsdef{separateAbstract}{}{\frontmatter}
+    \ifcsdef{separateAbstract}{% abstract on separate page
+        \cleardoublepage
+        \pagestyle{plain}
+        \begin{abstract}
+            #2
+        \end{abstract}
+        \cleardoublepage
+    }{% abstract on title page
+        \vfill
+        \begin{abstract}
+            #2
+        \end{abstract}
+        \cleardoublepage
+        \pagestyle{plain}
+    }
 }
diff --git a/thesis.tex b/thesis.tex
index a0e5248..565a485 100644
--- a/thesis.tex
+++ b/thesis.tex
@@ -57,7 +57,9 @@
 
 \cleardoublepage
 
-\mainmatter
+\pagestyle{fancy}
+
+% Actual content starts here
 
 \input{1_introduction}
 \input{2_fundamentals}
-- 
GitLab