summaryrefslogtreecommitdiff
path: root/annexe/document.sty
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-03 15:06:56 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-03 15:06:56 -0500
commite0f1130bef12f7844cf61e0c7e7c0c7eeb02185e (patch)
treef11e702bbd707489cdbb041dd58ae460ff982f29 /annexe/document.sty
parentc219bf1c73801aed35bc70771cc2e6d80cd3264a (diff)
Batman
Diffstat (limited to 'annexe/document.sty')
-rw-r--r--annexe/document.sty72
1 files changed, 72 insertions, 0 deletions
diff --git a/annexe/document.sty b/annexe/document.sty
new file mode 100644
index 0000000..cc7e06b
--- /dev/null
+++ b/annexe/document.sty
@@ -0,0 +1,72 @@
+\ProvidesPackage{document}
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Packages %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+% 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[T1]{fontenc} % French compatibility
+\RequirePackage{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
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% 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}
+% Use french commas when writing numbers
+\sisetup{locale=FR}
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Line Spacing %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+% Set 1.5 linespacing for the document
+\onehalfspacing
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Figures/Tables %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+% Count within sections (third table of section 5 would be Table 5.3)
+\counterwithin{figure}{section}
+\counterwithin{table}{section}
+% Separate section number from fig/table with a hyphen (5-3 instead of 5.3)
+\renewcommand{\thefigure}{\thesection-\arabic{figure}}
+\renewcommand{\thetable}{\thesection-\arabic{table}}
+