summaryrefslogtreecommitdiff
path: root/document.sty
diff options
context:
space:
mode:
authorzaikoslorandaf <sarah@gosselin.xyz>2024-09-11 02:22:37 -0400
committerzaikoslorandaf <sarah@gosselin.xyz>2024-09-11 02:22:37 -0400
commitd399556ddf48e6447e6019d8d5158864ad105f98 (patch)
treeeb28b744424001bfeb306d243de46383039b7779 /document.sty
parente3cc0120f17452a7f210b821ac22edd8282724c0 (diff)
packages in folder not working with overleaf
Diffstat (limited to 'document.sty')
-rw-r--r--document.sty51
1 files changed, 45 insertions, 6 deletions
diff --git a/document.sty b/document.sty
index f4ea5c2..ffc8c7c 100644
--- a/document.sty
+++ b/document.sty
@@ -1,6 +1,5 @@
\ProvidesPackage{document}
-
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
% Packages %
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
@@ -16,21 +15,37 @@
\RequirePackage{pdfpages} % Allow to add pdf documents to your latex file
\RequirePackage{hyperref} % Allow references and hyperlinks
+% Useful packages for engineering students
+\RequirePackage{amsmath} % Mathematics environments
+\RequirePackage{amssymb} % Mathematical symbols
+\RequirePackage{siunitx} % SI Units
+\RequirePackage{cleveref} % To make eqation reference better
+
% Allows the creations of appendices
\RequirePackage[title,toc,titletoc,page]{appendix}
+
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
-% Headers/Footers %
+% 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}
-%\let\oldhref\href
-%\renewcommand{\href}[2]{\oldhref{#1}{\bfseries#2}}
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Hyperlinks management %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+
+\let\oldhref\href
+\renewcommand{\href}[2]{\oldhref{#1}{\bfseries#2}}
\hypersetup{
colorlinks=true,
- linkcolor=cyan,
- filecolor=magenta,
+ linkcolor=black,
+ filecolor=black,
urlcolor=gray,
pdfpagemode=FullScreen,
}
@@ -78,3 +93,27 @@
\renewcommand{\thefigure}{\thesection-\arabic{figure}}
\renewcommand{\thetable}{\thesection-\arabic{table}}
+\usepackage{csquotes}
+\usepackage[style=numeric,backend=biber,sorting=nty]{biblatex}
+\DeclareNameAlias{author}{family-given} % Display the Bibliography as: Surename, Name
+\addbibresource{references.bib}
+
+
+% Caption
+\usepackage{capt-of}
+
+% Page layout
+%\pagestyle{fancy}
+\lhead{\suni\hseparator\studyprogram}
+\rhead{\doctitle}
+
+
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+% Appendix %
+%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
+\RequirePackage[title,toc,titletoc,page]{appendix}
+
+\addto\captionsfrench{%
+ \renewcommand\appendixname{Annexe}
+ \renewcommand\appendixpagename{Annexe}
+}