For the purpose of emphasizing specific names in a CV or bibliography made in Latex, one can modify the relevant .bst file. The syntax of the .bst file is not straightforward, however the following steps modified from one of the deeper responses to a query on tex.stackexchange and Yu Zhang's Tools are.
First, at the top of the .bst file add a function that will replace a name with the bolded version of that name.
FUNCTION {bold.if.imauthor}
{ duplicate$ purify$
"I. M. Author"
purify$ = {
"\textbf{"
swap$ * "}" * } 'skip$ if$
}
If one wants to italicize or underline, then it's a simple matter of changing \textbf
for \textit
or \underline
.
Note that the name in the function above should be reproduced identically as it is in the sytle of the .bst file. For example if the .bst file style, prints "Author, I. M." in the author list such as in aasjournal.bst, then this is how the name should be rendered above. Lastly, syntax in .bst allows for this all to be on one-line or many, just don't put line breaks inside double quotes.
Second, find the function FUNCTION {format.names}
. Somewhere in this function (near but not at the top) will be a line that contains:
format.name$
It may be that format.name$
has been written on a line that contains other commands before and after it. If so, put a line break after format.name$
so that it ends the line. Then, insert a new line directly after it with the name of the function from above, bold.if.imauthor
, calling it.
For example, let's say we are modifying plain.bst. In that file, the relevant section of the format.names
function originally looked like:
FUNCTION {format.names}
...
{ s nameptr
"{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
nameptr #1 >
...
The author emphasis function is then inserted like so:
FUNCTION {format.names}
...
{ s nameptr
"{ff~}{vv~}{ll}{, jj}" format.name$
bold.if.imauthor
't :=
nameptr #1 >
...
Note that you can write as many of these author name emphasis functions as one needs. And each of the function calls can be added after the next in the format.names
function.