From b6ec0066b425fecc5dc2d1f8acd68140090c7c69 Mon Sep 17 00:00:00 2001 From: Sarah Gosselin Date: Sat, 31 Aug 2024 22:09:45 -0400 Subject: Placed the 'tools' inside a folder --- bibliography.sty | 5 ----- document.sty | 2 -- engineering.sty | 20 -------------------- french.sty | 28 ---------------------------- main.tex | 27 ++++++++++++++++----------- toolbox.sty | 33 --------------------------------- tools/bibliography.sty | 5 +++++ tools/engineering.sty | 20 ++++++++++++++++++++ tools/french.sty | 28 ++++++++++++++++++++++++++++ tools/toolbox.sty | 33 +++++++++++++++++++++++++++++++++ 10 files changed, 102 insertions(+), 99 deletions(-) delete mode 100644 bibliography.sty delete mode 100644 engineering.sty delete mode 100644 french.sty delete mode 100644 toolbox.sty create mode 100644 tools/bibliography.sty create mode 100644 tools/engineering.sty create mode 100644 tools/french.sty create mode 100644 tools/toolbox.sty diff --git a/bibliography.sty b/bibliography.sty deleted file mode 100644 index 4022162..0000000 --- a/bibliography.sty +++ /dev/null @@ -1,5 +0,0 @@ - -\ProvidesPackage{bibliography} -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Packages % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% diff --git a/document.sty b/document.sty index f33e91d..29d5ac8 100644 --- a/document.sty +++ b/document.sty @@ -7,8 +7,6 @@ % Margin Setup according to University methodology: \RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry} -% IEEE references & bibliography -\RequirePackage[style=ieee]{biblatex} \RequirePackage{fancyhdr} % Footer customisation \RequirePackage{booktabs} % Elegant tables \RequirePackage{float} % Accurate positionning of figures diff --git a/engineering.sty b/engineering.sty deleted file mode 100644 index 74d5b62..0000000 --- a/engineering.sty +++ /dev/null @@ -1,20 +0,0 @@ -\ProvidesPackage{engineering} -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Packages % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Useful packages for engineering students -\RequirePackage{amsmath} % Mathematics environments -\RequirePackage{amssymb} % Mathematical symbols -\RequirePackage{siunitx} % SI Units -\RequirePackage[french]{cleveref} % To make eqation reference better - - - -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Equations/Math % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Number equation with section number (ex: First equation in section 3 is 3.1) -\numberwithin{equation}{section} -% Use french commas when writing numbers -\sisetup{locale=FR} - diff --git a/french.sty b/french.sty deleted file mode 100644 index 9e67a50..0000000 --- a/french.sty +++ /dev/null @@ -1,28 +0,0 @@ -\ProvidesPackage{french} -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Packages % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% - -\RequirePackage[utf8]{inputenc} % Sensible text encoding -\RequirePackage[T1]{fontenc} % French compatibility -\RequirePackage[french]{babel} % French document environment -\RequirePackage[french]{cleveref} % To make eqation reference better - - - - -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% French Table Naming % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Sets the "Table - xx" to "Tableau - xx" -\renewcommand{\frenchtablename}{Tableau} -\renewcommand{\thetable}{\thesection-\arabic{table}} - -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% French Table Naming % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Sets "Appendix" to "Annexe" -\addto\captionsfrench{ - \renewcommand\appendixname{Annexe} - \renewcommand\appendixpagename{Annexe} -} diff --git a/main.tex b/main.tex index 0b603a0..d12b96d 100644 --- a/main.tex +++ b/main.tex @@ -6,37 +6,42 @@ \usepackage[french]{babel} % Optional packages and tools (Uncomment to your needs) +\usepackage{tools/bibliography} \usepackage{tools/toolbox} \usepackage{tools/engineering} \usepackage{tools/french} -\usepackage{tools/bibliography} % \addbibresource{bibliography.bib} % \nofiles -% \institution{Université de Sherbrooke} -% \faculty{Faculté de génie} -% \department{Département de génie électrique et de génie informatique} +\institution{Université de Sherbrooke} +\faculty{Faculté de...} +\department{Département de...} \title{Titre du document} -\classnb{GEN420} -\class{Mathématiques des circuits logiques} +\class{Nom du cour} +\classnb{ABC123} \author{ \addtolength{\tabcolsep}{-0.4em} \begin{tabular}{rcl} % Ajouter des auteurs au besoin Prénom Nom & -- & CIP \\ + %Prénom2 Nom & -- & CIP \\ \end{tabular} } -% \teacher{Benjamin Chausse} -% \location{Sherbrooke} -% \date{\today} +\teacher{John Doe} +\location{Sherbrooke} +\date{\today} \begin{document} \maketitle \newpage -% \tableofcontents -% \newpage +\tableofcontents +\newpage +\section{This is the first section} +This is some text... +\subsection{This is a subsection} +This is some more text! % \newpage % \printbibliography[heading=bibintoc] diff --git a/toolbox.sty b/toolbox.sty deleted file mode 100644 index 9231c82..0000000 --- a/toolbox.sty +++ /dev/null @@ -1,33 +0,0 @@ - -\ProvidesPackage{toolbox} -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Required Packages for the Module % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -\RequirePackage{xcolor} % Addition of colors and color boxes - -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% Useful Functions for Team Work % -%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% -% The following should NEVER apprear in a final document. -% -% Their goal is to provide a better team work experience by adding -% colorful/highlighted keywords into the pdfdocument. - - -%% Usage (These function require a user input) -% \todo{Something to be done...} -% \note{A note to communicate to your team} -% \fixme{An error you wish to higlight for later fix} - -\newcommand{\todo}[1]{\colorbox{red}{\textbf{TODO}:}#1} -\newcommand{\note}[1]{\colorbox{orange}{\textbf{NOTE}:}#1} -\newcommand{\fixme}[1]{\colorbox{purple}{\textbf{FIXME}:}#1} - -%% Usage (These function DON'T require a user input) -% \addref --> Displays "addref" highlighted in magenta -% \addcite --> Displays "addcite" highlighted in magenta -% \addimg --> Displays "addimg" highlighted in cyan -\newcommand{\addref}{\colorbox{magenta}{add ref}} -\newcommand{\addcite}{\colorbox{magenta}{add citation}} -\newcommand{\addimg}{\colorbox{cyan}{add image!}} - diff --git a/tools/bibliography.sty b/tools/bibliography.sty new file mode 100644 index 0000000..4022162 --- /dev/null +++ b/tools/bibliography.sty @@ -0,0 +1,5 @@ + +\ProvidesPackage{bibliography} +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Packages % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% diff --git a/tools/engineering.sty b/tools/engineering.sty new file mode 100644 index 0000000..74d5b62 --- /dev/null +++ b/tools/engineering.sty @@ -0,0 +1,20 @@ +\ProvidesPackage{engineering} +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Packages % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Useful packages for engineering students +\RequirePackage{amsmath} % Mathematics environments +\RequirePackage{amssymb} % Mathematical symbols +\RequirePackage{siunitx} % SI Units +\RequirePackage[french]{cleveref} % To make eqation reference better + + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Equations/Math % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Number equation with section number (ex: First equation in section 3 is 3.1) +\numberwithin{equation}{section} +% Use french commas when writing numbers +\sisetup{locale=FR} + diff --git a/tools/french.sty b/tools/french.sty new file mode 100644 index 0000000..9e67a50 --- /dev/null +++ b/tools/french.sty @@ -0,0 +1,28 @@ +\ProvidesPackage{french} +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Packages % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% + +\RequirePackage[utf8]{inputenc} % Sensible text encoding +\RequirePackage[T1]{fontenc} % French compatibility +\RequirePackage[french]{babel} % French document environment +\RequirePackage[french]{cleveref} % To make eqation reference better + + + + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% French Table Naming % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Sets the "Table - xx" to "Tableau - xx" +\renewcommand{\frenchtablename}{Tableau} +\renewcommand{\thetable}{\thesection-\arabic{table}} + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% French Table Naming % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Sets "Appendix" to "Annexe" +\addto\captionsfrench{ + \renewcommand\appendixname{Annexe} + \renewcommand\appendixpagename{Annexe} +} diff --git a/tools/toolbox.sty b/tools/toolbox.sty new file mode 100644 index 0000000..9231c82 --- /dev/null +++ b/tools/toolbox.sty @@ -0,0 +1,33 @@ + +\ProvidesPackage{toolbox} +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Required Packages for the Module % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +\RequirePackage{xcolor} % Addition of colors and color boxes + +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% Useful Functions for Team Work % +%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~% +% The following should NEVER apprear in a final document. +% +% Their goal is to provide a better team work experience by adding +% colorful/highlighted keywords into the pdfdocument. + + +%% Usage (These function require a user input) +% \todo{Something to be done...} +% \note{A note to communicate to your team} +% \fixme{An error you wish to higlight for later fix} + +\newcommand{\todo}[1]{\colorbox{red}{\textbf{TODO}:}#1} +\newcommand{\note}[1]{\colorbox{orange}{\textbf{NOTE}:}#1} +\newcommand{\fixme}[1]{\colorbox{purple}{\textbf{FIXME}:}#1} + +%% Usage (These function DON'T require a user input) +% \addref --> Displays "addref" highlighted in magenta +% \addcite --> Displays "addcite" highlighted in magenta +% \addimg --> Displays "addimg" highlighted in cyan +\newcommand{\addref}{\colorbox{magenta}{add ref}} +\newcommand{\addcite}{\colorbox{magenta}{add citation}} +\newcommand{\addimg}{\colorbox{cyan}{add image!}} + -- cgit v1.2.3