Skip to content

Commit

Permalink
Update main_cv.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiruiluo authored Dec 7, 2023
1 parent 108aeae commit 2e2cf3a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions main_cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 2e2cf3a

Please sign in to comment.