Skip to content

Commit

Permalink
Update cv.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacgsmith authored Jul 19, 2024
1 parent 3d156ad commit 19596ab
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions assets/tex/cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@

% Custom name format to highlight your name
\DeclareNameFormat{highlight}{%
\ifthenelse{\value{listcount}=1}
{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}
{\highlightname{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}}%
\nameparts{#1}%
\ifboolexpr{ test {\ifnameequal{#1}{YourFirstName}{YourLastName}} }
{\textbf{\namepartfamily} \space \namepartgiven}
{\namepartfamily \space \namepartgiven}%
\ifthenelse{\value{listcount}<\value{liststop}}
{\ifthenelse{\value{listcount}<4}%
{ \addcomma\space \highlightname{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}}
{}}
{\ifboolexpr{test {\ifnumcomp{\value{listcount}}{=}{4}} }
{, \textellipsis\space \highlightname{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}}}}
{\addcomma\space}
{}%
\ifthenelse{\value{listcount}=1}
{\addspace}
{}}

% Redefine the bibliography driver to include "et al."
\renewbibmacro*{name:andothers}{%
Expand Down

0 comments on commit 19596ab

Please sign in to comment.