-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tex
102 lines (80 loc) · 2.5 KB
/
config.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
%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{blindtext} % For the purpose of the template. Erase this in your doc.
% --- Font & Enconding options ---
%\usepackage[utf8]{luainputenc} % for lualatex. XeteX is usually faster.
%\usepackage{xetex-inputenc}
\usepackage{lmodern}
\usepackage{fontspec}
\renewcommand*\familydefault{\sfdefault}
\usepackage{microtype} %Recommended to activate only for final document
% --- Language options ---
\usepackage{polyglossia}
\setdefaultlanguage{english}
% --- Graphics and symbols ---
\usepackage{color}
\definecolor{blue} {cmyk}{1 , 1 , 0 , 0 }
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[
plainpages=false,
pdfpagelabels,
bookmarksnumbered,%
bookmarksopen,
colorlinks=true,%
linkcolor=blue,%
citecolor=blue,%
filecolor=blue,%
urlcolor=blue,%
]{hyperref}
% --- Environments & Commands ---
\usepackage{booktabs}
\usepackage[round,authoryear]{natbib}
\usepackage{epigraph}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{flafter}
\usepackage{subcaption}
\usepackage[nomain,acronym,toc,xindy={codepage=utf8}]{glossaries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% New Commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Note : The part style is really sketchy as of now, feel free to submit something cleaner ! (perfectly functional though)
\setlength\epigraphwidth{0.3\paperwidth}
\epigraphfontsize{\normalsize}
\renewcommand{\textflush}{flushleftright}
\newlength{\partboxlength}
\setlength{\partboxlength}{\paperwidth}
\addtolength{\partboxlength}{-\linewidth}
\renewcommand*{\thepart}{\arabic{part}}
\renewcommand*{\parttitlefont}{\raggedleft\normalfont\Huge\MakeUppercase}
\renewcommand*{\beforepartskip}{\null\vskip 0pt plus 0.4fil}
\renewcommand*{\printparttitle}[1]{%
\begin{tabular}{b{\linewidth}b{\partboxlength}}
\parttitlefont{#1} & \hspace{1em} \rule{0.5em}{8em} \hspace{0.5em} \rule{8em}{8em}
\end{tabular}
}
\newcommand{\epipart}[3]{
\let\oldafterpartskip\afterpartskip
\renewcommand{\afterpartskip}{%
\vspace{1em}
\epigraph{#2}{#3}
\vfill
}
\part*{#1}
\let\afterpartskip\oldafterpartskip
}
% *************** Graphic Files ***************
\graphicspath{
{./img/},
}
%*************** Glossaries ***************
\newglossary{symbols}{sym}{sbl}{List of Symbols}
\makeglossaries
%*************** Table of content settings ***************
\setsecnumdepth{section}
\maxtocdepth{subsection}
\cftsetindents{subsection}{4.5em}{3.9em}
%\cftnodots
\renewcommand{\cftsubsectionfont}{\small}