blob: 4806e41fee6c0aeb76788a482256b8f3ed1ef447 (
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
|
\ProvidesPackage{titlepage}[
Sherbrooke Engineering Title Page by Benjamin Chausse
]
\RequirePackage{setspace}
\RequirePackage[french]{babel}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Plain Definitions %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
\newcommand*{\institution}[1]{\gdef\@institution{#1}}
\newcommand*{\faculty}[1]{\gdef\@faculty{#1}}
\newcommand*{\department}[1]{\gdef\@department{#1}}
\renewcommand*{\title}[1]{\gdef\@title{#1}}
\newcommand*{\classnb}[1]{\gdef\@classnb{#1}}
\newcommand*{\class}[1]{\gdef\@class{#1}}
\renewcommand*{\author}[1]{\gdef\@author{#1}}
\newcommand*{\location}[1]{\gdef\@location{#1}}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Templated Definitions %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
\newcommand*{\@institution}{Université de Sherbrooke}
\newcommand*{\@faculty}{Faculté de génie}
\newcommand*{\@department}{Département de génie en question}
\renewcommand*{\@title}{Titre du document}
\newcommand*{\@classnb}{EXE 222}
\newcommand*{\@class}{Numéro et nom du cours}
\renewcommand*{\@author}{Prénom NOM}
\newcommand*{\@location}{Sherbrooke (Québec) Canada}
% Simple Macro
\newcommand{\usp}{\unskip\strut\par}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Updated Title Page Template %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
\renewcommand*{\maketitle}{
\begin{titlepage}
\centering\LARGE\setstretch{.7}
{\MakeUppercase{\@institution}\usp}
{\@faculty\usp}
{\@department\usp}
\vfill
{\Huge\MakeUppercase{\@title}}
\vfill
{\@classnb\hspace{.420cm}\@class\usp}
\vfill
{\@author\usp}
\vfill
{\Large \@location\usp}
\vspace{.69cm}
{\Large\@date\par}
\vspace{.420cm}
\end{titlepage}
}
|