-
Notifications
You must be signed in to change notification settings - Fork 1
/
cv-header.tex
67 lines (57 loc) · 1.6 KB
/
cv-header.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
% load packages
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{eso-pic} % used for color margin placement
\usepackage{sectsty}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{hyperref}
%% remove page numbering
\pagenumbering{gobble}
%% Define colours
\definecolor{light}{HTML}{ebfce6}
\definecolor{highlight}{HTML}{ebfce6}
\definecolor{dark}{HTML}{330033}
\definecolor{links}{HTML}{238b45}
%% Draw the coloured margin on the right side
\AddToShipoutPicture{%
\AtPageLowerLeft{%
\put(\LenToUnit{\dimexpr\paperwidth-60mm},0){%
\color{light}\rule{60mm}{\LenToUnit\paperheight}%
}%
}%
}
%% style the chapter/section fonts
\chapterfont{\color{dark}\fontsize{20}{16.8}\selectfont}
\sectionfont{\color{dark}\fontsize{20}{16.8}\selectfont}
\subsectionfont{\color{dark}\fontsize{14}{16.8}\selectfont}
\titleformat{\subsection}
{\sffamily\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}]
% left align title
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
{\sffamily\huge\textbf{\MakeUppercase{\@title}}} \vspace{0.3cm} \newline
{\Large {\@subtitle}} \newline
\@author
\end{flushleft}\egroup
}
\makeatother
%% Use custom fonts
\setsansfont{Montserrat}[
Path=_fonts/Montserrat/static/,
Scale=0.9,
Extension = .ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
]
\setmainfont{OpenSans}[
Path=_fonts/OpenSans/static/,
Scale=0.9,
Extension = .ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,,
BoldItalicFont=*-BoldItalic,
]