summaryrefslogtreecommitdiff
path: root/document.sty
blob: f33e91d9487b0119df6cb8a165c0ce4a536fa9b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
\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{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

% Allows the creations of appendices
\RequirePackage[title,toc,titletoc,page]{appendix}

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
%                               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}{}



%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%
%                                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}}