Skip to content

Commit c7900d8

Browse files
committed
fix spacing of experience entries and bolding
1 parent 2e107f6 commit c7900d8

2 files changed

Lines changed: 54 additions & 80 deletions

File tree

‎cv.tex‎

Lines changed: 47 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,21 @@
3535
\usepackage{perpage} % gives us \MakePerPage for custom resets
3636

3737
%------------------------------------------------------------------------------
38-
% FOOTNOTE SETUP
38+
% PUBLICATION ANNOTATION SYMBOLS
39+
%
40+
% \cvfnmark{equalcontrib} — outputs a superscript * to mark equal-contribution
41+
% authors in usera fields. Always outputs *, no dynamic counter needed.
42+
%
43+
% The legend ("* equal contributions...") is printed once at the top of the
44+
% Publications section via \cvpublegend, not repeated per subsection.
3945
%------------------------------------------------------------------------------
40-
\newcounter{cvfootnote}
41-
42-
\pretocmd{\cvsection}{\setcounter{cvfootnote}{0}}{}{}
46+
\newcommand{\cvfnmark}[1]{\textsuperscript{*}}
4347

44-
\newcommand{\cvfnsymbol}[1]{%
45-
\ifcase#1\or *\or \textdagger\or \textdaggerdbl
46-
\or \textsection\or \textparagraph
47-
\else ??
48-
\fi
49-
}
50-
51-
\newcommand{\cvfnmark}[1]{%
52-
\stepcounter{cvfootnote}%
53-
\edef\@cvfnval{\thecvfootnote}%
54-
\textsuperscript{\cvfnsymbol{\@cvfnval}}%
55-
\expandafter\xdef\csname cvfnlabel@#1\endcsname{\@cvfnval}%
56-
}
57-
58-
\newcommand{\cvfnnote}[2]{%
59-
\ifcsname cvfnlabel@#1\endcsname
60-
\noindent\textsuperscript{\cvfnsymbol{\csname cvfnlabel@#1\endcsname}}%
61-
\,{\footnotesize #2}\par\smallskip
62-
\fi
63-
}
64-
65-
\newenvironment{cvpubfootnotes}{%
66-
\vspace{2pt}%
67-
\begin{footnotesize}%
68-
}{%
69-
\end{footnotesize}%
48+
% \cvpublegend: prints the symbol legend once at the top of a section.
49+
% Place immediately after \cvsection{Publications}.
50+
\newcommand{\cvpublegend}{%
51+
\vspace{-2pt}%
52+
{\footnotesize * equal contributions, shared first authorship}%
7053
\vspace{4pt}%
7154
}
7255

@@ -171,16 +154,16 @@
171154
%------------------------------------------------------------------------------
172155
% BOLD OWN NAME IN BIBLIOGRAPHY
173156
%
174-
% Entries that go through the normal name formatter (no authorlist field)
175-
% will have "Hakimi" bolded automatically. Entries with an authorlist field
157+
% Entries that go through the normal name formatter (no usera field)
158+
% will have "Hakimi" bolded automatically. Entries with a usera field
176159
% bypass the formatter — bold is applied manually via \textbf in the .bib.
177160
% Change \cvownfamilyname if the CV owner's name changes.
178161
%------------------------------------------------------------------------------
179162
\def\cvownfamilyname{Hakimi}
180163

181164
\DeclareNameFormat{boldifown}{%
182165
\ifstrequal{\namepartfamily}{\cvownfamilyname}{%
183-
\textbf{%
166+
\cvbibname{%
184167
\usebibmacro{name:family-given}{\namepartfamily}{\namepartgiveni}%
185168
{\namepartprefix}{\namepartsuffix}%
186169
}%
@@ -191,27 +174,39 @@
191174
\usebibmacro{name:andothers}%
192175
}
193176

194-
% NOTE: entries using the `authorlist` field bypass the name formatter.
177+
% NOTE: entries using the `usera` field bypass the name formatter.
195178
% Bold your name manually there, e.g.: authorlist = {\textbf{Hakimi, S}, ...}
196179

197180
%------------------------------------------------------------------------------
198-
% AUTHORLIST FIELD
181+
% CUSTOM AUTHOR STRING — uses built-in `usera` field
182+
%
183+
% For entries with equal-contribution authors or other non-standard author
184+
% formatting, set the `usera` field in the .bib file to a pre-formatted
185+
% LaTeX string. Biber always passes `usera` through as a literal (no parsing).
199186
%
200-
% Custom verbatim field for pre-formatted author strings with LaTeX commands
201-
% (\textbf, \cvfnmark, etc.). Declared verbatim so biber does not sanitise it.
202-
% The author macro checks for this field and uses it instead of \printnames.
187+
% Use \cvbibname{} (not \textbf{}) for bold names — it uses \bfseries which
188+
% works reliably in Awesome-CV's fontspec context. Use ~ for spaces inside
189+
% name initials, e.g. "Hakimi,~S" to prevent TeX from dropping the space.
190+
%
191+
% Example:
192+
% usera = {\cvbibname{Hakimi,~S}\cvfnmark{equalcontrib}, Lee,~J\cvfnmark{equalcontrib}},
193+
%
194+
% When `usera` is present it replaces the normal \printnames{author} output.
195+
% When absent, \printnames{author} runs normally (with boldifown applied).
203196
%------------------------------------------------------------------------------
204-
% authorlist: custom verbatim field for pre-formatted author strings.
205-
% Declared for all common entry types so biber passes it through unmodified.
206-
\DeclareDatamodelFields[type=field, datatype=verbatim]{authorlist}
207-
\DeclareDatamodelEntryfields[article,inproceedings,unpublished,misc,patent,incollection]{authorlist}
208-
\DeclareFieldFormat{authorlist}{#1}
197+
198+
% \cvbibname: bold name for usera fields and boldifown.
199+
% Keeps \sffamily (matching bib body font) but forces series b (Bold),
200+
% overriding the \fontseries{l} (Light) set by \bodyfontlight.
201+
\newcommand{\cvbibname}[1]{{\sffamily\fontseries{b}\selectfont #1}}
202+
203+
\DeclareFieldFormat{usera}{#1}
209204

210205
\renewbibmacro*{author}{%
211-
\iffieldundef{authorlist}{%
206+
\iffieldundef{usera}{%
212207
\printnames{author}%
213208
}{%
214-
\printfield{authorlist}%
209+
\printfield{usera}%
215210
}%
216211
}
217212

@@ -222,22 +217,10 @@
222217
\DeclareNameAlias{editor}{boldifown}%
223218
}
224219

225-
%------------------------------------------------------------------------------
226-
% NOTE FIELD SUPPRESSION
227-
%
228-
% The note field is used in some .bib entries for equal-contribution text
229-
% (e.g. "* equal contributions"). We suppress it from printing inline since
230-
% that information is handled by \cvfnmark in the authorlist field instead.
231-
%
232-
% Exception: @misc entries (Science Communication) may use note legitimately.
233-
% We restore note printing for @misc via a per-type field format override.
234-
%------------------------------------------------------------------------------
235-
\DeclareFieldFormat{note}{}
236-
\renewbibmacro*{note+pages}{%
237-
\printfield{pages}%
238-
}
239-
% Restore note for @misc entries (scicomm uses it for publication details)
240-
\DeclareFieldFormat[misc]{note}{#1}
220+
% Note: the note field prints normally for all entry types.
221+
% Equal-contribution markers should be in the authorlist field (via \cvfnmark),
222+
% NOT in the note field. See journals.bib and conference.bib for examples.
223+
% Entries with note = {* equal contributions...} should have that note removed.
241224

242225
\addbibresource{refs/journals.bib}
243226
\addbibresource{refs/preprints.bib}
@@ -490,6 +473,7 @@
490473
}{%
491474
\cvsection{Publications}%
492475
}%
476+
\cvpublegend%
493477

494478
\iftoggle{showJournals}{%
495479
\startbibsection{journals}%
@@ -503,10 +487,6 @@
503487
heading=cvsubsection]%
504488
}%
505489
\finishbibsection{journals}%
506-
\begin{cvpubfootnotes}
507-
\cvfnnote{equalcontrib}{equal contributions, shared first authorship}
508-
\cvfnnote{alphalist}{authors listed alphabetically}
509-
\end{cvpubfootnotes}%
510490
}{}
511491

512492
\iftoggle{showPreprints}{%
@@ -523,9 +503,6 @@
523503
heading=cvsubsection]%
524504
}%
525505
\finishbibsection{preprints}%
526-
\begin{cvpubfootnotes}
527-
\cvfnnote{equalcontrib}{equal contributions, shared first authorship}
528-
\end{cvpubfootnotes}%
529506
}{}
530507

531508
\iftoggle{showConferenceProceedings}{%
@@ -540,10 +517,6 @@
540517
heading=cvsubsection]%
541518
}%
542519
\finishbibsection{conference}%
543-
\begin{cvpubfootnotes}
544-
\cvfnnote{equalcontrib}{equal contributions, shared first authorship}
545-
\cvfnnote{bestpaper}{Best Paper Award recognition}
546-
\end{cvpubfootnotes}%
547520
}{}
548521

549522
\iftoggle{showConferencePresentations}{%
@@ -579,6 +552,7 @@
579552
\cvsection{Patents}%
580553
}%
581554
\startbibsection{patents}%
555+
\vspace{2pt}%
582556
\printpatents
583557
\finishbibsection{patents}%
584558
}%
@@ -593,7 +567,7 @@
593567

594568
\ifbool{showTalksSection}{%
595569
\cvsection{Talks \& Science Communication}%
596-
570+
\vspace{2pt}%
597571
% sections/talks.tex should use \cvsubsection{Invited Talks} (not \cvsection)
598572
% to render as a subsection under this top-level heading.
599573
\iftoggle{showTalks}{\input{sections/talks}}{}

‎sections/experience.tex‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@
88
{Toyota Research Institute}
99
{Los Altos, CA}
1010
{01/2021 -- Present}
11-
{}
11+
{\,}
1212
\cventry
1313
{Postdoctoral Scholar}
1414
{Center for Cognitive Neuroscience, Duke University}
1515
{Durham, NC}
1616
{06/2016 -- 01/2021}
17-
{}
17+
{\,}
1818
\cventry
1919
{Postdoctoral Research Associate}
2020
{Institute of Cognitive Science, University of Colorado}
2121
{Boulder, CO}
2222
{04/2015 -- 05/2016}
23-
{}
23+
{\,}
2424
\cventry
2525
{Director}
2626
{CaféWell Behavioral Labs, Welltok}
2727
{Denver, CO}
2828
{08/2013 -- 01/2015}
29-
{}
29+
{\,}
3030
\cventry
3131
{Graduate Research and Teaching Fellow}
3232
{Computation and Neural Systems, California Institute of Technology}
3333
{Pasadena, CA}
3434
{09/2008 -- 08/2013}
35-
{}
35+
{\,}
3636
\cventry
3737
{Intramural Research Training Award Fellow}
3838
{Genes, Cognition \& Psychosis Program, National Institute of Mental Health (NIH)}
3939
{Bethesda, MD}
4040
{08/2006 -- 07/2008}
41-
{}
41+
{\,}
4242
\cventry
4343
{Research Assistant}
4444
{Department of Psychology, Stanford University}
4545
{Stanford, CA}
4646
{05/2003 -- 06/2006}
47-
{}
47+
{\,}
4848
\end{cventries}

0 commit comments

Comments
 (0)