# Biber Hyphenated Authors

I have two bibLaTex entry

@article{madeUp1,
volume = {0},
issue = {0},
pages = {000--001},
numpages = {0},
year = {2021},
month = {April},
}


and

@article{madeUp2,
volume = {0},
issue = {0},
pages = {000--001},
numpages = {0},
year = {2021},
month = {April},
}.


I used biber with this style

\usepackage[backend=biber,style=alphabetic,sorting=nyt]{biblatex}.

Therefore, when I use \citeauthor{madeUp1} I get result "MadeUp Author1 and MadeUp Author2 and MadeUp Author3 and MadeUp Author4", which is what I want. However, I would like a command \citeauthorhyphenated to render only the surnames of the authors separated by the proper dash like

"Author1--Author2--Author3--Author4"

when I type \citeauthorhyphenated{madeup1}. Also it should render the same thing with \citeauthorhyphenated{madeUp2}. A search online does not render any results and hence I am stuck...

Funnily enough, there was a related question not too long ago (Biblatex - hyphen between author names when using citet), we can use the methods explained there. One easy solution is to pack \AtNextCite with suitable \DeclareDelimFormat definitions together with \citeauthor into a new command.

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=alphabetic, sorting=nyt, maxcitenames=999]{biblatex}

\makeatletter
\newcommand*{\citeauthorattr}{%
\AtNextCite{%
\DeclareDelimFormat{multinamedelim}{\textendash\penalty\hyphenpenalty}%
\DeclareDelimAlias{finalnamedelim}{multinamedelim}%
}%
\citeauthor}
\makeatother

\begin{filecontents}{\jobname.bib}
volume  = {0},
issue   = {0},
pages   = {000--001},
year    = {2021},
month   = apr,
}
volume  = {0},
issue   = {0},
pages   = {000--001},
year    = {2021},
month   = apr,
}
\end{filecontents}