commit a973093b212a8c790ce4b5a66efee51455020c0c
Author: Benjamin Chausse <benjamin@chausse.xyz>
Date:   Sun, 23 May 2021 01:57:12 -0400

Gabarit méthodologique Sherbrooke v1.0

Diffstat:
Adocument.sty | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Amain.pdf | 0
Amain.tex | 26++++++++++++++++++++++++++
Atitlepage.sty | 76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 169 insertions(+), 0 deletions(-)

diff --git a/document.sty b/document.sty @@ -0,0 +1,67 @@ +\ProvidesPackage{document} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Packages % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Margin Setup according to University methodology: +\RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry} +\RequirePackage[T1]{fontenc} % French compatibility +\RequirePackage[utf8]{inputenc} % Sensible text encoding +\RequirePackage[french]{babel} % French document environment +\RequirePackage{fancyhdr} % Footer customisation +\RequirePackage{booktabs} % Elegant tables +\RequirePackage{float} % Accurate positionning of figures +\usepackage{titlesec} % Font sizes for sections/subsection +\RequirePackage{amsmath} % Mathematics environments +\RequirePackage{amssymb} % Mathematical symbols +\RequirePackage{siunitx} % SI Units +\RequirePackage{setspace} % Line spacing +\RequirePackage{chngcntr} % Change how to count equations/figures/tables + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Headers/Footers % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +\renewcommand{\footrulewidth}{.5pt} % Line at the bottom +\cfoot{\thepage} % Centered page number (footer) + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Sections % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Font size for section (16) +\titleformat{\section} +{\normalfont\fontsize{16}{19}\bfseries}{\thesection}{1em}{} +% Font size for subsection (14) +\titleformat{\subsection} +{\normalfont\fontsize{14}{17}\bfseries}{\thesubsection}{1em}{} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Equations/Math % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Number equation with section number (ex: First equation in section 3 is 3.1) +\numberwithin{equation}{section} + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Line Spacing % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Set 1.5 linespacing for the document +\onehalfspacing + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Figures/Tables % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +% Count figure within sections (just like equations) +\counterwithin{figure}{section} +% Count table within sections (just like equations) +\counterwithin{table}{section} + diff --git a/main.pdf b/main.pdf Binary files differ. diff --git a/main.tex b/main.tex @@ -0,0 +1,26 @@ +\documentclass[a11paper, 11pt]{article} + +\usepackage{document} +\usepackage{titlepage} +\usepackage[T1]{fontenc} +\usepackage[french]{babel} + + +\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 ./ + +\begin{document} +\maketitle +\newpage +\tableofcontents +\newpage + + + +\end{document} diff --git a/titlepage.sty 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