-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMySetup.tex
156 lines (149 loc) · 4.42 KB
/
MySetup.tex
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
%% !TEX root = ThesisManuscript_SJ.tex
%%
%%
%% PACKAGES
%%_______________________________________________
%%
%% Basic setup
%%
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais,english]{babel}
\usepackage{amsmath,amssymb,amsthm}
%%
%% Format
%%
\usepackage[usenames,dvipsnames,table]{xcolor}
\usepackage[colorlinks=true,linkcolor=MyBlue,citecolor=MyBlue, urlcolor=MyBlue]{hyperref}
%\usepackage[colorlinks=true,linkcolor=black,citecolor=black, urlcolor=black]{hyperref}
\usepackage{mathrsfs} % RSFS font
\usepackage{nicefrac} % Nice fractions
\usepackage{setspace} %Interlinear space
\usepackage{footnote} % To format footnotes
%\counterwithout{footnote}{chapter}
\usepackage[width=0.9\textwidth,labelfont=bf,textfont=small]{caption}
\captionsetup[table]{font={stretch=1.2}}
\captionsetup[figure]{font={stretch=1.2}}
\usepackage{setspace} \linespread{1.5} % Interlinear space
%\usepackage{lineno} % Line numbers
%%
%% Biblio layout
%%
\usepackage{natbib}
\setcitestyle{authoryear,open={(},close={)}}
%%
%% Elements
%%
\usepackage{graphicx} % To insert figures
\usepackage{float}
\usepackage{array} % Arrays
\usepackage{booktabs} % Nice tables
\usepackage{multirow}
\usepackage[final]{pdfpages} % To insert pdfs
\usepackage{appendix}
\usepackage{enumitem}
\usepackage{eurosym}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{longtable}
%%
%% Pages layout
%%
\usepackage{fancyhdr}
\setlength{\headheight}{26pt}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.05pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhf{}
\fancypagestyle{plain}{
\fancyhead[LE,RO]{\textcolor{black}{\thepage}}
\fancyhead[RE,LO]{}
\renewcommand{\headrulewidth}{0pt}
}
\fancypagestyle{other}{
\fancyhead[LE,RO]{\textcolor{black}{\thepage}}
% \fancyhead[RE]{}
\fancyhead[RE,LO]{\textcolor{black}{\small \leftmark}}
}
\fancypagestyle{none}{
\fancyfoot[LE,RO]{}
\fancyhead[RE,RO]{}
}
\fancypagestyle{chapters}{
\fancyhead[LE,RO]{\textcolor{black}{\thepage}}
\fancyhead[RE]{\small CHAPTER \thechapter}
\fancyhead[LO]{\textcolor{black}{\small \leftmark}}
}
\fancypagestyle{appendices}{
\fancyhead[LE,RO]{\textcolor{black}{\thepage}}
\fancyhead[RE]{\small APPENDIX \thesection}
\fancyhead[LO]{\textcolor{black}{\small \leftmark}}
}
\fancypagestyle{biblio}{
\fancyhead[LE,RO]{\textcolor{black}{\thepage}}
\fancyhead[RE,LO]{\textcolor{black}{\small \leftmark}}
}
\usepackage{afterpage}
\usepackage{lscape}
%%
%% LOF layout
%%
\usepackage{chngcntr} % To number figures within sections
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
%%%
%%% Formatting titles
%%%
%\usepackage[explicit]{titlesec}
%
%\titleformat{name=\chapter}[display]%
%{\huge \bfseries}%
%{\textcolor{MyBlue}{\chaptertitlename \ \thechapter \\ #1}}%
%{12pt}{}
%
%\titleformat{name=\chapter,numberless}[display]%
%{\huge \bfseries}%
%{\textcolor{MyBlue}{#1}}%
%{0pt}{}
%
%\titlespacing*{\chapter}{0pt}{0pt}{0pt}
%%_______________________________________________
%%
%% COMMANDS
%%_______________________________________________
%% Theorems
\newtheorem{prop}{Proposition}
\newtheorem{defi}{Definition}
\newtheorem{propi}{Property}
%%
%% Hyperrefs
%%
\renewcommand\thealgorithm{\thechapter.\arabic{algorithm}}
\renewcommand\tablename{\textsc{Table}}
\newcommand{\algoref}[1]{\hyperref[#1]{algorithm~\ref{#1}}}
\renewcommand{\eqref}[1]{\hyperref[#1]{eq.~(\ref{#1})}}
\newcommand{\figref}[1]{\hyperref[#1]{fig.~\ref{#1}}}
\newcommand{\tablesref}[1]{\hyperref[#1]{tables~\ref{#1}}}
\newcommand{\chapref}[1]{\hyperref[#1]{chapter~\ref{#1}}}
\newcommand{\secref}[1]{\hyperref[#1]{section~\ref{#1}}}
\newcommand{\sectionsref}[1]{\hyperref[#1]{sections~\ref{#1}}}
\newcommand{\propref}[1]{\hyperref[#1]{proposition~\ref{#1}}}
\newcommand{\apxref}[1]{\hyperref[#1]{Appendix~\ref{#1}}}
\newcommand{\figuresref}[1]{\hyperref[#1]{figs.~\ref{#1}}}
\newcommand{\eqsref}[2]{\hyperref[#1]{eqs.~(\ref{#1})--(\ref{#2})}}
\newcommand{\subfigref}[2]{\hyperref[#1]{fig.~\ref*{#1}#2}}
\newcommand{\artref}[2]{#1 of~\secref{#2}}
\newcommand{\tableref}[1]{\hyperref[#1]{table~\ref{#1}}}
\def\sectionautorefname{Section}
\def\subsectionautorefname{Section}
\def\subsubsectionautorefname{Section}
\newcommand*{\nolink}[1]{\begin{NoHyper}#1\end{NoHyper}}
%%
%% ToC
%%
\setcounter{secnumdepth}{2} % 3 To number subsubsections
\setcounter{tocdepth}{2} % 3 To show the subsubsections in the ToC
%%
%% Load color definitions
%%
\input{MyColors}