From d0bcf5ae1b907ea6e5989c6e89c0fd241ef09c0d Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Wed, 8 Feb 2023 14:43:57 +0100 Subject: [PATCH] Reorganized cel-thesis.cls --- latex/thesis/cel-thesis/cel-thesis.cls | 140 ++++++++++++++++--------- latex/thesis/thesis.tex | 47 ++++++++- 2 files changed, 134 insertions(+), 53 deletions(-) diff --git a/latex/thesis/cel-thesis/cel-thesis.cls b/latex/thesis/cel-thesis/cel-thesis.cls index 0da03b0..d215c56 100644 --- a/latex/thesis/cel-thesis/cel-thesis.cls +++ b/latex/thesis/cel-thesis/cel-thesis.cls @@ -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}}\\} + diff --git a/latex/thesis/thesis.tex b/latex/thesis/thesis.tex index b9387ea..4829786 100644 --- a/latex/thesis/thesis.tex +++ b/latex/thesis/thesis.tex @@ -25,19 +25,48 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Tikz related packages + +%\usepackage{tikz} % Included in cel-thesis.cls +%\usepackage{pgfplots} % Included in cel-thesis.cls +%\pgfplotsset{compat=newest} +\usepackage{tikz-3dplot} +\usepgfplotslibrary{colorbrewer} +\usetikzlibrary{external} +\usetikzlibrary{spy} +\tikzexternalize[prefix=build/] + +% Generic packages + +%\usepackage[utf8]{inputenc} % Included in cel-thesis.cls +%\usepackage[T1]{fontenc} % Included in cel-thesis.cls +%\usepackage[ngerman]{babel} % Included in cel-thesis.cls +%\usepackage{amsmath} % Included in cel-thesis.cls +\usepackage{float} +\usepackage{listings} +%\usepackage{graphicx} % Included in cel-thesis.cls +\usepackage{xcolor} +%\usepackage[binary-units]{siunitx} % Included in cel-thesis.cls \usepackage{caption} +\usepackage{subcaption} \usepackage{bm} \usepackage{subcaption} \usepackage{todonotes} % great for draft annotations \DeclareCaptionLabelFormat{bf-nodot}{\textbf{#1}~\textbf{#2}} \captionsetup{labelformat=bf-nodot,labelsep=colon} +%\usepackage{csquotes} +%\usepackage[citestyle=numeric, style=alphabetic, backend=biber, +% doi=false,url=false,isbn=false]{biblatex} +%\addbibresource{bibliography.bib} % \hyphenation{non-para-metric repro-gra-mmable} \usepackage{babelbib} \setlanguage % Setting needed for cel-thesis % Pretty C++ print. -\def\CC{{C\nolinebreak[4]\hspace{-.05em}\raisebox{.4ex}{\tiny\textbf{++}}}} +%\def\CC{{C\nolinebreak[4]\hspace{-.05em}\raisebox{.4ex}{\tiny\textbf{++}}}} + +%\input{common.tex} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -47,13 +76,22 @@ \begin{document} + % % Preliminaries + % + \pagenumbering{roman} \maketitle + \newpage + \makestatutorydeclaration + % \include{chapters/abstract} - % main document + % + % Main Document + % + \cleardoublepage \pagenumbering{arabic} @@ -63,13 +101,16 @@ \include{chapters/systemmodel} \include{chapters/conclusion} - + % % Appendix + % + \appendix % \listoffigures % \listoftables \include{abbreviations} \bibliography{cel-thesis/IEEEabrv,bibliography} + %\printbibliography \end{document}