Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • fachschaftsrat-mathematikinformatik/mluethesis
  • amvpk/mluethesis
2 results
Show changes
Commits on Source (2)
  • Heinrich Otto Preiser's avatar
    feat: Make thesis type a variable instead of option · bbfc6bc6
    Heinrich Otto Preiser authored
    Use `\ThesisSetType{Bachelor}` or similar to set the exact kind of thesis
    you're writing. The class options `bachelor` and `master` have been
    removed.
    Unverified
    bbfc6bc6
  • Heinrich Otto Preiser's avatar
    Improve frontpage supervisor list · 74f5c7ca
    Heinrich Otto Preiser authored
    1. Numbers are now hidden if it's exactly one Supervisor.
       `\ThesisSetSupervisors{Just One}` leads to:
       "Referee: Just One"
       `\ThesisSetSupervisors{{First One},{Then Another}}` leads to:
       "1. Referee: First One\\2. Referee: Then Another"
    2. It's now possible to override the label if your thesis type
       needs a different one.
       `\ThesisOverrideSupervisorLabel{Betreuer}` changes the label:
       "1. Betreuer: First One\\2. Betreuer: Then Another"
    Unverified
    74f5c7ca
......@@ -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,12 +57,18 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables
\newtoks\thesistype
\newcommand{\ThesisSetType}[1]{\global\thesistype{#1}}
\newtoks\thesistitle
\newcommand{\ThesisSetTitle}[1]{\global\thesistitle{#1}}
\newtoks\thesisauthor
\newcommand{\ThesisSetAuthor}[1]{\global\thesisauthor{#1}}
\newtoks\thesissupervisorlabeloverride
\newcommand{\ThesisOverrideSupervisorLabel}[1]{\global\thesissupervisorlabeloverride{#1}}
\newtoks\thesissupervisors
\newcommand{\ThesisSetSupervisors}[1]{\global\thesissupervisors{#1}}
......@@ -154,10 +148,10 @@
\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}
\global\thesisfrontpagesupervisor{\ifthenelse{\value{\the\thesissupervisorlabeloverride}}{\the\thesissupervisorlabeloverride}{Referee}}
\global\thesisfrontpagedateofsubmission{Submission date}
\global\thesisdeclarationtitle{Declaration}
\global\thesisdeclarationtext{%
......@@ -168,11 +162,11 @@
\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}
\global\thesisfrontpagesupervisor{Gutachter}
\global\thesisfrontpagesupervisor{\ifthenelse{\value{\the\thesissupervisorlabeloverride}}{\the\thesissupervisorlabeloverride}{Gutachter}}
\global\thesisfrontpagedateofsubmission{Datum der Abgabe}
\global\thesisdeclarationtitle{Erkl\"arung}
\global\thesisdeclarationtext{Hiermit versichere ich, dass ich diese Arbeit %
......@@ -181,12 +175,19 @@
\global\thesisfrontmatterkeywords{Schl\"usselworte}
}{}
\RequirePackage{xstring}
\newcommand*{\commalength}[1]{%
\StrCount{#1,}{,}%
}
% Frontpage
\newcounter{supervisors}
\newcounter{supervisorsPrecount}
\newcommand{\printsupervisor}[1]{%
\ifthenelse{\value{supervisors}=0}{}{\\}%
\addtocounter{supervisors}{1}%
\arabic{supervisors}. \the\thesisfrontpagesupervisor:
\ifthenelse{\value{supervisorsPrecount}=1}{}{\arabic{supervisors}.}
\the\thesisfrontpagesupervisor:
#1
}
\renewcommand{\maketitle}{
......@@ -216,6 +217,7 @@
\vspace{1em}
\makeatletter%
\@for \name:=\the\thesissupervisors\do{\stepcounter{supervisorsPrecount}}%
\@for \name:=\the\thesissupervisors\do{\printsupervisor{\name}}%
\makeatother%
......