From: adin Date: Thu, 24 Nov 2016 14:10:07 +0000 (-0200) Subject: Fix the author name bold macros by checking the whole author name instead of just... X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=170f0c8bf839898bdb024147d2629e79d0d97237;p=mcv-academic Fix the author name bold macros by checking the whole author name instead of just the parts --- diff --git a/moderncvstyleacademic.sty b/moderncvstyleacademic.sty index f37618b..9f11ce3 100755 --- a/moderncvstyleacademic.sty +++ b/moderncvstyleacademic.sty @@ -249,21 +249,16 @@ \newcommand*{\makename}[2]{\begingroup\makenamesetup\xdef#1{#2}\endgroup} \renewcommand{\mkbibnamegiven}[1]{% - \makename{\currname}{#1}% - \makename{\findname}{\bld@firstname}% - \makename{\findinit}{\bld@firstinit}% - \ifboolexpr{ test {\ifdefequal{\currname}{\findname}}% - or test {\ifdefequal{\currname}{\findinit}} }% + \ifboolexpr{ ( test {\ifdefequal{\bld@firstname}{\namepartgiven}} or test {\ifdefequal{\bld@firstinit}{\namepartgiven}} ) and test {\ifdefequal{\bld@lastname}{\namepartfamily}} } {\mkbibbold{#1}}{#1}% } \renewcommand{\mkbibnamefamily}[1]{% - \makename{\currname}{#1}% - \makename{\findname}{\bld@lastname}% - \ifboolexpr{ test {\ifdefequal{\currname}{\findname}} }% + \ifboolexpr{ ( test {\ifdefequal{\bld@firstname}{\namepartgiven}} or test {\ifdefequal{\bld@firstinit}{\namepartgiven}} ) and test {\ifdefequal{\bld@lastname}{\namepartfamily}} } {\mkbibbold{#1}}{#1}% } + \newcommand*{\boldname}[3]{% \def\bld@lastname{#1}% \def\bld@firstname{#2}%