Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to new cover sheet templates for 2024W #24

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 82 additions & 21 deletions jkureport.sty
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,35 @@
tnf/.code={\renewcommand{\jkureport@faculty}{tnf}},
}

% Option legacymode: activate a legacy mode to account for previous formal requirements, styles, and/or features
% Supported legacy modes:
% - phd2021 Adapt cover sheet to formal requirements for unstructured doctoral programs before 2021W
% (also accounts for change from "Beurteiler*in" to "Betreuer*in" in 2024W versions of the German thesis cover sheets)
\newcommand{\jkureport@legacymodes}{}
\newbool{jkureport@legacyMMXXIV@evaluator}
\pgfkeys{%
/jkureport/pkg/.cd,
legacymode/.value required,
legacymode/.code={%
\notblank{#1}{%
\xdef\jkureport@legacymodes{\jkureport@legacymodes,#1}
\ifstrequal{#1}{phd2021}{%
\PackageWarning{jkureport}{Activating legacy mode `#1': Cover sheet for unstructured doctoral programs before 2021W.}%
\booltrue{jkureport@legacyMMXXIV@evaluator}%
}{%
\PackageError{jkureport}{Legacy mode `#1' not supported!}{}%
}%
}{%
\ifdefempty{\jkureport@legacymodes}{}{%
\PackageWarning{jkureport}{Disabling all legacy modes.}%
}%
\renewcommand{\jkureport@legacymodes}{}%
\boolfalse{jkureport@legacyMMXXIV@evaluator}%
}%
},
legacymode=,
}


\DeclareOption*{}
\ProcessPgfOptions{/jkureport/pkg}
Expand Down Expand Up @@ -1390,16 +1419,48 @@
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@submissiondepartmentname}{Angefertigt am}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@supervisorname}{Thesis Supervisor}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@supervisorname}{Beurteiler\ifbool{jkureport@gender@f}{in}{}}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@supervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Beurteiler}% was used before 2024W
{Betreuer}% used since 2024W
\ifbool{jkureport@gender@f}{in}{}%
}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@firstsupervisorname}{First Supervisor}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@firstsupervisorname}{Erstbeurteiler\ifbool{jkureport@gender@f}{in}{}}
\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@firstsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Supervisor and First Evaluator}% used since 2024W for pre-2021W unstructured doctoral programs
{First Supervisor}%
}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@firstsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Erstbeurteiler}% was used before 2024W and used since 2024W for pre-2021W unstructured doctoral programs
{Erstbetreuer}% used since 2024W
\ifbool{jkureport@gender@f}{in}{}%
}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@secondsupervisorname}{Second Supervisor}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@secondsupervisorname}{Zweitbeurteiler\ifbool{jkureport@gender@f}{in}{}}
\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@secondsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Second Evaluator}% used since 2024W for pre-2021W unstructured doctoral programs
{Second Supervisor}%
}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@secondsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Zweitbeurteiler}% was used before 2024W and used since 2024W for pre-2021W unstructured doctoral programs
{Zweitbetreuer}% used since 2024W
\ifbool{jkureport@gender@f}{in}{}%
}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@thirdsupervisorname}{Third Supervisor}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@thirdsupervisorname}{Drittbeurteiler\ifbool{jkureport@gender@f}{in}{}}
\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@thirdsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Third Evaluator}% used since 2024W for pre-2021W unstructured doctoral programs
{Third Supervisor}%
}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@thirdsupervisorname}{%
\ifbool{jkureport@legacyMMXXIV@evaluator}%
{Drittbeurteiler}% was used before 2024W and used since 2024W for pre-2021W unstructured doctoral programs
{Drittbetreuer}% used since 2024W
\ifbool{jkureport@gender@f}{in}{}%
}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\jkureport@assistantsupervisorname}{Assistant Thesis Supervisor}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\jkureport@assistantsupervisorname}{Mitbetreuung}
Expand Down Expand Up @@ -1821,12 +1882,12 @@
{\usekomafont{author}\csuse{jkureport@insertsupervisor@1}}\par%
\hfill\par%
\ifcsempty{jkureport@insertsupervisor@2}{}{%
\csuse{jkureport@insertsupervisor@gender@1}%
\csuse{jkureport@insertsupervisor@gender@2}%
\jkureport@secondsupervisorname\par%
{\usekomafont{author}\csuse{jkureport@insertsupervisor@2}}\par%
\hfill\par%
\ifcsempty{jkureport@insertsupervisor@3}{}{%
\csuse{jkureport@insertsupervisor@gender@1}%
\csuse{jkureport@insertsupervisor@gender@3}%
\jkureport@thirdsupervisorname\par%
{\usekomafont{author}\csuse{jkureport@insertsupervisor@3}}\par%
\hfill\par%
Expand Down Expand Up @@ -2448,15 +2509,15 @@
% Environment alertblock: add a boxed warning message block with an optional title
\newenvironment{alertblock}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=jkuRed!20,opacityback=1.0,colframe=jkuRed,colbacktitle=jkuRed,title={#1}]%
\begin{tcolorbox}[colback=jkuRed!20,opacityback=1.0,colframe=jkuRed,colbacktitle=jkuRed,title={#1}]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

\newenvironment{alertblock*}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=jkuRed!20,opacityback=1.0,colframe=jkuRed,colbacktitle=jkuRed,title={#1},
\begin{tcolorbox}[colback=jkuRed!20,opacityback=1.0,colframe=jkuRed,colbacktitle=jkuRed,title={#1},
detach title,
if odd page or oneside={%
sharp corners=northeast,
Expand All @@ -2482,21 +2543,21 @@
]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

% Environment block: add a boxed message block with an optional title
\newenvironment{block}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=jkuDarkGray!20,opacityback=1.0,title={#1}]%
\begin{tcolorbox}[colback=jkuDarkGray!20,opacityback=1.0,title={#1}]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

\newenvironment{block*}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=jkuDarkGray!20,opacityback=1.0,title={#1},
\begin{tcolorbox}[colback=jkuDarkGray!20,opacityback=1.0,title={#1},
detach title,
if odd page or oneside={%
sharp corners=northeast,
Expand All @@ -2522,21 +2583,21 @@
]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

% Environment highlightblock: add a highlighted boxed message block with an optional title
\newenvironment{highlightblock}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=palette faculty highlight!20,opacityback=1.0,colframe=palette faculty highlight,colbacktitle=palette faculty highlight,title={#1}]%
\begin{tcolorbox}[colback=palette faculty highlight!20,opacityback=1.0,colframe=palette faculty highlight,colbacktitle=palette faculty highlight,title={#1}]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

\newenvironment{highlightblock*}[1][]{%
\setlength{\jkureport@outerparskip}{\parskip}
\begin{tcolorbox}[colback=palette faculty highlight!20,opacityback=1.0,colframe=palette faculty highlight,colbacktitle=palette faculty highlight,title={#1},
\begin{tcolorbox}[colback=palette faculty highlight!20,opacityback=1.0,colframe=palette faculty highlight,colbacktitle=palette faculty highlight,title={#1},
detach title,
if odd page or oneside={%
sharp corners=northeast,
Expand All @@ -2562,7 +2623,7 @@
]%
\setlength{\parskip}{\jkureport@outerparskip}%
}{%
\end{tcolorbox}%
\end{tcolorbox}%
}

%%
Expand Down
20 changes: 12 additions & 8 deletions main-report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@
\hfill\\%
}

%% Command \author{name}: sets the author's name; use \prefix{} and \suffix{} to add academic titles and suffixes, use \matno{} to add the immatriculation number
%% Command \author{name}: sets the author name(s); separate multiple authors with \and; use \prefix{}
%% and \suffix{} to add academic titles and suffixes (if needed); use \affiliation{} to add an
%% affiliation, use \authornewline to add line breaks (e.g. to separate authors from contact
%% information), use \authormail{}, \authorweb{}, \authorphone{} and \authorfax{} to add contact
%% information)
\author{%
Firstname1 Lastname1 \and Firstname2 Lastname2 \and Firstname3 Lastname3
\affiliation{Institute of Networks~and~Security}
Expand All @@ -200,25 +204,25 @@
\authornewline
}

% Command \date{YYYY-MM-DD}: set the day of publication (defaults to today)
%% Command \date{YYYY-MM-DD}: set the day of publication (defaults to today)
%\date{2020-04-09}

% Command \partnerlogo{filename}: use filename as partnerlogo, filename may be blank to disable the logo
%% Command \partnerlogo{filename}: use filename as partnerlogo, filename may be blank to disable the logo
%\partnerlogo{logos/ins}

% Command \revisionblock{text}: set the document revision block on the title page
%% Command \revisionblock{text}: set the document revision block on the title page
\revisionblock{Space for your revision block, acknowledgements, etc.}

% Command \reportnumber{number}: set the report number
%% Command \reportnumber{number}: set the report number
%\reportnumber{Space for your report number}

% Command \setbottommark{text}: set the bottom mark (in document footer)
%% Command \setbottommark{text}: set the bottom mark (in document footer)
%\setbottommark{Space for your bottom mark}

% Command \abstract{text}: set the document abstract on the title page
%% Command \abstract{text}: set the document abstract on the title page
\abstract{Space for your (short) abstract.}

% Command \keywords{text}: set the document keywords
%% Command \keywords{text}: set the document keywords
%\keywords{Space for your comma-separated keywords}


Expand Down
12 changes: 7 additions & 5 deletions main-seminarreport.tex
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@
%% Command \subtitle{subtitle}: sets the subtitle for seminar/technical reports (not used for theses)
\subtitle{Seminar Report}

%% Command \author{name}: sets the author's name; use \prefix{} and \suffix{} to add academic titles and suffixes, use \matno{} to add the immatriculation number
%% Command \author{name}: sets the author's name; use \prefix{} and \suffix{} to add academic titles
%% and suffixes, use \matno{} to add the immatriculation number
\author{\prefix{DI} Firstname~Lastname \suffix{BSc}\matno{12345678}}

%% Command \supervisor[number,gender]{name}: sets the name of the supervisor (where number optionally
Expand All @@ -193,16 +194,17 @@
%\supervisor[1]{\prefix{Prof. Dr.} Firstname~Lastname}
%\supervisor[2]{\prefix{Prof. Dr.} Firstname~Lastname}

% Command \submissiondepartment{institute or department}: set the course or department that the thesis is submitted at
%% Command \submissiondepartment{institute or department}: set the course or department that the thesis
%% is submitted at
\submissiondepartment{Special Topics: Smart~Cards \&~NFC (353.039)}

% Command \date{YYYY-MM-DD}: set the day of submission (defaults to today)
%% Command \date{YYYY-MM-DD}: set the day of submission (defaults to today)
%\date{2020-04-09}

% Command \abstract{text}: set the document abstract on the title page
%% Command \abstract{text}: set the document abstract on the title page
\abstract{Space for your (short) abstract.}

% Command \keywords{text}: set the document keywords
%% Command \keywords{text}: set the document keywords
%\keywords{Space for your comma-separated keywords}


Expand Down
59 changes: 41 additions & 18 deletions main-thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,19 @@
%% when using XeTeX/LuaTeX) in math mode.
%%
%% Advanced options:
%% * noautopdfinfo ... Do not automatically try to add pdfinfo with hyperref from document
%% metadata fields.
%% * logopath={<path>} ... Set the path where the theme can find its own logo resources. This
%% should typically be a relative path and the default is `./logos'.
%% * fontpath={<path>} ... Set the path where the theme can find its own font resources. This
%% should typically be a relative path and the default is `./fonts'.
%% * legacymode={<mode>} ... Activate a legacy mode to account for previous formal requirements,
%% styles, and/or features. May be specified mutliple times to activate
%% multiple legacy modes. The following <mode>s are supported:
%% - phd2021 ... Adapt cover sheet to formal requirements for unstructured
%% doctoral programs before 2021W (also accounts for change from
%% "Beurteiler*in" to "Betreuer*in" in 2024W versions of the German
%% thesis cover sheets)
%% * noautopdfinfo ... Do not automatically try to add pdfinfo with hyperref from document
%% metadata fields.
%% * logopath={<path>} ... Set the path where the theme can find its own logo resources. This
%% should typically be a relative path and the default is `./logos'.
%% * fontpath={<path>} ... Set the path where the theme can find its own font resources. This
%% should typically be a relative path and the default is `./fonts'.
%%
%% Hint: Boolean options can be used in the forms `option' or `option=true' the enable the
%% option and `nooption' or `option=false' to disable the option.
Expand Down Expand Up @@ -186,30 +193,46 @@
%% Command \subtitle{subtitle}: sets the subtitle for seminar/technical reports (not used for theses)
%\subtitle{Seminar Report}

%% Command \author{name}: sets the author's name; use \prefix{} and \suffix{} to add academic titles and suffixes, use \matno{} to add the immatriculation number
%% Command \author{name}: sets the author's name; use \prefix{} and \suffix{} to add academic titles
%% and suffixes, use \matno{} to add the immatriculation number
\author{\prefix{DI} Firstname~Lastname \suffix{BSc}\matno{12345678}}

%% Command \supervisor[number,gender]{name}: sets the name of the supervisor (where number optionally
%% defines the rank of the supervisor (1-3) and gender specifies if the supervisor is male or female
%% to adapt gener-specific terms in German)
%% defines the rank of the supervisor (1-3) and gender specifies if the supervisor is male (m) or
%% female (f/w) to adapt gender-specific terms in German)
\supervisor{\prefix{Prof. Dr.} Firstname~Lastname}

% Command \assistantsupervisor{name}: sets the name of the assistant supervisor(s)
%% Command \assistantsupervisor{name}: sets the name of the assistant supervisor(s)
\assistantsupervisor{\prefix{Dr.} Firstname~Lastname \suffix{MSc}}

% Command \degree{degree}{degree program}: sets the degree and degree program name
%% Command \degree{degree}{degree program}: sets the degree and degree program name
\degree{Master of Science}{Computer Science}

% Command \submissiondepartment{institute or department}: set the department that the thesis is submitted at
%% Please make sure to insert the _correct_ degree and degree program names for your studies before
%% submission. Examples for degrees at JKU:
%% * Diplom-Ingenieurin / Diplom-Ingenieur
%% * Doctor medicinae universae
%% * Master of Arts
%% * Master of Laws
%% * Master of legal and business aspects in technics
%% * Master of Science
%% * Master of Science in Digital Business Management
%% * Master of Science Global Business
%% * Master of Social Sciences
%% * Doktorin / Doktor der Geistes- und Kulturwissenschaften
%% * Doktorin / Doktor der Medizinischen Wissenschaften
%% * Doktorin / Doktor der Naturwissenschaften
%% * Doktorin / Doktor der Rechtswissenschaften
%% * Doktorin / Doktor der Sozial- und Wirtschaftswissenschaften
%% * Doktorin / Doktor der technischen Wissenschaften
%% * Doctor of Philosophy

%% Command \submissiondepartment{institute or department}: set the department that the thesis is submitted at
\submissiondepartment{Institute of Networks~and~Security}

% Command \submissionplace{place}: set the place of submission (typically `Linz', which is also the default)
%\submissionplace{Linz}

% Command \date{YYYY-MM-DD}: set the day of submission (defaults to today)
%% Command \date{YYYY-MM-DD}: set the day of submission (defaults to today)
%\date{2020-04-09}

% Command \keywords{text}: set the document keywords
%% Command \keywords{text}: set the document keywords
%\keywords{Space for your comma-separated keywords}


Expand Down
Loading