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
|
%%% Geometry
\usepackage[margin=1.2cm,bottom=1.7cm]{geometry}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5em}
\setcounter{secnumdepth}{-1}
\usepackage{enumitem}
\setlist{nosep,leftmargin=3ex}
%%% Styles
\pagestyle{plain}
%\chapterstyle{section}
%\setlength{\columnseprule}{0.4pt}
%\setlength{\columnsep}{3em}
%\renewcommand{\maketitle}{}
\usepackage{placeins}
\usepackage{etoolbox}
%\pretocmd{\section}{\clearpage}{}{}
\pretocmd{\section}{\FloatBarrier}{}{}
%%% Fonts
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage{tgpagella}
%\usepackage[sfdefault]{overlock}
\usepackage{Alegreya}
%\usepackage[sfdefault]{AlegreyaSans}
%\usepackage[urw-garamond]{mathdesign}
%\usepackage{ebgaramond}
%\usepackage{palatino}
\newcommand\troika{}
\else % if luatex or xelatex
\ifxetex
\usepackage{mathspec}
\else
\usepackage{fontspec}
\fi
%\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
%\setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}
\setmainfont{Alegreya Sans}
%\newfontfamily\troika[ItalicFont={Troika},BoldFont={Troika},BoldItalicFont={Troika}]{Troika}
%\newfontfamily\troika{Troika}
\newfontfamily\troika{Alegreya}
%\usepackage[no-sscript]{xltxtra} % loads fixltx2e, metalogo, xunicode, fontspec
%\setmainfont{Linux Libertine O}
%\setsansfont{Linux Biolinum O}
%\setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}
\fi
%%% Colors
\usepackage[table]{xcolor}
%\definecolor{indigo}{RGB}{75,0,130}
\definecolor{indigo}{RGB}{9,31,146}
\definecolor{myblue}{RGB}{6,69,173}
\hypersetup{
colorlinks=true,
linkcolor=myblue,
urlcolor=myblue,
filecolor=myblue
}
%\usepackage{titlesec}
%%\titleformat{\chapter}[display]
%% {\normalfont\sffamily\huge\bfseries\color{blue}}
%% {\chaptertitlename\ \thechapter}{20pt}{\Huge}
%\titleformat{\section}
% {\normalfont\sffamily\Large\troika}
% {\thesection}{1em}{}
%\titleformat{\section}
% {\normalfont\sffamily\Large\troika}
% {\thesection}{1em}{}
\renewcommand{\maketitle}{
\begin{center}
\troika{\fontsize{45}{40}\selectfont\@title}
\vspace{1em}
\end{center}
}
%% Change section styles
\makeatletter
\renewcommand{\section}{\@startsection
{section}% % the name
{1}% % the level
{\z@}% % the indent / 0mm
{-0.5\baselineskip}% % the before skip
{0.2\baselineskip}% % the after skip
{\troika\Huge\selectfont\scshape}} % the style
\renewcommand{\subsection}{\@startsection
{subsection}% % the name
{2}% % the level
{\z@}% % the indent / 0mm
{-0.2\baselineskip}% % the before skip
{0.15\baselineskip}% % the after skip
{\Large\scshape}} % the style
\renewcommand{\subsubsection}{\@startsection
{subsubsection}% % the name
{3}% % the level
{\z@}% % the indent / 0mm
{-0.2\baselineskip}% % the before skip
{0.005\baselineskip}% % the after skip
{\large\bfseries}} % the style
\makeatother
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\troika\Large\thepage}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
%%% Figures
\usepackage{caption}
\captionsetup[figure]{labelformat=empty,labelsep=none,textfont={small,it}}
%\renewcommand{\thefigure}{\arabic{figure}}
%%% Index
\usepackage{makeidx}
\makeindex
\AtEndDocument{\printindex}
%%% Special characters
\usepackage{pifont}
\usepackage{newunicodechar}
\newunicodechar{✓}{\ding{51}} % OK
\newunicodechar{✗}{\ding{55}} % XX
\newunicodechar{□}{\ding{113}} % OS
|