0
|
1 % inspired by http://robjhyndman.com/research/cv.sty
|
|
2
|
|
3 \usepackage{datetime,fancyhdr,xcolor,enumitem}
|
|
4 \usepackage[a4paper,text={17.5cm,25.5cm},centering]{geometry}
|
|
5 \usepackage[compact,small,bf]{titlesec}
|
|
6
|
|
7 % fonts
|
|
8 \usepackage[charter]{mathdesign}
|
|
9 \usepackage{inconsolata}
|
|
10
|
|
11 % colors
|
|
12 \definecolor{theblue}{rgb}{0.086,0.173,0.514}
|
|
13 \definecolor{thered}{rgb}{0.6,0.0,0.0}
|
|
14
|
|
15 % fancy pdf
|
|
16 \usepackage[colorlinks,urlcolor=theblue,linkcolor=theblue,citecolor=theblue]{hyperref}
|
|
17
|
|
18 % mailto command
|
|
19 \DeclareRobustCommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
|
23
|
20 % orcid command
|
|
21 \DeclareRobustCommand\orcid[1]{\href{https://orcid.org/#1}{\nolinkurl{#1}}}
|
0
|
22
|
|
23 % header and footer
|
|
24 \pagestyle{fancy}
|
23
|
25 \lhead{\fontsize{9}{12}\selectfont Curriculum Vitae: \@name}
|
|
26 \rhead{\fontsize{9}{12}\selectfont \thepage}
|
0
|
27 \cfoot{}
|
|
28
|
|
29 % date format
|
|
30 \newdateformat{df}{\monthname~\THEYEAR}
|
|
31 \df
|
|
32
|
|
33 % header
|
|
34 \def\name#1{\def\@name{#1}}
|
|
35 \def\address#1{\def\@address{#1}}
|
|
36 \def\info#1{\def\@info{#1}}
|
|
37 \def\maketitle{
|
|
38 % add pdf metadata
|
|
39 \hypersetup{pdftitle=\@name\ Curriculum Vitae,pdfauthor=\@name}
|
|
40 \thispagestyle{empty}
|
|
41 \vspace*{-1.4cm}
|
|
42 \noindent
|
|
43 {\color{thered}\Large\textbf{Curriculum Vitae}\\[0.5em]}%
|
|
44 {\LARGE\textbf{\@name}\\[0.5em]}%
|
|
45 \setlength{\tabcolsep}{0pt}
|
23
|
46 \begin{tabular*}{0.6\textwidth}[t]{l}
|
0
|
47 \@address
|
|
48 \end{tabular*}
|
|
49 \setlength{\tabcolsep}{0.25em}
|
23
|
50 \begin{tabular}[t]{rl}
|
0
|
51 \@info
|
23
|
52 \end{tabular}}
|
0
|
53
|
|
54 % section headings
|
|
55 \titlelabel{}
|
|
56 \titlespacing*{\section}{0pt}{2ex}{1ex}
|
|
57 \titleformat*{\section}{\color{thered}\large\bfseries}
|
|
58 \titlespacing*{\subsection}{0pt}{1ex}{0.5ex}
|
|
59
|
|
60 % miscellaneous dimensions
|
|
61 \setlength{\parskip}{0pt}
|
|
62 \setlength{\headheight}{15pt}
|
|
63 \setlength{\tabcolsep}{0.15cm}
|
|
64
|
|
65 % listings
|
|
66 \setlist{itemsep=0.5\itemsep}
|
|
67 \setdescription{leftmargin=2em,style=nextline}
|
|
68
|
|
69 \newenvironment{dottedlist}
|
3
|
70 {\vspace{0.5ex}\list{}{\leftmargin=2em\rightmargin=2em}\item[]
|
|
71 \def\and{{\footnotesize\textbullet\space}}}
|
|
72 {\endlist\vspace*{-1ex}}
|
0
|
73
|
|
74 % bibliography formatting
|
23
|
75 \usepackage[backend=biber,bibstyle=authortitle,sorting=ydnt]{biblatex}
|
0
|
76
|
|
77 % biblatex version in texlive 2010 does not contain this definition
|
|
78 \defbibheading{none}{}{}{}
|
|
79
|
|
80 \DeclareFieldFormat{url}{\url{#1}}
|
|
81 \DeclareFieldFormat{pages}{#1}
|
|
82 \DeclareFieldFormat{journaltitle}{#1}
|
|
83 \DeclareFieldFormat{year}{\textbf{#1}}
|
23
|
84 \DeclareFieldFormat{date}{\textbf{#1}} % used for online entry type
|
0
|
85 \DeclareFieldFormat[article]{title}{\textit{#1}}
|
|
86
|
|
87 \DeclareFieldFormat{doi}{%
|
|
88 \texttt{DOI}\addcolon\space
|
|
89 \ifhyperref
|
|
90 {\href{http://dx.doi.org/#1}{\nolinkurl{#1}}}
|
|
91 {\nolinkurl{#1}}}
|
|
92
|
|
93 \renewbibmacro*{journal+issuetitle}{%
|
|
94 \usebibmacro{journal}%
|
|
95 \setunit*{\addspace}%
|
|
96 \iffieldundef{series}
|
|
97 {}
|
|
98 {\newunit
|
|
99 \printfield{series}%
|
|
100 \setunit{\addspace}}%
|
|
101 \printfield{volume}%
|
|
102 %\setunit*{\adddot}%
|
|
103 %\printfield{number}%
|
|
104 \setunit{\addcomma\space}%
|
|
105 \printfield{eid}%
|
|
106 \setunit{\addspace}%
|
|
107 %\usebibmacro{issue+date}%
|
|
108 %\setunit{\addcolon\space}%
|
|
109 \usebibmacro{issue}%
|
|
110 \newunit}
|
|
111
|
|
112 \DeclareBibliographyDriver{article}{%
|
|
113 \usebibmacro{bibindex}%
|
|
114 \usebibmacro{begentry}%
|
|
115 \usebibmacro{author/translator+others}%
|
|
116 \setunit{\labelnamepunct}\newblock
|
|
117 \usebibmacro{title}%
|
|
118 \newunit
|
|
119 \printlist{language}%
|
|
120 \newunit\newblock
|
|
121 \usebibmacro{byauthor}%
|
|
122 \newunit\newblock
|
|
123 \usebibmacro{bytranslator+others}%
|
|
124 \newunit\newblock
|
|
125 \printfield{version}%
|
|
126 \newunit\newblock
|
|
127 %\usebibmacro{in:}%
|
|
128 \usebibmacro{journal+issuetitle}%
|
|
129 \newunit\newblock
|
|
130 \usebibmacro{byeditor+others}%
|
|
131 \newunit\newblock
|
|
132 \usebibmacro{note+pages}%
|
|
133 \newunit\newblock
|
|
134 \iftoggle{bbx:isbn}
|
|
135 {\printfield{issn}}
|
|
136 {}%
|
|
137 \newunit\newblock
|
|
138 \usebibmacro{addendum+pubstate}%
|
|
139 \newunit\newblock
|
|
140 \usebibmacro{pageref}%
|
|
141 \newunit\newblock
|
|
142 \setunit{\addcomma\space}%
|
|
143 \printfield{year}%
|
|
144 \newunit\newblock
|
|
145 \usebibmacro{doi+eprint+url}%
|
|
146 \newunit\newblock
|
|
147 \setunit{\adddot\space}%
|
|
148 \printfield{url}
|
|
149 \usebibmacro{finentry}}
|
|
150
|
|
151 \renewcommand*{\bibitem}{\item}
|
|
152 \defbibenvironment{bibliography}{\begin{enumerate}}{\end{enumerate}}{\bibitem}
|
|
153
|
|
154 % add all papers in the bib file.
|
|
155 \nocite{*}
|