-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.tex
170 lines (126 loc) · 8.18 KB
/
structure.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Freeman Curriculum Vitae
% Structure Specification File
% Version 1.0 (19/3/2018)
%
% This template originates from:
% http://www.LaTeXTemplates.com
%
% Authors:
% Vel (vel@LaTeXTemplates.com)
% Alessandro Plasmati
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\usepackage{etoolbox} % Required for conditional statements
\setlength\parindent{0pt} % Stop paragraph indentation
\usepackage{supertabular} % Required for the supertabular environment which allows tables to span multiple pages so sections with tables correctly wrap across pages
%----------------------------------------------------------------------------------------
% DOCUMENT MARGINS
%----------------------------------------------------------------------------------------
\usepackage{geometry} % Required for adjusting page dimensions and margins
\geometry{
hmargin=1.5cm, % Horizontal margin
vmargin=1.75cm, % Vertical margin
a4paper, % Paper size, change to letterpaper for US letter size
%showframe, % Uncomment to show how the type block is set on the page -- typically for debugging
}
%----------------------------------------------------------------------------------------
% COLUMN LAYOUT
%----------------------------------------------------------------------------------------
\usepackage{paracol} % Required for creating multi-column layouts that can span pages automatically
\columnratio{0.55,0.45} % The relative ratios of the two columns in the CV
\setlength\columnsep{0.05\textwidth} % Specify the amount of space between the columns
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
\usepackage{fontspec} % Required for specifying custom fonts under XeLaTeX
\setmainfont{EBGaramond}[ % Make the default font EBGaramond
Path=fonts/, % The font is provided with the template in the fonts folder
UprightFont=*-Regular.ttf,
BoldFont=*-Bold.ttf,
BoldItalicFont=*-BoldItalic.ttf,
ItalicFont=*-Italic.ttf,
SmallCapsFont=*-SC.ttf
]
\newfontfamily\cvtextfont[Path=fonts/]{freebooterscript} % Create a new font family for the cursive font Freebooter Script, provided with the template in the fonts folder
\newfontfamily{\FA}[Path=fonts/]{FontAwesome} % Create a new font family for FontAwesome icons, provided with the template in the fonts folder
\input{fonts/fontawesomesymbols-xeluatex.tex} % Load a file to create shortcuts to the icons, see icon examples and their shortcuts in fontawesome.pdf in the fonts folder
\usepackage[sf,scale=0.95]{libertine} % Load Libertine as a \sffamily font for sans serif titles
%----------------------------------------------------------------------------------------
% COLOURS AND LINKS
%----------------------------------------------------------------------------------------
\usepackage[usenames,svgnames]{xcolor} % Allows the definition and use of custom colours
\definecolor{text}{HTML}{2b2b2b} % Main document font colour, off-black
\definecolor{headings}{HTML}{701112} % Dark red colour for headings
\definecolor{shade}{HTML}{F5DD9D} % Peach colour for the contact information box
\definecolor{linkcolor}{HTML}{641c1d} % 25% desaturated headings colour for links
% Other colour options: shade=B9D7D9 and linkcolor=A40000; shade=D4D7FE and linkcolor=FF0080
% For preset colours that can be used by their names without having to define them, see: https://www.latextemplates.com/svgnames-colors
\color{text} % Set the default text colour for the whole document to the colour defined as 'text' above
%------------------------------------------------
\usepackage{hyperref} % Required for links
\hypersetup{colorlinks, breaklinks, urlcolor=linkcolor, linkcolor=linkcolor} % Set up links and their colours
%----------------------------------------------------------------------------------------
% HEADERS & FOOTERS
%----------------------------------------------------------------------------------------
\usepackage{fancyhdr} % Required for customising headers and footers
\pagestyle{fancy} % Enable custom headers and footers
\fancyhf{} % This suppresses all headers and footers by default, add headers and footers in the template file as per the example
\renewcommand{\headrulewidth}{0pt} % Remove the default rule under the header
%----------------------------------------------------------------------------------------
% SECTIONS
%----------------------------------------------------------------------------------------
\usepackage[nobottomtitles*]{titlesec} % Required for modifying sections, the nobottomtitles* is required for pushing section titles to the next page when they are close to the bottom of the page
\renewcommand{\bottomtitlespace}{0.1\textheight} % Modify the minimal space required from the bottom margin not to move the title to the next page
\titleformat{\section}{\color{headings}\scshape\LARGE\raggedright}{}{0em}{}[\color{black}\titlerule] % Define the \section format
\titlespacing{\section}{0pt}{0pt}{8pt} % Spacing around section titles, the order is: left, before and after
%----------------------------------------------------------------------------------------
% CUSTOM COMMANDS
%----------------------------------------------------------------------------------------
% Command for entering a new work position
\newcommand{\workpositionmain}[6]{
{\raggedleft\textsc{#1\expandafter\ifstrequal\expandafter{#2}{}{}{\hspace{6pt}\footnotesize{(#2)}}}\par} % Duration and conditional full time/part time text
\expandafter\ifstrequal\expandafter{#3}{}{}{{\raggedright\large{\textbf{#3}}}\\[2pt]} % Employer
\expandafter\ifstrequal\expandafter{#4}{}{}{{\raggedright\large #4}\\} % Employer
\expandafter\ifstrequal\expandafter{#5}{}{}{{\raggedright\large\textit{\textbf{#5}}}\\[5pt]} % Job title
\expandafter\ifstrequal\expandafter{#6}{}{}{#6\\} % Description
}
% Command for entering a new work position
\newcommand{\workposition}[5]{
{\raggedleft\textsc{#1\expandafter\ifstrequal\expandafter{#2}{}{}{\hspace{6pt}\footnotesize{(#2)}}}\par} % Duration and conditional full time/part time text
\expandafter\ifstrequal\expandafter{#3}{}{}{{\raggedright\large #3}\\} % Employer
\expandafter\ifstrequal\expandafter{#4}{}{}{{\raggedright\large\textit{\textbf{#4}}}\\[4pt]} % Job title
\expandafter\ifstrequal\expandafter{#5}{}{}{#5\\} % Description
}
% Command for entering a separate qualification
\newcommand{\educationentry}[5]{
\textsc{#1} & \textbf{#2}\\ % Duration and degree
\expandafter\ifstrequal\expandafter{#3}{}{}{& {\small\textsc{#3}}\\} % Honours, achievements or distinctions (e.g. first class honours)
\expandafter\ifstrequal\expandafter{#4}{}{}{& #4\\} % Department
\expandafter\ifstrequal\expandafter{#5}{}{}{& \textit{#5}\\[6pt]} % Institution
}
% Command for entering a separate table row -- used as a generic visual element for any section that uses a two column table
\newcommand{\tableentry}[3]{
\textsc{#1} & #2\expandafter\ifstrequal\expandafter{#3}{}{\\}{\\[6pt]} % First the heading, then content, then a conditional insertion of whitespace if the third parameter has any content in it
}
% Command for entering a long-form description where there is a title on one line and a paragraph description below it
\newcommand{\longformdescription}[2]{
\textit{#1}\\[3pt]
#2\medskip
}
% Command for entering a publication in long-form format
\newcommand{\longformpublication}[1]{
#1\medskip
}
% Command for entering a publication as a short DOI (digital object identifier) string to the publication, a link is automatically created
\newcommand{\doipublication}[4]{
#1 & % Year
\href{http://dx.doi.org/#2}{\expandafter\ifstrequal\expandafter{#3}{firstauthor}{\textbf{doi:#2}}{doi:#2}}% DOI string and if "firstauthor" is entered for the 3rd argument, this makes the DOI string bold indicating a first author publication
\expandafter\ifstrequal\expandafter{#4}{}{\\}{\\[3pt]} % Conditional insertion of whitespace if the 4th parameter has any content in it
}