From 19596abd6cf6a482dcec691430c65f4d2536f576 Mon Sep 17 00:00:00 2001 From: Isaac Smith <71480393+isaacgsmith@users.noreply.github.com> Date: Fri, 19 Jul 2024 09:18:55 +0300 Subject: [PATCH] Update cv.tex --- assets/tex/cv.tex | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/assets/tex/cv.tex b/assets/tex/cv.tex index 5a77ed9..d5c6b36 100644 --- a/assets/tex/cv.tex +++ b/assets/tex/cv.tex @@ -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}{%