I am using biblatex with option maxbibnames=2 to enforce author names to be replaced with et al when their number exceeds maxbibnames.
\usepackage[style=numeric-comp,sorting=none,giveninits=true,maxbibnames=2,backend=biber]{biblatex}
However, I want to supress this behaviour when a specific author is in the list of authors. Any suggestions would be much appreciated.
EDIT: Adapting @Werner MWE below I would like the bibliography output of article 'def' to print the first two authors followed by et al, with the second author bolded.
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@article{abc,
title = {A title},
author = {A Author and B Bauthor and C Cauthor},
year = {2000}
}
@article{def,
title = {A title},
author = {D Duthor and E Eauthor and F Fauthor},
year = {2000},
options = {maxbibnames = 2},
AUTHOR+an = {2=highlight} % used to highlight an author's name, see @PLK suggestion http://tex.stackexchange.com/questions/73136/make-specific-author-bold-using-biblatex
}
\end{filecontents*}
\usepackage[style=numeric-comp,sorting=none,giveninits=true,maxbibnames=2,backend=biber]{biblatex}
\addbibresource{references.bib}
\renewcommand*{\mkbibnamefamily}[1]{%
\ifitemannotation{highlight}
{\textbf{#1}}
{#1}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
The code above won't yield the desired output, instead it will show the first author followed by et al. If maxbibnames=3 is used (the number of authors or greater) it will show all authors with the second one highlighted. Additional downside is that those parameters (Options and Author+an) need to be hard coded for each bib entry. Can anyone suggest a solution that does something like the following pseudocode:
define authorsToBoldList = {E Eauthor; D Duthor}
for each BibEntry {
foundAuthorIndex = find(authorsToBoldList,BibEntryAuthors)
If notEmpty(foundAuthorIndex) {
display BibEntryAuthors(1:max(foundAuthorIndex))% followed by et al if less than BibEntryAuthors
for each foundAuthorIndex {
highlight(BibEntryAuthors(foundAuthorIndex ))
}
}
}

maxbibnames = 3? – Werner Jan 19 '17 at 21:52minbibnamesto specify the range within which you want names displayed. – Werner Jan 19 '17 at 23:41