diff --git a/format/custom_packages.tex b/format/custom_packages.tex index db97ec11f39d15c182b984f713e8d56d316dc3b9..ea6f72f7ebfa8900a78ad3c858f39960083f4697 100644 --- a/format/custom_packages.tex +++ b/format/custom_packages.tex @@ -44,7 +44,7 @@ % Have labels for tables \makeatletter \newcommand{\tablelabel}[2]{% \speciallabel{<stuff>}{<label>} - \edef\@currentlabel{#1}\label{#2}% + \edef\@currentlabel{#1}\label{#2}% } \makeatother @@ -80,15 +80,15 @@ \makeatother \newtcbtheorem{Summary}{\bfseries Zusammenfassung}{ - code={\edef\@currentlabelname{#2}} - %enhanced, - %drop shadow={black!50!white}, - %coltitle=black, - %top=0.3in, - %attach boxed title to top left= - % {xshift=1.5em, - % yshift=-\tcboxedtitleheight/2}, - %boxed title style={size=small,colback=pink} + code={\edef\@currentlabelname{#2}} + %enhanced, + %drop shadow={black!50!white}, + %coltitle=black, + %top=0.3in, + %attach boxed title to top left= + % {xshift=1.5em, + % yshift=-\tcboxedtitleheight/2}, + %boxed title style={size=small,colback=pink} }{summary} % Fix a bug with PDF Images included @@ -98,17 +98,6 @@ % Packags for titlepage \usepackage{tikzpagenodes} -% Titlepage -\title{Awesome Title} -\author{Soon to be Dr., M.Sc.} -\date{\today} % TODO use \formatdate{dd}{mm}{yyyy} instead of \today - - - -% color definitions -\definecolor{black75}{rgb}{0.25,0.25,0.25} -\definecolor{black50}{rgb}{0.5,0.5,0.5} - %% Init Tikz \usetikzlibrary{arrows,positioning,shapes.geometric,backgrounds} \usetikzlibrary{arrows.meta} diff --git a/format/titlepage.tex b/format/titlepage.tex index 4c0ee34ac0d304e6df668baacf1cf647e413db42..7bfeb68a3864a5ab1037828e8f1f176138b8707c 100644 --- a/format/titlepage.tex +++ b/format/titlepage.tex @@ -1,7 +1,32 @@ \makeatletter +% Define academic degree names based on the thesis type +\ifthenelse{\equal{\thesistype}{Dissertation}}{% + \def\academicdegree{Dissertation}% + \def\academicdegreegerman{Dissertation}% +}{% + \ifthenelse{\equal{\thesistype}{PA}}{% + \def\academicdegree{Project Thesis}% + \def\academicdegreegerman{Projektarbeit}% + }{% + \ifthenelse{\equal{\thesistype}{BA}}{% + \def\academicdegree{Bachelor Thesis}% + \def\academicdegreegerman{Bachelorarbeit}% + }{% + \ifthenelse{\equal{\thesistype}{MA}}{% + \def\academicdegree{Master Thesis}% + \def\academicdegreegerman{Masterarbeit}% + }{% + % Default case + \def\academicdegree{Thesis}% + \def\academicdegreegerman{Arbeit}% + }}}} + \begin{titlepage} + % Temporarily adjust the page margins to increase the usable space + % \newgeometry{top=2cm,bottom=2cm,left=2cm,right=2cm} + \ifnum\papersize=4 \begin{tikzpicture}[remember picture,overlay] \node[opacity=0.4, anchor=north east,inner sep=0pt]% @@ -16,11 +41,11 @@ \end{tikzpicture} \fi - \vspace{1cm} - \begin{flushleft} + {\small The present work was submitted to the \\ \institute.\\ {\color{black!50} Diese Arbeit wurde vorgelegt am \institutegerman.} + } \vfill @@ -32,43 +57,54 @@ \vspace{1cm} - {\large \academicdegree Thesis}\\ - {\large\color{black!50} \academicdegree }%sarbeit} + \textbf{\large\academicdegree\color{black!50}\ /\ \academicdegreegerman } \vfill - \textbf{\color{black75}Presented by\color{black!50}\ /\ Vorgelegt von} - - {\large\@author}\\ - \normalsize{\studentid} - - \vspace{2cm} - - \begin{tabbing} - - \textbf{\color{black!75}Supervised by\color{black!50}\ /\ Betreut von}\quad - \=\supervisor + \textbf{\color{black!75}Presented by\color{black!50}\ /\ Vorgelegt von} - \\[3\parskip] + {\@author}\\ + \studentid + \vfill + % Supervisor and Examiners + { + \textbf{\color{black!75}Supervised by\color{black!50}\ /\ Betreut von} \supervisor + \\ + \textbf{\color{black!75}\\1\textsuperscript{st} Examiner\color{black!50}\ /\ 1. Prüfer} \firstexaminer + % Include 2nd examiner only if it's set + \ifthenelse{\equal{\secondexaminer}{}}{}{% + \\ + \textbf{\color{black75}\\2\textsuperscript{nd} Examiner\color{black!50}\ /\ 2. Prüfer} \secondexaminer + } + } - \textbf{\color{black!75}1\textsuperscript{st} Examiner\color{black!50}\ /\ 1. Prüfer} - \>\firstexaminer + \begin{flushright} + {\small + Aachen, \submissiondate + } + \end{flushright} - \\[\parskip] + \vfill - \textbf{\color{black!75}2\textsuperscript{nd} Examiner\color{black!50}\ /\ 2. Prüfer} - \>\secondexaminer + % Include the disclaimer text on the title page if applicable + \ifthenelse{\equal{\thesistype}{Dissertation}}{}{% + % Reduce vertical space before the disclaimer + \vspace{0.5cm} + \noindent {\footnotesize + Inhalt und Ergebnis dieser Arbeit sind ausschließlich zum internen Gebrauch bestimmt. Alle Urheberrechte liegen bei der RWTH Aachen. Ohne ausdrückliche Genehmigung des betreuenden Lehrstuhls ist es nicht gestattet, diese Arbeit oder Teile daraus an Dritte weiterzugeben. - \end{tabbing} + \medskip - \vspace{1cm} + \textit{The content and results of this thesis are intended exclusively for internal use. All copyrights are held by RWTH Aachen University. Without the express permission of the supervising department, it is not permitted to pass this thesis or parts thereof to third parties.} + } + } - \begin{flushright} - Aachen, \@date - \end{flushright} + % Reset page geometry back to normal + \restoregeometry \end{titlepage} + \makeatother \newpage\thispagestyle{empty}\null \ No newline at end of file diff --git a/main.tex b/main.tex index 5771516553889eee4f05788dca76728ed69d5706..925143ceabb2eb85f6dc23003d042adbbacd6e77 100644 --- a/main.tex +++ b/main.tex @@ -13,18 +13,20 @@ % Set up the document % Titlepage -\title{Rahmenwerk zur Unterstützung des Forschungsdatenmanagements in der projektbasierten Forschung der deutschen Ingenieurwissenschaften} +\title{Awesome Title} +\newcommand\titlegerman{Rahmenwerk zur Unterstützung des Forschungsdatenmanagements in der projektbasierten Forschung der deutschen Ingenieurwissenschaften} \author{Tobias Hamann, M.Sc.} \date{\today} % TODO use \formatdate{dd}{mm}{yyyy} instead of \today -\newcommand\titlegerman{Geiler Titel} -\newcommand\studentid{} -\newcommand\academicdegree{Dissertation} +% Define the thesis type here (options: PA, BA, MA, Dissertation) +\newcommand{\thesistype}{PA} % Change this to BA, MA, or Dissertation as needed +\newcommand\studentid{123456} \newcommand\institute{Chair of Intelligence in Quality Sensing | WZL | RWTH Aachen University} \newcommand\institutegerman{Lehrstuhl für Informations-, Qualitäts- und Sensorsysteme in der Produktion | WZL | RWTH Aachen} \newcommand\supervisor{Internal Supervisor M. Sc.} \newcommand\firstexaminer{Univ.-Prof. Dr.-Ing. Robert Schmitt} -\newcommand\secondexaminer{Dr. Second Examiner} +\newcommand\secondexaminer{} % add if necessary +\newcommand{\submissiondate}{Submission Date} % Set up Bibliography \bibliography{lit/References.bib}