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 @@ ...@@ -19,18 +19,6 @@
\RequirePackage{xifthen} \RequirePackage{xifthen}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Options
\newcommand{\thesistype}{}
\DeclareOption{bachelor}{%
\renewcommand{\thesistype}{Bachelor}%
}
\DeclareOption{master}{%
\renewcommand{\thesistype}{Master}%
}
\ExecuteOptions{bachelor} % default
\ProcessOptions
% Font % Font
\RequirePackage{libertine} \RequirePackage{libertine}
\RequirePackage{sourcecodepro} \RequirePackage{sourcecodepro}
...@@ -69,6 +57,9 @@ ...@@ -69,6 +57,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables % Variables
\newtoks\thesistype
\newcommand{\ThesisSetType}[1]{\global\thesistype{#1}}
\newtoks\thesistitle \newtoks\thesistitle
\newcommand{\ThesisSetTitle}[1]{\global\thesistitle{#1}} \newcommand{\ThesisSetTitle}[1]{\global\thesistitle{#1}}
...@@ -154,7 +145,7 @@ ...@@ -154,7 +145,7 @@
\newtoks\thesisdeclarationtext \newtoks\thesisdeclarationtext
\newtoks\thesisfrontmatterkeywords \newtoks\thesisfrontmatterkeywords
\global\thesisfrontpagecourse{Degree Programme } \global\thesisfrontpagecourse{Degree Programme }
\global\thesisfrontpagetypename{\thesistype's Thesis} \global\thesisfrontpagetypename{\the\thesistype's Thesis}
\global\thesisfrontpagestudentnumber{Matriculation Number} \global\thesisfrontpagestudentnumber{Matriculation Number}
\global\thesisfrontpageborn{Born \the\thesisauthordateofbirth{} in \the\thesisauthorplaceofbirth} \global\thesisfrontpageborn{Born \the\thesisauthordateofbirth{} in \the\thesisauthorplaceofbirth}
\global\thesisfrontpagesupervisor{Referee} \global\thesisfrontpagesupervisor{Referee}
...@@ -168,7 +159,7 @@ ...@@ -168,7 +159,7 @@
\global\thesisfrontmatterkeywords{Keywords} \global\thesisfrontmatterkeywords{Keywords}
\IfGerman{% \IfGerman{%
\global\thesisfrontpagecourse{Studiengang } \global\thesisfrontpagecourse{Studiengang }
\global\thesisfrontpagetypename{\thesistype arbeit} \global\thesisfrontpagetypename{\the\thesistype arbeit}
\global\thesisfrontpagestudentnumber{Matrikelnummer} \global\thesisfrontpagestudentnumber{Matrikelnummer}
\global\thesisfrontpageborn{geb.\ am:\ \the\thesisauthordateofbirth{} in % \global\thesisfrontpageborn{geb.\ am:\ \the\thesisauthordateofbirth{} in %
\the\thesisauthorplaceofbirth} \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