From 2e2cf3a0c59efaa77ae7190c69d25b34b5538f83 Mon Sep 17 00:00:00 2001 From: Bill Luo <50068224+zhiruiluo@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:49:36 -0700 Subject: [PATCH] Update main_cv.tex --- main_cv.tex | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/main_cv.tex b/main_cv.tex index 1e8d120..2e255fb 100644 --- a/main_cv.tex +++ b/main_cv.tex @@ -14,6 +14,23 @@ \usepackage[maxcitenames=6, minnames=3 ]{biblatex} \addbibresource[]{biblio.bib} +% bold the name of specific author +\newcommand{\makeauthorbold}[1]{% + \DeclareNameFormat{author}{% + \ifthenelse{\value{listcount}=1} + {% + {\expandafter\ifstrequal\expandafter{\namepartfamily}{#1}{\mkbibbold{\namepartfamily\addcomma\addspace \namepartgiveni}}{\namepartfamily\addcomma\addspace \namepartgiveni}} + % + }{\ifnumless{\value{listcount}}{\value{liststop}} + {\expandafter\ifstrequal\expandafter{\namepartfamily}{#1}{\mkbibbold{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni}}{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni}} + {\expandafter\ifstrequal\expandafter{\namepartfamily}{#1}{\mkbibbold{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni\addcomma\isdot}}{\addcomma\addspace \namepartfamily\addcomma\addspace \namepartgiveni\addcomma\isdot}}% + } + \ifthenelse{\value{listcount}<\value{liststop}} + {\addcomma\space}{} + } +} +\makeauthorsbold{Zhirui,Luo} + % what is your name? \newcommand{\myname}{Zhirui Luo}