Skip to content
Snippets Groups Projects
Unverified Commit bbfc6bc6 authored by Heinrich Otto Preiser's avatar Heinrich Otto Preiser
Browse files

feat: Make thesis type a variable instead of option

Use `\ThesisSetType{Bachelor}` or similar to set the exact kind of thesis
you're writing. The class options `bachelor` and `master` have been
removed.
parent 1cdd966f
No related branches found
No related tags found
No related merge requests found
......@@ -19,18 +19,6 @@
\RequirePackage{xifthen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Options
\newcommand{\thesistype}{}
\DeclareOption{bachelor}{%
\renewcommand{\thesistype}{Bachelor}%
}
\DeclareOption{master}{%
\renewcommand{\thesistype}{Master}%
}
\ExecuteOptions{bachelor} % default
\ProcessOptions
% Font
\RequirePackage{libertine}
\RequirePackage{sourcecodepro}
......@@ -69,6 +57,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables
\newtoks\thesistype
\newcommand{\ThesisSetType}[1]{\global\thesistype{#1}}
\newtoks\thesistitle
\newcommand{\ThesisSetTitle}[1]{\global\thesistitle{#1}}
......@@ -154,7 +145,7 @@
\newtoks\thesisdeclarationtext
\newtoks\thesisfrontmatterkeywords
\global\thesisfrontpagecourse{Degree Programme }
\global\thesisfrontpagetypename{\thesistype's Thesis}
\global\thesisfrontpagetypename{\the\thesistype's Thesis}
\global\thesisfrontpagestudentnumber{Matriculation Number}
\global\thesisfrontpageborn{Born \the\thesisauthordateofbirth{} in \the\thesisauthorplaceofbirth}
\global\thesisfrontpagesupervisor{Referee}
......@@ -168,7 +159,7 @@
\global\thesisfrontmatterkeywords{Keywords}
\IfGerman{%
\global\thesisfrontpagecourse{Studiengang }
\global\thesisfrontpagetypename{\thesistype arbeit}
\global\thesisfrontpagetypename{\the\thesistype arbeit}
\global\thesisfrontpagestudentnumber{Matrikelnummer}
\global\thesisfrontpageborn{geb.\ am:\ \the\thesisauthordateofbirth{} in %
\the\thesisauthorplaceofbirth}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment