Skip to content
Snippets Groups Projects
Commit 963c46dc authored by Franz Zieris's avatar Franz Zieris
Browse files

fix: use arabic page numbers from first page

parent 484b34f9
No related branches found
No related tags found
No related merge requests found
\NeedsTeXFormat{LaTeX2e} \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 %%% Read options
% Language: Default is German % Language: Default is German
...@@ -166,32 +166,6 @@ ...@@ -166,32 +166,6 @@
{\endquotation}% {\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{xstring}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
\newcommand{\coverpage}[2][]{ \newcommand{\coverpage}[2][]{
...@@ -246,10 +220,19 @@ ...@@ -246,10 +220,19 @@
Berlin, \thesisDate Berlin, \thesisDate
\end{center} \end{center}
\ifcsdef{separateAbstract}{\cleardoublepage\frontmatter}{\vfill} \ifcsdef{separateAbstract}{% abstract on separate page
\begin{abstract} \cleardoublepage
#2 \pagestyle{plain}
\end{abstract} \begin{abstract}
\cleardoublepage #2
\ifcsdef{separateAbstract}{}{\frontmatter} \end{abstract}
\cleardoublepage
}{% abstract on title page
\vfill
\begin{abstract}
#2
\end{abstract}
\cleardoublepage
\pagestyle{plain}
}
} }
...@@ -57,7 +57,9 @@ ...@@ -57,7 +57,9 @@
\cleardoublepage \cleardoublepage
\mainmatter \pagestyle{fancy}
% Actual content starts here
\input{1_introduction} \input{1_introduction}
\input{2_fundamentals} \input{2_fundamentals}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment