Reorganized cel-thesis.cls

This commit is contained in:
2023-02-08 14:43:57 +01:00
parent 24a48bef59
commit d0bcf5ae1b
2 changed files with 134 additions and 53 deletions

View File

@@ -1,10 +1,17 @@
% Author: Johannes Demel
% This file requires quite a few texlive packages.
% texlive-lang-german / texlive-lang-european
% texlive-science
% Original Author: Johannes Demel
% Modified: Andreas Tsouchlos
%
% Template for theses authored at the Communications Engineering Lab (CEL).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% New Doctype Declaration %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cel-thesis/cel-thesis}
\LoadClass[11pt, % 11pt
titlepage,
twoside, % Doppelseitige Ausgabe
@@ -13,15 +20,20 @@
% draft, % Overfull H-Boxen markieren
final, % Engueltige Version mit Bildern
]{scrreprt}
\areaset[8mm]{150mm}{225mm}
\RedeclareSectionCommand[
beforeskip=0pt,
]{chapter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% new commands
\areaset[8mm]{150mm}{225mm}
\RedeclareSectionCommand[beforeskip=0pt,]{chapter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% New Commands
%
\newcommand{\thesisTitle}[1]{\def \theThesisTitle{#1}}
\newcommand{\thesisType}[1]{\def \theThesisType{#1}}
\newcommand{\thesisAuthor}[1]{\def \theThesisAuthor{#1}}
@@ -34,7 +46,11 @@ beforeskip=0pt,
\newcommand{\thesisLanguage}[1]{\def \theThesisLanguage{#1}}
\newcommand{\thesisCC}[1]{\def \theThesisCC{#1}}
\newcommand{\thesisPythonWatermark}[1]{\def \theThesisPythonWatermark{#1}}
%
% Defaults
%
\thesisTitle{Random Thesis Title}
\thesisType{Master Thesis Type}
\thesisAuthor{John Doe}
@@ -54,7 +70,11 @@ beforeskip=0pt,
\def\dictThesisTRUE{TRUE}
% General %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% General %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T1]{fontenc} % encoding for target files.
\usepackage[utf8]{inputenc} % UTF-8 encoding for source files
\usepackage{lmodern}
@@ -84,6 +104,7 @@ beforeskip=0pt,
}
% Math and Symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amssymb, amsfonts, latexsym}
\usepackage{amsmath}
\usepackage[right]{eurosym}
@@ -124,59 +145,78 @@ beforeskip=0pt,
\setlength{\parskip}{5pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create titlepage and optional parts like a CC statement.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\header}{%
\begin{tabular*}{1.0\linewidth}[c]{lcr}
\includegraphics[height=18mm,valign=c]{cel-thesis/logos/kitlogo_de_rgb}%
&%
\begin{minipage}{8cm}\centering%
\textbf{\theUniversity}\\
Communications Engineering Lab\\
\theThesisHeadOfInstitute%
\end{minipage}%
&%
\includegraphics[height=18mm,valign=c]{cel-thesis/logos/cel_logo}%
\end{tabular*}
}
\newcommand{\ssection}[1]{\vspace*{0.8em}{\textbf{#1}}\\}
\def\makestatutorydeclaration{
\include{cel-thesis/eidesstattliche_erklaerung}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title Page and Optional Parts (e.g. CC Statement) %%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Header
%
\newcommand{\header}{%
\begin{tabular*}{1.0\linewidth}[c]{lcr}
\includegraphics[height=18mm,valign=c]{cel-thesis/logos/kitlogo_de_rgb}%
&%
\begin{minipage}{8cm}\centering%
\textbf{\theUniversity} \\
Communications Engineering Lab \\
\theThesisHeadOfInstitute%
\end{minipage}%
&%
\includegraphics[height=18mm,valign=c]{cel-thesis/logos/cel_logo}%
\end{tabular*}
}
%
% Title
%
\def\maketitle{
\hypersetup{
pdfauthor = \theThesisAuthor,
pdftitle = {\theThesisType{ }\theThesisTitle{ } \theThesisAuthor},
pdfsubject = {Institut für Nachrichtentechnik (CEL)},
}
\thispagestyle{empty}
\header % institute banner, etc.
\vspace*{5.0cm}%
% Title
%
\begin{center}
{\Large \textbf{\theThesisTitle}} \\[1cm]
{\large \theThesisType} \\[2.5cm]
{\textbf{\theThesisAuthor}}\\[5cm]
{\large \theThesisType} \\[2.5cm]
{\textbf{\theThesisAuthor}} \\[5cm]
\begin{tabular}{lll}
\ifx\theThesisLanguage\dictThesisLanguageEnglish % default is german. But one may use english.
Advisor & : & \theThesisAdvisor \\
Supervisor & : & \theThesisSupervisor\\[2cm]
Start date & : & \theThesisStartDate \\
End date & : & \theThesisEndDate \\
\else
Hauptreferent & : & \theThesisAdvisor \\
Betreuer & : & \theThesisSupervisor\\[2cm]
Beginn & : & \theThesisStartDate \\
Abgabe & : & \theThesisEndDate \\
\fi
\end{tabular}
\ifx\theThesisLanguage\dictThesisLanguageEnglish
Advisor & : & \theThesisAdvisor \\
Supervisor & : & \theThesisSupervisor \\[2cm]
Start date & : & \theThesisStartDate \\
End date & : & \theThesisEndDate \\
\else
Hauptreferent & : & \theThesisAdvisor \\
Betreuer & : & \theThesisSupervisor \\[2cm]
Beginn & : & \theThesisStartDate \\
Abgabe & : & \theThesisEndDate \\
\fi
\end{tabular}
\end{center}
\hspace*{\fill}
\newpage
\makestatutorydeclaration
}
%
% Statutory Declaration
%
\def\makestatutorydeclaration{
\include{cel-thesis/eidesstattliche_erklaerung}
}
%
% Misc
%
\newcommand{\ssection}[1]{\vspace*{0.8em}{\textbf{#1}}\\}