Repository navigation
Expand file tree
/
Copy pathcv.tex
More file actions
146 lines (132 loc) · 6.42 KB
/
Copy pathcv.tex
File metadata and controls
146 lines (132 loc) · 6.42 KB
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
% Academic CV. Build: make build. bib/references.bib is Paperpile-owned; never hand-edit it.
\documentclass[fontsize=10pt,letterpaper]{scrartcl}
% Footer sits in the bottom margin (no includefoot), so the page number stays 0.45in from the edge.
\usepackage[margin=0.9in,heightrounded,footskip=0.45in]{geometry}
\usepackage{parskip}
\usepackage{fontspec}
\usepackage{fontawesome5}
% Loaded by filename: TeX Live's EB Garamond is not visible to XeTeX by family name on macOS.
% SemiBold as bold, lining figures: matches prototypes/a-ledger.html.
\setmainfont{EBGaramond}[Extension=.otf, UprightFont=*-Regular, ItalicFont=*-Italic,
BoldFont=*-SemiBold, BoldItalicFont=*-SemiBoldItalic, Numbers={Lining,Proportional}]
\newcommand{\sectioncaps}{\addfontfeatures{Letters=SmallCaps,LetterSpace=6}}
% shortcut: KOMA's 10pt leading is 12pt; x1.125 = 13.5pt = Ledger's 1.35. Recompute if fontsize changes.
\linespread{1.125}
\usepackage{longtable}
\usepackage{array}
\usepackage[table]{xcolor} % table: \rowcolor, \arrayrulecolor (colortbl)
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\definecolor{darkgray}{gray}{0.4}
\arrayrulecolor{darkgray}
\usepackage[colorlinks,urlcolor=linkcolour]{hyperref}
\usepackage{titlesec}
% Section head: all-small-caps title, then a hairline rule to the right margin on the same line.
\newcommand{\sectionruled}[1]{%
{\sectioncaps\MakeLowercase{#1}}%
\hspace{0.5em}%
{\color{darkgray}\leaders\hrule height \dimexpr0.25em+0.25pt\relax
depth \dimexpr0.25pt-0.25em\relax\hfill}}
\titleformat{\section}{\normalfont\fontsize{13}{14.3}\selectfont\raggedright}{}{0pt}{\sectionruled}
\titlespacing*{\section}{0pt}{8pt plus 2pt minus 2pt}{5pt}
\titleformat{\subsection}{\normalfont\normalsize\bfseries\raggedright}{}{0pt}{}
\titlespacing*{\subsection}{0pt}{1.5ex plus .5ex minus 1ex}{1ex}
\setcounter{secnumdepth}{0}
% longtable otherwise adds \bigskipamount above and below every table.
\setlength{\LTpre}{0.5\baselineskip}
\setlength{\LTpost}{0.5\baselineskip}
% \cventry{<text>}{<date>}: date flush right on the first line, later lines hang by 1em.
% Use \newline, not \\: under \raggedright, \\ ends the paragraph and the next line loses its hang.
\newlength{\cvdatewidth}
\newenvironment{cvledger}{\par\nobreak\setlength{\parskip}{0.3\baselineskip}}{\par}
\newcommand{\cventry}[2]{%
\settowidth{\cvdatewidth}{#2}%
{\raggedright\interlinepenalty=10000
\parshape 2
0pt \dimexpr\linewidth-\cvdatewidth-1.25em\relax
1em \dimexpr\linewidth-1em\relax
\noindent\rlap{\hspace*{\dimexpr\linewidth-\cvdatewidth\relax}#2}#1\par}}
\usepackage[backend=biber,style=vancouver,maxnames=6,minnames=6,
defernumbers=true,sorting=ymdcite]{biblatex}
\addbibresource{bib/references.bib}
\urlstyle{same} % DOIs/URLs in the body font, not Latin Modern Mono
\DeclarePrintbibliographyDefaults{heading=subbibliography}
% Newest first by full date; same-date entries keep their \cvpub line order.
\DeclareSortingTemplate{ymdcite}{%
\sort[direction=descending]{\field{year}}%
\sort[direction=descending]{\field{month}}%
\sort[direction=descending]{\field{day}}%
\sort{\citeorder}%
}
% Drop language ("en.") and "[Accessed on: ...]"; the access date prints only when urlyear is set.
\AtEveryBibitem{\clearlist{language}\clearfield{langid}\clearfield{urlyear}}
\renewcommand*{\finalnamedelim}{\multinamedelim}
\appto{\bibsetup}{\raggedright}
% vancouver sets journal titles upright (strict ICMJE); italic is a house choice.
\DeclareFieldFormat*{journaltitle}{\mkbibemph{#1}}
\DeclareBibliographyCategory{peerreviewed}
\DeclareBibliographyCategory{presentation}
\DeclareBibliographyCategory{conference}
\DeclareBibliographyCategory{thesis}
\DeclareBibliographyCategory{whitepaper}
\DeclareBibliographyCategory{preprints}
\DeclareBibliographyCategory{bookchapter}
\newcommand{\cvpub}[2]{\addtocategory{#1}{#2}\nocite{#2}}
% Per-entry patches live here, not in the .bib, because Paperpile overwrites the .bib on every sync.
% Journal abbreviations need none: vancouver.bbx already strips their periods to NLM form.
\DeclareSourcemap{%
\maps[datatype=bibtex]{%
% maxnames=6 truncates the own name away on these papers, so the addendum states it,
% spelled as each paper's byline does.
\map{%
\step[fieldsource=entrykey, match={Vidyasagaran2024-wx}, final]
\step[fieldset=addendum,
fieldvalue={Among authors: \textbf{Del Castillo Fernandez, D.}}]%
}%
\map{%
\step[fieldsource=entrykey, match={Maslova2026-gt}, final]
\step[fieldset=addendum,
fieldvalue={Among authors: \textbf{Del Castillo, D.}}]%
}%
% vancouver's @misc driver prints neither eventtitle nor venue, so the event goes in addendum.
% The date is typed here and the date field nulled (NLM puts it mid-string); keep it in sync with Paperpile.
% "and", not "&": a bare & is an alignment tab and \& does not survive the trip through cv.bcf.
\map{%
\step[fieldsource=entrykey, match={Del-Castillo2026-jq}, final]
\step[fieldsource=title,
match=\regexp{Rapid-Fire\s+Presentation:\s*}, replace={}]
\step[fieldset=addendum,
fieldvalue={Rapid-fire presentation at: 70th Society for Social
Medicine and Population Health Conference -- European
Congress of Epidemiology; 2026 Sep 11; London, UK
}]%
\step[fieldset=date, null]%
}%
}%
}
% Bold own name: family contains "Del" and "Castillo", given name starts with "D".
% Substring tests because \namepartfamily holds Del\bibnamedelima Castillo; \expandarg keeps xstring from expanding that delimiter.
\usepackage{xstring}
\expandarg
\newcommand*{\mkownname}[1]{%
\IfSubStr{\namepartfamily}{Castillo}{\IfSubStr{\namepartfamily}{Del}{\IfBeginWith{\namepartgiven}{D}{\textbf{#1}}{#1}}{#1}}{#1}}
\let\mkbibnamefamily\mkownname
\let\mkbibnamegiven\mkownname
\begin{document}
\input{content/header}
\input{content/education}
% \input{content/research-interests} % PLACEHOLDER
\input{content/experience}
% \input{content/other-experience} % PLACEHOLDER
% \input{content/grants}
\input{content/awards}
\input{content/teaching}
% \input{content/volunteer} % PLACEHOLDER
% \input{content/community} % PLACEHOLDER
\input{content/certifications}
\newpage
\input{content/publications}
\input{content/service}
% \input{content/memberships}
% \input{content/outputs} % PLACEHOLDER
% \input{content/referees} % PLACEHOLDER
\end{document}