I would like to change the automatically generated citation key of biblatex when using the style alphabetic. So far I only know the possibility via the field shorthand. But I would like to have the citekey automatically derived from the last name of the author and the year. If there are two authors it should be Last Name 1 and Last Name 2 and the year. If there are more than two authors it should be Last Name 1 et al. and the year. Is there e.g. the possibility to address the year and last name within a bibitem (e.g. `bibauthorlastname`) and do something like
@article{articleA,
title={This is a long title of article A},
author={Albert Einstein},
journal={Some scienece journal},
volume={1},
number={4},
pages={42--125},
year=1950,
publisher={Hellsevier},
shorthand = {\bibauthorlastname \bibyear}
}
Or do I have to approach the matter in a completely different way?
Here is a MWE, where the citekey entry is formatted as it should be (but not automatically).
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{filecontents}
\usepackage[
backend=biber,
bibencoding=utf8,
style=alphabetic
]{biblatex}
\begin{filecontents*}{\jobname.bib}
@article{articleA,
title={This is a long title of article A},
author={Albert Einstein},
journal={Some scienece journal},
volume={1},
number={4},
pages={42--125},
year=1950,
publisher={Hellsevier},
shorthand = {Einstein 1950}
}
@article{articleB,
title={This is a long title of article B},
author={Ludwig Boltzmann and Erwin Schrödinger},
journal={Another science journal},
volume={42},
number={1},
pages={43--49},
year=1970,
publisher={Hellsevier},
shorthand = {Boltzmann and Schrödinger 1970}
}
@article{articleC,
title={This is a long title of article C},
author={Ludwig Boltzmann and Erwin Schrödinger and Werner Heisenberg},
journal={Another science journal},
volume={4},
number={1},
pages={10--50},
year=1980,
publisher={Hellsevier},
shorthand = {Boltzmann et al. 1980}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
This is a test for citation \cite{articleA}. And here is another test \cite{articleB} and also \cite{articleC}.
\printbibliography
\end{document}

![This is a test for citation [Einstein 1950]. And here is another test [Boltzmann und Schrödinger 1970] and also [Boltzmann et al. 1980].](../../images/69d8c0e1811ca940e171c0cd6937668c.webp)
biblatexthemaxnamesoption controls when the names will be shown in full and whenet alis used in the citations. – Marijn Jan 17 '20 at 15:24style=alphabetic, which is not affected bymaxnames. – moewe Jan 17 '20 at 15:31authoryearinstead, as you show in your answer. – Marijn Jan 17 '20 at 15:34