
Esta es una pregunta relacionada con una respuesta dada por @PLK enPoner en negrita un autor específico usando biblatex(No puedo comentar en la publicación original). Quiero destacar autores específicos en la bibliografía. Modificando el MWE de @PLK a continuación Quiero resaltar varios autores, pero este método solo resalta uno.
\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,3=highlight},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\renewcommand*{\mkbibnamegiven}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\renewcommand*{\mkbibnamefamily}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
Respuesta1
De acuerdo con labiblatex
documentación, págs. 74-75, debe separar la anotación de los diferentes elementos de la lista (nombres) con un punto y coma
@misc{test,
author = {Last1, First1 and Last2, First2 and Last3, First3},
authot+an = {2=highlight;3=highlight},
}
obras
La sintaxis se explica a continuación.
<annotationspecs> ::= <annotationspec> [ ";" <annotationspec> ] <annotationspec> ::= [ <itemcount> [ ":" <part> ] ] "=" <annotations> <annotations> ::= <annotation> [ "," <annotation> ] <annotation> ::= (string)
Quiere dar especificaciones diferentes (es decir, una para el artículo nº 2 y otra para el artículo nº 3). Si separa las dos entradas con una coma como lo hizo, biblatex
se interpreta 3=highlight
como otra anotación para el segundo nombre.