summaryrefslogtreecommitdiff
path: root/annexe/titlepage.sty
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-03 15:06:56 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-03 15:06:56 -0500
commite0f1130bef12f7844cf61e0c7e7c0c7eeb02185e (patch)
treef11e702bbd707489cdbb041dd58ae460ff982f29 /annexe/titlepage.sty
parentc219bf1c73801aed35bc70771cc2e6d80cd3264a (diff)
Batman
Diffstat (limited to 'annexe/titlepage.sty')
-rw-r--r--annexe/titlepage.sty69
1 files changed, 69 insertions, 0 deletions
diff --git a/annexe/titlepage.sty b/annexe/titlepage.sty
new file mode 100644
index 0000000..72caa5b
--- /dev/null
+++ b/annexe/titlepage.sty
@@ -0,0 +1,69 @@
+\ProvidesPackage{titlepage}[
+Sherbrooke Engineering Title Page by Benjamin Chausse
+]
+\RequirePackage{setspace}
+\RequirePackage{tabularx}
+\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*{\class}[1]{\gdef\@class{#1}}
+\newcommand*{\classnb}[1]{\gdef\@classnb{#1}}
+\newcommand*{\presentation}[1]{\gdef\@presentation{#1}}
+\newcommand*{\teacher}[1]{\gdef\@teacher{#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 électrique et de génie informatique}
+\renewcommand*{\@title}{Titre du document}
+\newcommand*{\@class}{Mathématiques des circuits logiques}
+\newcommand*{\@classnb}{GEN420}
+\newcommand*{\@presentation}{Présenté à}
+\newcommand*{\@teacher}{Prénom Nom}
+\renewcommand*{\@author}{Prénom Nom -- CIP}
+\newcommand*{\@location}{Sherbrooke}
+
+% Simple Macro
+\newcommand{\usp}{\unskip\strut\par}
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Updated Title Page Template %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+\renewcommand*{\maketitle}{
+\begin{titlepage}
+ % \centering\LARGE\setstretch{.7}
+ \centering\normalsize
+
+ {\MakeUppercase{\@institution}\usp}
+ {\@faculty\usp}
+ {\@department}
+ \vfill
+
+ {\LARGE{\@title}}
+ \vfill
+
+ {\@class\usp}
+ {\@classnb}
+ \vfill
+
+ {\@presentation\usp}
+ {\@teacher}
+ \vfill
+
+ {Présenté par\usp}
+ {\@author}
+ \vfill
+
+ {\large \@location\ -- \@date\usp}
+\end{titlepage}
+}