Inspired by this question about how to bold a set of names in a CV using biblatex.
moewe's answer implements name hashes for this. I'm wondering how to generalize this solution so that you can have an arbitrary number of sets of names, and do arbitrary things with them.
An actual use case might be in a CV where you want to:
- Bold your own name throughout, and
- Mark graduate student names with a trailing asterisk, like "Family, Given*" or "Given Family*", and
- Mark undergraduate student names with a trailing plus sign, like "Family, Given+" or "Given Family+".
So, from the user's pov, a document might look like this:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{biblatex-examples.bib}
\addboldnames{{Sigfridsson, Emma},{Vizedom, Monika B.}}
%%% New command?
\addstarnames{Donald E. Knuth,Philipp Jaff{'e}} % <-- we could just build the * into the command
\appendtonamelist{*}{Donald E. Knuth,Philipp Jaff{'e}} % <-- or maybe there's a general hook to append something to a name?
\begin{document}
\fullcite{sigfridsson}
\fullcite{knuth:ct:a}
\fullcite{vizedom:related}
\resetboldnames\addboldnames{Donald E. Knuth}
\fullcite{knuth:ct:a}
\resetboldnames\addboldnames{Philipp Jaff{'e}}
\fullcite{jaffe}
\end{document}
I'm looking for how to define something like \addstarnames or \appendtonamelist above.
