How do I make surnames in a bibliography small caps, except for 'author' when the keyword is 'primary'? Yes, I know I could just \textsc{…} them all, but I'd like this to be automated.
I suppose the answer to my question will be derivative of https://tex.stackexchange.com/a/29862/60686.
MWE:
\documentclass{scrartcl}
\usepackage{fontspec}
\usepackage[english]{babel}
\usepackage[style=verbose-ibid,backend=biber,]{biblatex}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{roehrs2014,
author = {Dorian Roehrs},
title = {Inflections on Pre-Nominal Adjectives in Germanic},
subtitle = {Main types, Subtypes, and Subset Relations},
journaltitle = {Journal of Comparative Germanic Linguistics},
journalshorttitle = {JCGL},
volume = {18},
year = {2015},
pages = {213--271},
doi = {10.1007/s10828-015-9076-z},
keywords = {secondary},
}
@inbook{iwein-dkv,
author = {Hartmann von Aue},
title = {Iwein},
booktitle = {Gregorius -- Der arme Heinrich -- Iwein},
editor = {Volker Mertens},
translator = {Volker Mertens},
publisher = {Deutscher Klassiker Verlag},
location = {Frankfurt/Main},
year = {2008},
series = {Deutscher Klassiker Verlag im Taschenbuch},
number = {29},
pages = {317--767},
keywords = {primary},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\citeauthor{roehrs2014}\autocite{roehrs2014} and \citeauthor{iwein-dkv}\autocite{iwein-dkv}.
\nocite{*}
\printbibliography[keyword=primary, title={Primary Sources}, heading=subbibliography]
\printbibliography[keyword=secondary, title={Secondary Sources}, heading=subbibliography]
\end{document}
The way I want it, "Roehrs" and "Mertens" would be in small caps, while "von Aue" would be in normal type (ignoring that 'von Aue' is like 'da Vinci' not strictly speaking a surname, but whatever).
