-
Notifications
You must be signed in to change notification settings - Fork 0
/
CV-preamble.tex
218 lines (180 loc) · 5.62 KB
/
CV-preamble.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% SIMPLE-RESUME-CV
%% <https://github.com/zachscrivena/simple-resume-cv>
%% This is free and unencumbered software released into the
%% public domain; see <http://unlicense.org> for details.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Long table for page layout.
\usepackage{longtable}
% Geometry package for page margins.
\usepackage[
left=0.70in,
right=0.70in,
top=0.70in,
bottom=0.55in,
nohead,
includefoot]{geometry}
% Hyphenation: Disabled.
\usepackage[none]{hyphenat}
% XeLaTeX packages.
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\usepackage{xunicode}
\usepackage{xltxtra}
% Font: Use "Tinos" as the main typeface (\textnormal{}, \normalfont).
% The "Tinos" fonts are released under the Apache License Version 2.0,
% and can be downloaded for free at <http://www.fontsquirrel.com/fonts/tinos>.
% Symbol table: <http://www.fileformat.info/info/unicode/font/tinos/grid.htm>
\setmainfont
[Path=./Fonts/Tinos/,
ItalicFont=Tinos-Italic,
BoldFont=Tinos-Bold,
BoldItalicFont=Tinos-BoldItalic]
{Tinos-Regular.ttf}
% Sans-serif font: Switched to "Tinos".
\renewcommand{\sffamily}{\rmfamily}
% Typewriter (monospace) font: Switched to "Tinos".
\renewcommand{\ttfamily}{\rmfamily}
% Small caps font: Switched to "Tinos".
\renewcommand{\scshape}{\rmfamily}
% Secondary font: "GNU FreeFont".
% The "GNU FreeFont" fonts are released under the
% GNU General Public License Version 3, and can be downloaded
% for free at <https://savannah.gnu.org/projects/freefont/>.
\newcommand{\UseSecondaryFont}{\fontspec
[Path=./Fonts/GNUFreeFont/,
ItalicFont=FreeSerifItalic,
BoldFont=FreeSerifBold,
BoldItalicFont=FreeSerifBoldItalic]
{FreeSerif.otf}}
% Symbols (unicode).
\newcommand{\BulletSymbol}{{\char"2022}}
\newcommand{\TildeSymbol}{{\char"007E}}
% PDF settings and properties.
\usepackage[usenames, dvipsnames]{color}
\usepackage{color}
\usepackage{hyperref}
% Headers and footers: Blank header, page number in footer.
\makeatletter
\def\ps@plain{%
\def\@oddhead{}%
\def\@evenhead{}%
\def\@oddfoot{\footnotesize\hfill{Page}~{\thepage}~of~\pageref{LastPage}\hfill}%
\def\@evenfoot{\footnotesize\hfill{Page}~{\thepage}~of~\pageref{LastPage}\hfill}}
\makeatother
\pagestyle{plain}
% Paragraph style: No indentation.
\setlength{\parindent}{0in}
% Footnotes: Use symbols instead of numbers for labels.
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% Current date and time.
\usepackage[yyyymmdd,24hr]{datetime}
\renewcommand{\dateseparator}{-}
% {\today}~{\currenttime}
% Abbreviations for months.
\newcommand{\LongMonth}[1]{%
\ifcase#1\relax
\or January%
\or February%
\or March%
\or April%
\or May%
\or June%
\or July%
\or August%
\or September%
\or October%
\or November%
\or December%
\fi}
\newcommand{\ShortMonth}[1]{%
\ifcase#1\relax
\or Jan%
\or Feb%
\or Mar%
\or Apr%
\or May%
\or Jun%
\or Jul%
\or Aug%
\or Sep%
\or Oct%
\or Nov%
\or Dec%
\fi}
% Select datestamp format.
\def\DatestampFormatSelection{2}
% Datestamp format: {yyyy}{MM}{dd} ---> yyyy-MM-dd (e.g., 2010-12-31).
\ifnum\DatestampFormatSelection=1
\newcommand{\DatestampYMD}[3]{\mbox{#1-#2-#3}}
\newcommand{\DatestampYM}[2]{\mbox{#1-#2}}
\newcommand{\DatestampY}[1]{#1}
\fi
% Datestamp format: {yyyy}{MM}{dd} ---> MMM yyyy (e.g., Dec 2010).
\ifnum\DatestampFormatSelection=2
\newcommand{\DatestampYMD}[3]{\mbox{\ShortMonth{#2} #1}}
\newcommand{\DatestampYM}[2]{\mbox{\ShortMonth{#2} #1}}
\newcommand{\DatestampY}[1]{#1}
\fi
% Datestamp format: {yyyy}{MM}{dd} ---> MMMM yyyy (e.g., December 2010).
\ifnum\DatestampFormatSelection=3
\newcommand{\DatestampYMD}[3]{\mbox{\LongMonth{#2} #1}}
\newcommand{\DatestampYM}[2]{\mbox{\LongMonth{#2} #1}}
\newcommand{\DatestampY}[1]{#1}
\fi
% Datestamp format: {yyyy}{MM}{dd} ---> yyyy (e.g., 2010).
\ifnum\DatestampFormatSelection=4
\newcommand{\DatestampYMD}[3]{#1}
\newcommand{\DatestampYM}[2]{#1}
\newcommand{\DatestampY}[1]{#1}
\fi
% Macro: title (name).
\renewcommand{\title}[1]{%
\pdfbookmark[1]{#1}{#1}%
\par\begin{center}%
\par\begin{Huge}%
\textbf{#1}%
\par\end{Huge}%
\par\end{center}%
\par\vspace{-1.75em}\par}
% Macro: subtitle (personal information below name).
\newenvironment{subtitle}
{\par\begin{center}%
\par\begin{footnotesize}}
{\par\end{footnotesize}%
\par\end{center}\par}
% Macro: body (rest of the document).
\newenvironment{body}
{\par\vspace{-1em}\par
\begin{longtable}{p{0.15\textwidth}p{0.80\textwidth}}}
{\par\end{longtable}\par}
% Macro: section (new section for Education, Research Experience, etc.).
\renewcommand{\section}[3]{\\[-1em]\pdfbookmark[2]{#2}{#3}\\%
{\fontsize{9pt}{11pt}\selectfont\bfseries\raggedright%
\MakeUppercase{#1}}&}
% Macro: subsection.
\renewcommand{\subsection}[3]{\par\vskip-\baselineskip%
\pdfbookmark[3]{#2}{#3}\par%
{\fontsize{8pt}{9.6pt}\selectfont\bfseries\raggedright%
\MakeUppercase{#1}}%
\vspace{0.1em}}
% Macro: EntryGap (vertical gap between entries in the same section).
\newcommand{\EntryGap}{\\[-0.5em]~&}
% Macro: SmallEntryGap (small vertical gap within a long entry).
\newcommand{\SmallEntryGap}{\par\vspace{0.25em}\par}
% Macro: BibSpace (small horizontal space in bibliographic entries).
\newcommand{\BibSpace}{\hspace{0.5em}\ignorespaces}
% Macro: detail (text in smaller font under an entry).
\newenvironment{detail}
{\par\begingroup\fontsize{8.6}{10.3}\selectfont}
{\par\endgroup\par}
% Macro: BulletItem.
\newcommand{\BulletItem}{\par%
\noindent\hangafter=1\hangindent=1.55em\ignorespaces%
\hspace{0.8em}\BulletSymbol\hspace{0.4em}\ignorespaces}
% Macro: NumberedItem.
\newcommand{\NumberedItem}[1]{\par%
\noindent\hangafter=1\hangindent=1.75em\ignorespaces%
{#1)}\hspace{0.4em}\ignorespaces}
% Macro: hide.
\newcommand{\hide}[1]{}