I'm highlighting certain authors in biblatex using the annotation feature:
\documentclass{article}
\usepackage{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@MISC{test,
AUTHOR = {Last1, First1 and Last2, First2 and Last3, First3},
AUTHOR+an = {2=highlight},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\renewcommand*{\mkbibnamegiven}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\renewcommand*{\mkbibnamefamily}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
I want to add another annotation e.g. highlightB which highlights in e.g. bold and color red which can be used as an alternative to the already existing highlight annotation.
I fideled around with an additional \ifitemannotation{highlightB} in both \mkbibnamegiven and \mkbibnamefamily but couldn't get it to work properly. How do I go about this?
