summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Gosselin <sarah@gosselin.xyz>2024-08-31 18:55:10 -0400
committerSarah Gosselin <sarah@gosselin.xyz>2024-08-31 18:55:10 -0400
commit97e28a5d19b37d3221340589f3184354f5479dc4 (patch)
tree862c1692126945a4f718e3e04d0ba42817bca6c4
parent1393c2e5ba096969a68c800ec593ed9e6bf2294d (diff)
Remodels the template
-rw-r--r--document.sty7
-rw-r--r--engineering.sty3
-rw-r--r--french.sty28
-rw-r--r--main.tex5
4 files changed, 37 insertions, 6 deletions
diff --git a/document.sty b/document.sty
index 33a58b1..f33e91d 100644
--- a/document.sty
+++ b/document.sty
@@ -9,10 +9,6 @@
\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[french]{cleveref} % To make eqation reference better
\RequirePackage{fancyhdr} % Footer customisation
\RequirePackage{booktabs} % Elegant tables
\RequirePackage{float} % Accurate positionning of figures
@@ -20,6 +16,9 @@
\RequirePackage{setspace} % Line spacing
\RequirePackage{pdfpages} % Allow to add pdf docs to your latex file
+% Allows the creations of appendices
+\RequirePackage[title,toc,titletoc,page]{appendix}
+
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Headers/Footers %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
diff --git a/engineering.sty b/engineering.sty
index 021db19..74d5b62 100644
--- a/engineering.sty
+++ b/engineering.sty
@@ -5,7 +5,8 @@
% Useful packages for engineering students
\RequirePackage{amsmath} % Mathematics environments
\RequirePackage{amssymb} % Mathematical symbols
-\RequirePackage{siunitx} % SI Units
+\RequirePackage{siunitx} % SI Units
+\RequirePackage[french]{cleveref} % To make eqation reference better
diff --git a/french.sty b/french.sty
new file mode 100644
index 0000000..9e67a50
--- /dev/null
+++ b/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/main.tex b/main.tex
index b75d627..0b603a0 100644
--- a/main.tex
+++ b/main.tex
@@ -6,7 +6,10 @@
\usepackage[french]{babel}
% Optional packages and tools (Uncomment to your needs)
-% \usepackage{toolbox}
+\usepackage{tools/toolbox}
+\usepackage{tools/engineering}
+\usepackage{tools/french}
+\usepackage{tools/bibliography}
% \addbibresource{bibliography.bib}
% \nofiles