summaryrefslogtreecommitdiff
path: root/titlepage.sty
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2021-05-23 01:57:12 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2021-05-23 01:57:12 -0400
commita973093b212a8c790ce4b5a66efee51455020c0c (patch)
treebbc0e325a7e9b253d4779bd2f221fa4003e4f3ac /titlepage.sty
Gabarit méthodologique Sherbrooke v1.0
Diffstat (limited to 'titlepage.sty')
-rw-r--r--titlepage.sty76
1 files changed, 76 insertions, 0 deletions
diff --git a/titlepage.sty b/titlepage.sty
new file mode 100644
index 0000000..037f3cd
--- /dev/null
+++ b/titlepage.sty
@@ -0,0 +1,76 @@
+\ProvidesPackage{titlepage}[2020/05/21 v.01 Sherbrooke titlepage
+by Benjamin Chausse]
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Define Labels %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+\newcommand*{\institution}[1]{\gdef\@institution{#1}}
+\newcommand*{\faculty}[1]{\gdef\@faculty{#1}}
+\newcommand*{\department}[1]{\gdef\@department{#1}}
+\newcommand*{\classnb}[1]{\gdef\@classnb{#1}}
+\renewcommand*{\description}[1]{\gdef\@description{#1}}
+\renewcommand*{\author}[1]{\gdef\@author{#1}}
+\newcommand*{\location}[1]{\gdef\@location{#1}}
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Initial Values %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+\newcommand*{\@institution}{Université de Sherbrooke}
+\newcommand*{\@faculty}{Faculté de génie}
+\newcommand*{\@department}{Département de génie mécanique}
+\newcommand*{\@classnb}{\ }
+\newcommand*{\@description}{\ }
+\renewcommand*{\@title}{Titre du document}
+\renewcommand*{\@author}{Benjamin CHAUSSE}
+\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}
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Title Page %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+\renewcommand*{\maketitle}{
+ \begin{titlepage}
+ \centering
+ {\LARGE\MakeUppercase\@institution}\par
+ {\Large\@faculty}\par
+ {\@department}\par
+ \vfill
+ {\Huge\@title}
+ \vfill
+ {\Large\@classnb}
+ \ {\Large\@description}
+ \vfill
+ \ {\Large\@author}
+ \vfill
+ {\Large\@location}\par
+ \vspace{.5cm}
+ {\Large\MONTH\ \the\year}
+ \vspace{1cm}
+ \end{titlepage}
+}
+\endinput