Commit 28d010cf authored by Veronika Lesch's avatar Veronika Lesch
Browse files

fancy titlepage with automatic insert of advisor infos

parent a387c9f1
%!TEX root = thesis.tex
%% appendix.tex
%%
......
%!TEX root = thesis.tex
%% conclusion.tex
%%
......
%!TEX root = thesis.tex
%% content.tex
%%
......
%!TEX root = thesis.tex
\cleardoublepage
\vspace*{36\baselineskip}
\hbox to \textwidth{\hrulefill}
\par
\iflanguage{english}{I declare that I have developed and written the enclosed thesis completely by myself, and have not used sources or means without declaration in the text.}{Ich versichere wahrheitsgem\"a\ss, die Arbeit selbstst\"andig angefertigt, alle benutzten Hilfsmittel vollst\"andig und genau angegeben und alles kenntlich gemacht zu haben, was aus Arbeiten anderer unver\"andert oder mit Ab\"anderungen entnommen wurde.}
\textbf{PLACE, DATE}
\textbf{\place, \submissionTime}
\vspace{1.5cm}
\dotfill\hspace*{8.0cm}\\
\hspace*{2cm}(\textbf{YOUR NAME}) %center name with hspace
\hspace*{2cm}(\authorName) %center name with hspace
\thispagestyle{empty}
\ No newline at end of file
%!TEX root = thesis.tex
%% evaluation.tex
%%
......
%!TEX root = thesis.tex
%% introduction.tex
%%
......
......@@ -4,91 +4,47 @@
% Thesis - Main document
% ----------------------------------------------------------------
%% -------------------------------
%% | Fancy Title Page Packages |
%% | Information for PDF file |
%% -------------------------------
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{etoolbox}
\usepackage{pgfgantt} % Must be behind graphicx or will produce errors otherwise
\usepackage{rotating} % Same here (see above)
%\usepackage[]{algorithm2e}
%\usepackage[boxruled,linesnumbered]{algorithm2e}
\hypersetup{
pdfauthor={Not set},
pdftitle={Not set},
pdfsubject={Not set},
pdfkeywords={Not set}
}
%% -------------------------------
%% | Fancy Title Page Info |
%% | New Title Page Info |
%% -------------------------------
\definecolor{background}{RGB}{31,83,148}
\definecolor{titlecolor}{RGB}{255,255,255}
\newcommand{\authorOneName}{Name}
\newcommand{\authorOneDepartment}{Department of Computer Science}
\newcommand{\authorOneChair}{Chair for Computer Science II (Software Engineering)}
\newcommand{\authorOneAssociation}{Universität Würzburg}
\newcommand{\authorTwoName}{Prof. Dr.-Ing. Samuel Kounev}
\newcommand{\authorTwoTask}{First Reviewer}
\newcommand{\authorTwoAssociation}{Universtät Würzburg}
\newcommand{\authorThreeName}{?}
\newcommand{\authorThreeTask}{Advisor}
\newcommand{\authorThreeAssociation}{Universtät Würzburg}
\newcommand{\authorFourName}{?}
\newcommand{\authorFourTask}{Second Advisor}
\newcommand{\authorFourAssociation}{Universtät Würzburg}
\newcommand{\authorFiveName}{?}
\newcommand{\authorFiveTask}{External Advisor}
\newcommand{\authorFiveAssociation}{?}
\newcommand{\docType}{Bachelor/Master Thesis} % select your thesis type
\newcommand{\mainTitle}{Your Title}
\newcommand{\webadress}{www.uni-wuerzburg.de}
\newcommand{\authorName}{Your Name}
\newcommand{\docType}{Master Thesis}
\newcommand{\mainTitle}{Title of thesis}
\newcommand{\subTitle}{Sub title of thesis}
\newcommand{\theDate}{DD. Month 20XX}
\newcommand{\reviewerOneName}{Prof. Dr.-Ing. Samuel Kounev}
\newcommand{\reviewerOneTask}{First Reviewer}
\newcommand{\advisorOneName}{Name Advisor 1}
\newcommand{\advisorOneTask}{First Advisor}
\newbool{descartes_symbol}
\newbool{descartes_chair_text}
\newbool{descartes_logo}
% if only one advisor remove next two lines
\newcommand{\advisorTwoName}{Name Advisor 2}
\newcommand{\advisorTwoTask}{Second Advisor}
\booltrue{descartes_logo}
% if no external advisor remove next two lines
%\newcommand{\advisorExtName}{Name External Advisor}
%\newcommand{\advisorExtTask}{External Advisor}
\newcommand{\submissionTime}{XX. Month 20YY}
%% -------------------------------
%% | Information for PDF file |
%% | Information for Declaration |
%% -------------------------------
\hypersetup{
pdfauthor={Not set},
pdftitle={Not set},
pdfsubject={Not set},
pdfkeywords={Not set}
}
%% ---------------------------------
%% | Information about the thesis |
%% ---------------------------------
%% deprecated --- old titlepage
%\newcommand{\myname}{Name}
%\newcommand{\mytitle}{Title of thesis\\
% Second title line}
%\newcommand{\myinstitute}{Chair for Computer Science II\\
% Software Engineering}
%
%\newcommand{\reviewerone}{?}
%\newcommand{\advisor}{?}
%\newcommand{\advisortwo}{?}
%
%\newcommand{\submissiontime}{DD. Month 20XX}
\newcommand{\place}{Place}
%% ---------------------------------
%% | ToDo Marker - only for draft! |
......@@ -140,8 +96,7 @@
% Only files listed here will be included!
% Userful command for partially translating the document (for bug-fixing e.g.)
\includeonly{%
%titlepage,
titlepage2,
titlepage,
declaration,
introduction,
content,
......@@ -161,8 +116,8 @@ appendix
\frontmatter
\pagenumbering{roman}
%\include{titlepage}
\include{titlepage2}
\include{titlepage}
% reset margins to standrad for text
\setmarginsrb{3cm}{1cm}{3cm}{1cm}{6mm}{7mm}{5mm}{15mm}
\include{declaration}
\blankpage
......
......@@ -54,9 +54,30 @@
\usepackage[fixlanguage]{babelbib} % sets german style for literature entries
\selectbiblanguage{ngerman} % for \bibliographystyle{babalpha}
%% -------------------------------
%% | New Title Page Packages |
%% -------------------------------
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{etoolbox}
\usepackage{pgfgantt} % Must be behind graphicx or will produce errors otherwise
\usepackage{rotating} % Same here (see above)
%% --- End of Packages ---
%% -------------------------------
%% | New Title Page Definitions |
%% -------------------------------
% thesisclass
\definecolor{background}{RGB}{31,83,148}
\definecolor{titlecolor}{RGB}{255,255,255}
\newcommand{\authorDepartment}{Department of Computer Science}
\newcommand{\authorChair}{Chair for Computer Science II (Software Engineering)}
\newcommand{\authorAssociation}{Universität Würzburg}
\newcommand{\webadress}{www.uni-wuerzburg.de}
%% -------------------------------
%% | Declarations |
......
%% titlepage.tex
%%
\begin{titlepage}
% coordinates for the bg shape on the titlepage
\newcommand{\diameter}{20}
\newcommand{\xone}{-15}
\newcommand{\xtwo}{160}
\newcommand{\yone}{15}
\newcommand{\ytwo}{-253}
\setmarginsrb{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}
\begin{titlepage}
% bg shape
\begin{tikzpicture}[overlay]
\draw[color=gray]
(\xone mm, \yone mm)
-- (\xtwo mm + \diameter pt , \yone mm)
-- (\xtwo mm + \diameter pt , \ytwo mm)
-- (\xone mm , \ytwo mm)
-- (\xone mm, \yone mm);
\begin{tikzpicture}[remember picture,overlay]
\node [inner sep=0pt] (background_img) at (15, -17) {\includegraphics[width=38cm]{logos/Marienberg_wuerzburg_verlauf.png}};
\node [fill=white, minimum width=133mm, minimum height=600mm] (box) at (current page.north west){};
\node [inner sep=0pt] (uniwuelogo) at (12.98,-5) {\includegraphics[width=\paperwidth]{logos/unilogo4c_gross.png}};
\end{tikzpicture}
\begin{textblock}{10}[0,0](4,2.5)
\includegraphics[width=.3\textwidth]{logos/unilogo4cohne_mittel.jpg}
\end{textblock}
\changefont{phv}{m}{n} % helvetica
\vspace*{3.5cm}
\begin{center}
\Huge{\mytitle}
\vspace*{2cm}\\
\Large{
\iflanguage{english}{Master Thesis of}
{Masterarbeit\\von}
}\\
\vspace*{1cm}
\huge{\myname}\\
\vspace*{1cm}
\Large{
\iflanguage{english}{At the Department of Computer Science}
{Am Institut f\"ur Informatik}
\\
\myinstitute
}
\end{center}
\vspace*{1cm}
\Large{
\begin{center}
\begin{tabular}[ht]{l c l}
% Gutachter sind die Professoren, die die Arbeit bewerten.
\iflanguage{english}{Reviewer}{Gutachter}: & \hfill & \reviewerone\\
%\iflanguage{english}{Second reviewer}{Zweitgutachter}: & \hfill & \reviewertwo\\
\iflanguage{english}{Advisor}{Betreuender Mitarbeiter}: & \hfill & \advisor\\
\iflanguage{english}{Second advisor}{Zweiter betreuender Mitarbeiter}: & \hfill & \advisortwo\\
% Der zweite betreuende Mitarbeiter kann weggelassen werden.
\end{tabular}
\end{center}
}
\vspace{2cm}
\begin{center}
\ifdefined\timestart
\large{\iflanguage{english}{Duration}{Bearbeitungszeit}: \timestart \hspace*{0.25cm} -- \hspace*{0.25cm} \timeend}
\fi
\ifdefined\submissiontime
\large{\iflanguage{english}{Submission}{Einreichung}: \submissiontime}
\fi
\end{center}
\begin{textblock}{10}[0,0](3.2,16.75)
\small{
\iflanguage{english}
{Julius-Maximilians-Universit\"at W\"urzburg}
{Julius-Maximilians-University, W\"urzburg}
}
\end{textblock}
\begin{textblock}{10}[0,0](13.2,16.75)
\large{
\textbf{www.uni-wuerzburg.de}
}
\end{textblock}
\pagecolor{background}
\begin{textblock*}{170mm}(80mm,45mm)
\noindent
\renewcommand{\baselinestretch}{1.5}
\huge\textsf{\textcolor{titlecolor}{\docType}}
\end{textblock*}
% Title
\begin{textblock*}{130mm}(80mm,95mm)
\noindent
\Huge\textsf{\textbf{\textcolor{titlecolor}{\mainTitle}}}
\end{textblock*}
% First author
\begin{textblock*}{120mm}(80mm,175mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorName} \\
\authorDepartment\\
\authorChair
}}
\end{textblock*}
\ifdefined\advisorTwoName
% case 1: one reviewer and two advisor
% First reviewer
\begin{textblock*}{120mm}(80mm,220mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\reviewerOneName} \\
\reviewerOneTask
}}
\end{textblock*}
% First advisor
\begin{textblock*}{120mm}(80mm,235mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\advisorOneName} \\
\advisorOneTask
}}
\end{textblock*}
% second advisor
\begin{textblock*}{120mm}(80mm,250mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\advisorTwoName} \\
\advisorTwoTask
}}
\end{textblock*}
\ifdefined\advisorExtName
% external advisor
\begin{textblock*}{120mm}(80mm,265mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\advisorExtName} \\
\advisorExtTask
}}
\end{textblock*}
\fi
\else
% case 2: one reviewer and one advisor
% First reviewer
\begin{textblock*}{120mm}(80mm,220mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\reviewerOneName} \\
\reviewerOneTask
}}
\end{textblock*}
% First advisor
\begin{textblock*}{120mm}(80mm,235mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\advisorOneName} \\
\advisorOneTask
}}
\end{textblock*}
\ifdefined\advisorExtName
% external advisor
\begin{textblock*}{120mm}(80mm,250mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\advisorExtName} \\
\advisorExtTask
}}
\end{textblock*}
\fi
\fi
% Date
\begin{textblock*}{60mm}(80mm,305mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{\textbf{Submission\\}\submissionTime}}
\end{textblock*}
% Webadress
\begin{textblock*}{110mm}(115mm,311mm)
\noindent
\hfill\Large\textsf{\textcolor{titlecolor}{\textbf{\webadress}}}
\end{textblock*}
\end{titlepage}
\nopagecolor
\ No newline at end of file
\begin{titlepage}
\setmarginsrb{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}{0mm}
\newcommand{\nologo}{
\begin{tikzpicture}[remember picture,overlay]
\node [inner sep=0pt] (background_img) at (15, -17) {\includegraphics[width=38cm]{logos/Marienberg_wuerzburg_verlauf.png}};
\node [fill=white, minimum width=141mm, minimum height=600mm] (box) at (current page.north west){};
\node [inner sep=0pt] (uniwuelogo) at (12.98,-5) {\includegraphics[width=\paperwidth]{logos/unilogo4c_gross.png}};
\end{tikzpicture}}
\ifbool{descartes_symbol}{
\begin{tikzpicture}[remember picture,overlay]
\node [inner sep=0pt] (background_img) at (15, -17) {\includegraphics[width=38cm]{logos/Marienberg_wuerzburg_verlauf.png}};
\node [fill=white, minimum width=141mm, minimum height=600mm] (box) at (current page.north west){};
\node [inner sep=0pt] (uniwuelogo) at (12.98,-5) {\includegraphics[width=\paperwidth]{logos/unilogo4c_gross.png}};
\node [inner sep=0pt] (descartessymbol) at (19.5, -5) {\includegraphics[width=1.5cm]{logos/DescartesSymbol_gross.png}};
\end{tikzpicture}}{\ifbool{descartes_logo}{}{\nologo}}
\ifbool{descartes_logo}{
\begin{tikzpicture}[remember picture,overlay]
\node [inner sep=0pt] (background_img) at (15, -17) {\includegraphics[width=38cm]{logos/Marienberg_wuerzburg_verlauf.png}};
\node [fill=white, minimum width=133mm, minimum height=600mm] (box) at (current page.north west){};
\node [inner sep=0pt] (uniwuelogo) at (12.98,-5) {\includegraphics[width=\paperwidth]{logos/unilogo4c_gross.png}};
%\node [inner sep=0pt] (descarteslogo) at (18.5, -5) %{\includegraphics[width=3.5cm]{logos/DescartesLogo_ohneSchatten_gross.png}};
\end{tikzpicture}}{\ifbool{descartes_symbol}{}{\nologo}}
\pagecolor{background}
\ifbool{descartes_chair_text}{
\begin{textblock*}{60mm}(155mm,71mm)
\begin{flushright}
\noindent
\textsf{\iflanguage{english}{Chair of Computer Science II\\Software Engineering}{Lehrstuhl f\"ur Informatik II\\Software Engineering}}
\end{flushright}
\end{textblock*}}{}
\begin{textblock*}{170mm}(80mm,45mm)
\noindent
\renewcommand{\baselinestretch}{1.5}
\huge\textsf{\textcolor{titlecolor}{\docType}}
\end{textblock*}
% Title
\begin{textblock*}{130mm}(80mm,95mm)
\noindent
\Huge\textsf{\textbf{\textcolor{titlecolor}{\mainTitle}}}
\end{textblock*}
% First author
\begin{textblock*}{120mm}(80mm,175mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorOneName} \\
\authorOneDepartment\\
\authorOneChair
}}
\end{textblock*}
% First reviewer
\begin{textblock*}{120mm}(80mm,220mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorTwoName} \\
\authorTwoTask
% \authorTwoAssociation
}}
\end{textblock*}
% First advisor
\begin{textblock*}{120mm}(80mm,235mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorThreeName} \\
\authorThreeTask
}}
\end{textblock*}
% Second advisor
\begin{textblock*}{120mm}(80mm,250mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorFourName} \\
\authorFourTask
}}
\end{textblock*}
% External advisor
\begin{textblock*}{120mm}(80mm,265mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{
\textbf{\authorFiveName} \\
\authorFiveTask
}}
\end{textblock*}
% Date
\begin{textblock*}{60mm}(80mm,299mm)
\noindent
\Large\textsf{\textcolor{titlecolor}{\textbf{Submission\\}\theDate}}
\end{textblock*}
% Webadress
\begin{textblock*}{110mm}(115mm,311mm)
\noindent
\hfill\Large\textsf{\textcolor{titlecolor}{\textbf{\webadress}}}
\end{textblock*}
\end{titlepage}
%\restoregeometry
\nopagecolor
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment