From bbfc6bc635a60b04992f9d31735b832dd69be76f Mon Sep 17 00:00:00 2001 From: lordkekz <lordkekz@lkekz.de> Date: Tue, 7 Jan 2025 12:45:14 +0100 Subject: [PATCH] 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. --- mluthesis.cls | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/mluthesis.cls b/mluthesis.cls index 66b287b..b552d09 100644 --- a/mluthesis.cls +++ b/mluthesis.cls @@ -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} -- GitLab