summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Gosselin <sarah@gosselin.xyz>2024-08-31 16:36:02 -0400
committerSarah Gosselin <sarah@gosselin.xyz>2024-08-31 16:36:02 -0400
commitaa4728c113606630e022a3a34108bb667dbc2610 (patch)
treeaad19d1c3c2da6187762081ca3aac01b74bd224d
parent00298b4b95e48e8fdbc7fa37457f9ebb305bab24 (diff)
Starting linUS LaTeX template
-rw-r--r--bibliography.sty5
-rw-r--r--document.sty30
-rw-r--r--engineering.sty19
-rw-r--r--main.tex14
-rw-r--r--toolbox.sty33
5 files changed, 78 insertions, 23 deletions
diff --git a/bibliography.sty b/bibliography.sty
new file mode 100644
index 0000000..4022162
--- /dev/null
+++ b/bibliography.sty
@@ -0,0 +1,5 @@
+
+\ProvidesPackage{bibliography}
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Packages %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
diff --git a/document.sty b/document.sty
index 511d030..33a58b1 100644
--- a/document.sty
+++ b/document.sty
@@ -9,17 +9,16 @@
\RequirePackage[top=2.5cm,bottom=2.5cm,inner=3cm,outer=2.5cm]{geometry}
% IEEE references & bibliography
\RequirePackage[style=ieee]{biblatex}
-\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[T1]{fontenc} % French compatibility
+\RequirePackage[utf8]{inputenc} % Sensible text encoding
+\RequirePackage[french]{babel} % French document environment
+\RequirePackage[french]{cleveref} % To make eqation reference better
+\RequirePackage{fancyhdr} % Footer customisation
+\RequirePackage{booktabs} % Elegant tables
+\RequirePackage{float} % Accurate positionning of figures
+\usepackage{titlesec} % Font sizes for sections/subsection
+\RequirePackage{setspace} % Line spacing
+\RequirePackage{pdfpages} % Allow to add pdf docs to your latex file
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Headers/Footers %
@@ -41,15 +40,6 @@
{\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}
-% Use french commas when writing numbers
-\sisetup{locale=FR}
-
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Line Spacing %
diff --git a/engineering.sty b/engineering.sty
new file mode 100644
index 0000000..021db19
--- /dev/null
+++ b/engineering.sty
@@ -0,0 +1,19 @@
+\ProvidesPackage{engineering}
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Packages %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Useful packages for engineering students
+\RequirePackage{amsmath} % Mathematics environments
+\RequirePackage{amssymb} % Mathematical symbols
+\RequirePackage{siunitx} % SI Units
+
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% 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/main.tex b/main.tex
index ffcb710..b75d627 100644
--- a/main.tex
+++ b/main.tex
@@ -5,8 +5,11 @@
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
+% Optional packages and tools (Uncomment to your needs)
+% \usepackage{toolbox}
+
% \addbibresource{bibliography.bib}
-\nofiles
+% \nofiles
% \institution{Université de Sherbrooke}
% \faculty{Faculté de génie}
@@ -14,7 +17,12 @@
\title{Titre du document}
\classnb{GEN420}
\class{Mathématiques des circuits logiques}
-% \author{Benjamin Chausse -- CIP}
+\author{
+ \addtolength{\tabcolsep}{-0.4em}
+ \begin{tabular}{rcl} % Ajouter des auteurs au besoin
+ Prénom Nom & -- & CIP \\
+ \end{tabular}
+}
% \teacher{Benjamin Chausse}
% \location{Sherbrooke}
% \date{\today}
@@ -28,5 +36,5 @@
% \newpage
-% \printbibliography
+% \printbibliography[heading=bibintoc]
\end{document}
diff --git a/toolbox.sty b/toolbox.sty
new file mode 100644
index 0000000..9231c82
--- /dev/null
+++ b/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!}}
+