-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make one author name bold in the reference section? #292
Comments
The problem was caused by my own declaration using FYI, I added the answer below to awesome-cv.cls, and specify the author (usually your name) as well. \def\makenamesetup{%
\def\bibnamedelima{~}%
\def\bibnamedelimb{ }%
\def\bibnamedelimc{ }%
\def\bibnamedelimd{ }%
\def\bibnamedelimi{ }%
\def\bibinitperiod{.}%
\def\bibinitdelim{~}%
\def\bibinithyphendelim{.-}}
\newcommand*{\makename}[2]{\begingroup\makenamesetup\xdef#1{#2}\endgroup}
\newcommand*{\boldname}[3]{%
\def\lastname{#1}%
\def\firstname{#2}%
\def\firstinit{#3}}
\boldname{}{}{}
% Patch new definitions
\renewcommand{\mkbibnamegiven}[1]{%
\ifboolexpr{ ( test {\ifdefequal{\firstname}{\namepartgiven}} or test {\ifdefequal{\firstinit}{\namepartgiven}} ) and test {\ifdefequal{\lastname}{\namepartfamily}} }
{\mkbibbold{#1}}{#1}%
}
\renewcommand{\mkbibnamefamily}[1]{%
\ifboolexpr{ ( test {\ifdefequal{\firstname}{\namepartgiven}} or test {\ifdefequal{\firstinit}{\namepartgiven}} ) and test {\ifdefequal{\lastname}{\namepartfamily}} }
{\mkbibbold{#1}}{#1}%
}
\boldname{Last}{First}{Initial} % Specify the author's name |
How exactly did you make this work? I've tried to insert the code but is not working.
and the publication.tex file
|
@CBornes Hello, would you please tell me more information about the log message and your environments? |
@CBornes in the same .cls file there is a \DeclareNameFormat block. removing that will make it work |
Have anyone tried to make your name bold in the reference?
I found one answer from https://tex.stackexchange.com/a/327046/47328, which works well independently of Awesome-CV format. I wonder how I could incorporate the solution into Awesome-CV.
p.s. I want to find a solution that does not add something in the .bib file.
The text was updated successfully, but these errors were encountered: