summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/titlepage-uni-dortmund/udotitle.sty
blob: cf915705fef51f97e1f884718f369fd71b8dd4df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
% IUL Title Package
% Author: Gerd Sebastiani
% URL: www.forum.fset.de
%
% Usage: \usepackage{udotitle}
% Modifies titlepage to imitate UDO-Cover with IUL-Logo.
% Load in addition to titlepage.
% Required Input: 
%  Type of your thesis (Assigment, Master's, Ph.D. ... ) by \thesistype{yourtype}
%  Title of your thesis by \title{yourtitle}
%   CAUTION: Very long titles (4 lines) may result in a pagebreak. 
%    Either use a shorter title or decrease the fontsize
%  Author of the thesis by \author{yourname}
%  Immatriculation number by \matno{yourno}
%  Date of submission by \date{\today}
%  Names of Supervisors by \tutor{1st Supervisor}{2nd Supervisor}
%
%	 See comments in the stylesheet to adjust the template to your needs

\usepackage{graphicx}
%\geometry{lmargin=.4in, rmargin=1in}

\usepackage{fancyhdr}

\newcommand{\thesistype}[1]{
	\def\@thesistype{#1}
	}
\def\@thesistype{
	\@latex@warning@no@line{Package `udotitle': No \noexpand\thesistype given}}	

\newcommand{\institute}[1]{
	\def\@institute{#1}
	}
\def\@institute{
	\@latex@warning@no@line{Package `udotitle': No \noexpand\institute given}}
		
\newcommand{\tutor}[2]{
  \def\@tutorfirst{#1}
  \def\@tutorsecond{#2}
  }
\def\@tutorfirst{
  \@latex@warning@no@line{Package `udotitle': No \noexpand\tutor given}}

\newcommand{\matno}[1]{
	\def\@matno{#1}
	}
\def\@matno{
	\@latex@warning@no@line{Package `udotitle': No \noexpand\matno given}}
 
\renewcommand{\maketitle}{
	\begin{titlepage}
	\thispagestyle{fancy}
	\renewcommand{\headrulewidth}{0.0pt}

	\begin{flushright}
		\vspace*{-5.5cm}{
		\includegraphics{./options/udobalken.png}}
  \end{flushright}
  
  \begin{center}
    {\sc
    % Change this for different kinds of reports (assignments ect.)
		{\Large \bf \sc \@thesistype \\}
		\vspace{36pt}

		{\LARGE \bf  \@title \\}     %%% title
		\vspace{48pt}
		}
		
		% Change this to use other institute
		\includegraphics{./options/iul.png}\\
    \vspace{12pt}
    {\large \textbf{\@institute} \\}
    \vspace{48pt} 
        
    {\large
    \textbf{Author:}\\  
		\@author  \\           %%% author
    \vspace{12pt}
    
    \textbf{Immatriculation No:}\\ 
		\@matno		\\            %%% Matriculation No.
		\vspace{12pt}
		      
		\textbf{Supervisors:}\\
    \@tutorfirst \\             %%% first tutor
    \@tutorsecond \\               %%% second tutor
    \vspace{12pt}   
    
    \textbf{Date of Submission:}\\ 		
		\@date 			\\  %%% Submission
		}
  \end{center} 
  % Add UDO-Logo in footer (rather cumbersome to achieve...)
  \cfoot{}
  \addtolength{\headwidth}{\marginparsep}
	\addtolength{\headwidth}{\marginparwidth}
 	\rfoot{\includegraphics{./options/udohaken.png}}
	\end{titlepage}
	\addtolength{\headwidth}{-\marginparsep}
	\addtolength{\headwidth}{-\marginparwidth}
}
% Use this for an additional blank page
%\newpage
%\thispagestyle{empty}
%\newpage