-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEPL-master-thesis-covers-FR.cls
133 lines (114 loc) · 3.71 KB
/
EPL-master-thesis-covers-FR.cls
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
% http://ctan.mirrors.hoobly.com/macros/latex/doc/clsguide.pdf
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{eplmastersthesis}[2018/12/04 EPL Master''s Thesis class]
\LoadClass[12pt, a4paper, openright]{report}
% Usefull packages
% A l'origine, c'était utf8x mais cela faisait tout sauter avec biblatex
\usepackage[utf8]{inputenc}
\usepackage[french,english]{babel} % Both french and english
\RequirePackage{microtype} % Improves typography
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage[pdftex]{graphicx}
\RequirePackage{color}
\RequirePackage{geometry}
\RequirePackage{tabto} % Tabulation
\RequirePackage{anyfontsize} % size of fonts
% Commands for title, readers, authors, dates, specialities,...
\RequirePackage{etoolbox}
\newcommand{\subtitle}[1]{\def\@subtitle{#1}}
\newcommand{\secondauthor}[1]{\def\@secondauthor{#1}}
\newcommand{\thirdauthor}[1]{\def\@thirdauthor{#1}}
\newcommand{\supervisor}[1]{\def\@supervisor{#1}}
\newcommand{\secondsupervisor}[1]{\def\@secondsupervisor{#1}}
\newcommand{\thirdsupervisor}[1]{\def\@thirdsupervisor{#1}}
\newcommand{\degreetitle}[1]{\def\@degreetitle{#1}}
\newcommand{\options}[1]{\def\@myoptions{#1}}
\newcommand{\readerone}[1]{\def\@readerone{#1}}
\newcommand{\readertwo}[1]{\def\@readertwo{#1}}
\newcommand{\readerthree}[1]{\def\@readerthree{#1}}
\newcommand{\readerfour}[1]{\def\@readerfour{#1}}
\newcommand{\readerfive}[1]{\def\@readerfive{#1}}
\newcommand{\years}[1]{\def\@years{#1}}
% Setting the graphicspath
\graphicspath{{template/}}
% Lenghts
\newlength{\tabAuthor}
\newlength{\tabSupervisor}
\newlength{\tabReader}
% Title creation
\renewcommand{\maketitle}{
\begin{titlepage}
\thispagestyle{empty}
\newgeometry{top=0cm,bottom=0cm,left=3cm,right=2.5cm}
% background
\noindent \hspace{-3cm}
\includegraphics{_frontbanner_EPL-master-thesis.pdf}\\
\vspace*{-\textheight}
% Font
\color{white} \fontfamily{phv} \selectfont
% Define lengths
\setlength{\tabAuthor}{
\ifdef{\@secondauthor}{1.7cm}{1.6cm}
}
\setlength{\tabSupervisor}{
\ifdef{\@secondsupervisor}{2.55cm}{2.45cm}
}
\setlength{\tabReader}{
\ifdef{\@readertwo}{1.9cm}{1.8cm}
}
\vspace*{9cm}
% Title and subtitle
\noindent
\begin{minipage}[t][10cm][c]{1\textwidth}
\raggedright
%\vspace*{2cm}
{
\fontsize{26}{36}\selectfont \textbf{\@title}
\vspace*{12pt}
\ifdef{\@subtitle}{\fontsize{20}{30} \selectfont \@subtitle}{$ $} \\
}
\end{minipage}
% Metadata
\vspace*{4cm}
\noindent \hspace{1.7cm}
\begin{minipage}[l]{.85\textwidth}
% authors
\ifdef{\@secondauthor}{Auteurs:}{Auteur:}{\bfseries
\tabto{\tabAuthor}\@author
\ifdef{\@secondauthor}{, \@secondauthor}{}
\ifdef{\@thirdauthor}{, \@thirdauthor}{}}
\\
% supervisors
\ifdef{\@secondsupervisor}{Promoteurs:}{Promoteur:}{\bfseries
\tabto{\tabSupervisor}\@supervisor
\ifdef{\@secondsupervisor}{, \@secondsupervisor}{}\ifdef{\@thirdsupervisor}{, \@thirdsupervisor}{}}
\\
% readers
\ifdef{\@readertwo}{Lecteurs:}{Lecteur:}{\bfseries
\tabto{\tabReader}\@readerone
\ifdef{\@readertwo}{, \@readertwo}{}\ifdef{\@readerthree}{, \@readerthree}{}\ifdef{\@readerfour}{, \@readerfour}{}\ifdef{\@readerfive}{, \@readerfive}{}}
\\
% academic year
Année académique \@years
\\
% degree title
\@degreetitle
\end{minipage}
\end{titlepage}
}
% Front cover page
\newcommand{\frontpage}
{
\begin{titlepage}
\end{titlepage}
}
% Back cover page
\newcommand{\backcoverpage}
{
\newpage
\thispagestyle{empty}
\newgeometry{top=0cm,bottom=0cm,left=0cm,right=0cm}
\includegraphics{_backbanner_EPL-master-thesis.pdf}
}
\endinput