How to underline name of specific authors in biblatex?
Using uline is very difficult. The following solution provides a method which doesn't allow a linebreak at the highlighted author.
Using this you have to remove the following line
\xpretobibmacro{name:given-family}{\begingroup\usebibmacro{name:bbold}{#1}{#2}}{}{}
Therefor your need an other patch which only holds the name.
\xpatchbibmacro{name:given-family}{\usebibmacro{name:delim}{#2#3#1}}{\usebibmacro{name:delim}{#2#3#1}\begingroup\usebibmacro{name:bbold}{#1}{#2}}{}{}
After this you have to save the highlighted name inside a savebox to use \uline
later:
\newbox\savenamebox
\newbibmacro*{name:bbold}[2]{%
\def\do##1{\iffieldequalstr{hash}{##1}{\bfseries\setbox\savenamebox\hbox\bgroup \listbreak}{}}%
\dolistloop{\boldnames}%
}
\newbibmacro*{name:ebold}[2]{%
\def\do##1{\iffieldequalstr{hash}{##1}{\egroup\uline{\usebox\savenamebox}\listbreak}{}}%
\dolistloop{\boldnames}%
}
The complete example is here:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{boldref,
AUTHOR = {InBold, to Put and Author, Non bold and Highlight, Shine and Ano, therOne},
TITLE = {The title},
BOOKTITLE = {The conference},
PAGES = {65--78},
YEAR = 2014}
\end{filecontents}
\usepackage{xpatch}
\usepackage[normalem]{ulem}
\usepackage[backend=biber,bibencoding=utf8,style=numeric-comp,maxbibnames=99]{biblatex}
\addbibresource{\jobname.bib}
\newbox\savenamebox
\newbibmacro*{name:bbold}[2]{%
\def\do##1{\iffieldequalstr{hash}{##1}{\bfseries\setbox\savenamebox\hbox\bgroup \listbreak}{}}%
\dolistloop{\boldnames}%
}
\newbibmacro*{name:ebold}[2]{%
\def\do##1{\iffieldequalstr{hash}{##1}{\egroup\uline{\usebox\savenamebox}\listbreak}{}}%
\dolistloop{\boldnames}%
}
\xpatchbibmacro{name:given-family}{\usebibmacro{name:delim}{#2#3#1}}{\usebibmacro{name:delim}{#2#3#1}\begingroup\usebibmacro{name:bbold}{#1}{#2}}{}{}
%\xpretobibmacro{name:given-family}{\begingroup\usebibmacro{name:bbold}{#1}{#2}}{}{}
\xapptobibmacro{name:delim}{\begingroup\normalfont}{}{}
\xapptobibmacro{name:given-family}{\usebibmacro{name:ebold}{#1}{#2}\endgroup}{}{}
\xapptobibmacro{name:delim}{\endgroup}{}{}
\newcommand*{\boldnames}{}
\forcsvlist{\listadd\boldnames}{
{4fcd4bca11ef811f3aef17c792b6ef3e}, % InBold
{01b588ba4e4ad753feae6c81709fc04b}} % Highlight
\begin{document}
\nocite{*}
\printbibliography
\end{document}