commit 1534423ae727e72ac579c7144314d37fc1637281
parent a973093b212a8c790ce4b5a66efee51455020c0c
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Wed, 26 Jan 2022 22:55:32 -0500

Template up to standard

Diffstat:
A.gitignore | 13+++++++++++++
Dmain.pdf | 0
Mmain.tex | 21++++++++++-----------
Mtitlepage.sty | 79+++++++++++++++++++++++++++++--------------------------------------------------
4 files changed, 52 insertions(+), 61 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,13 @@ +*.4tc +*.xref +*.tmp +*.pyc +*.pyo +*.fls +*.vrb +*.fdb_latexmk +*.bak +*.swp +*.aux +*.log +*.synctex diff --git a/main.pdf b/main.pdf Binary files differ. diff --git a/main.tex b/main.tex @@ -5,22 +5,21 @@ \usepackage[T1]{fontenc} \usepackage[french]{babel} +\nofiles +% \institution{Université de Sherbrooke} +% \faculty{Faculté de génie} +\department{Département de génie électrique et de génie informatique} \title{Titre du document} -% \author{Benjamin Chausse} -% \classnb{Numéro du cours} -% \description{Description de la tâche} - -% cp $BIB/citations.bib ./ -% cp /home/master/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/titlepage.sty ./ -% cp /home/master/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/startup.sty ./ +\classnb{GEN420} +\class{Mathématiques des circuits logiques} +\author{Benjamin CHAUSSE} +% \location{Sherbrooke (Québec) Canada} \begin{document} \maketitle \newpage -\tableofcontents -\newpage - - +% \tableofcontents +% \newpage \end{document} diff --git 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