summaryrefslogtreecommitdiff
path: root/titlepage.sty
diff options
context:
space:
mode:
Diffstat (limited to 'titlepage.sty')
-rw-r--r--titlepage.sty79
1 files changed, 29 insertions, 50 deletions
diff --git a/titlepage.sty b/titlepage.sty
index 037f3cd..77429b4 100644
--- a/titlepage.sty
+++ b/titlepage.sty
@@ -1,76 +1,55 @@
-\ProvidesPackage{titlepage}[2020/05/21 v.01 Sherbrooke titlepage
-by Benjamin Chausse]
-
+\ProvidesPackage{titlepage}[
+Sherbrooke Engineering Title Page by Benjamin Chausse
+]
+\RequirePackage{setspace}
+\RequirePackage[french]{babel}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-% Define Labels %
+% 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}}
-\renewcommand*{\description}[1]{\gdef\@description{#1}}
+\newcommand*{\class}[1]{\gdef\@class{#1}}
\renewcommand*{\author}[1]{\gdef\@author{#1}}
\newcommand*{\location}[1]{\gdef\@location{#1}}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-% Initial Values %
+% Templated Definitions %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-
\newcommand*{\@institution}{Université de Sherbrooke}
\newcommand*{\@faculty}{Faculté de génie}
-\newcommand*{\@department}{Département de génie mécanique}
-\newcommand*{\@classnb}{\ }
-\newcommand*{\@description}{\ }
+\newcommand*{\@department}{Département de génie en question}
\renewcommand*{\@title}{Titre du document}
-\renewcommand*{\@author}{Benjamin CHAUSSE}
+\newcommand*{\@classnb}{EXE 222}
+\newcommand*{\@class}{Numéro et nom du cours}
+\renewcommand*{\@author}{Prénom NOM}
\newcommand*{\@location}{Sherbrooke (Québec) Canada}
-\renewcommand*{\@date}{\the\month, \the\year}
-
-%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-% Customisations %
-%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-
-\newcommand{\MONTH}{%
- \ifcase\the\month
- \or Janvier% 1
- \or Février% 2
- \or Mars% 3
- \or Avril% 4
- \or Mai% 5
- \or Juin% 6
- \or Juillet% 7
- \or Août% 8
- \or Septembre% 9
- \or Octobre% 10
- \or Novembre% 11
- \or Décembre% 12
- \fi}
+% Simple Macro
+\newcommand{\usp}{\unskip\strut\par}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-% Title Page %
+% Updated Title Page Template %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-
\renewcommand*{\maketitle}{
- \begin{titlepage}
- \centering
- {\LARGE\MakeUppercase\@institution}\par
- {\Large\@faculty}\par
- {\@department}\par
+\begin{titlepage}
+ \centering\LARGE\setstretch{.7}
+ {\MakeUppercase{\@institution}\usp}
+ {\@faculty\usp}
+ {\@department\usp}
\vfill
- {\Huge\@title}
+ {\Huge\MakeUppercase{\@title}}
\vfill
- {\Large\@classnb}
- \ {\Large\@description}
+ {\@classnb\hspace{.420cm}\@class\usp}
\vfill
- \ {\Large\@author}
+ {\@author\usp}
\vfill
- {\Large\@location}\par
- \vspace{.5cm}
- {\Large\MONTH\ \the\year}
- \vspace{1cm}
- \end{titlepage}
+ {\Large \@location\usp}
+ \vspace{.69cm}
+ {\Large\@date\par}
+ \vspace{0.420}
+\end{titlepage}
}
-\endinput