I want to add a block at the beginning of my bib entries of the form
[Lastnameauthor(s) Year]
When the shortauthor field is defined it should use this field +Year instead. The following example is fairly minimal:
\begin{filecontents*}{test.bbx}
\ProvidesFile{test.bbx}
[\abx@bbxid $Id: test.bbx,v 0.9d 2010/09/03 20:11:58 lehman beta $]
\RequireBibliographyStyle{authoryear}
\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
%---add something here---
\usebibmacro{author/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{bytranslator+others}%
\newunit\newblock
\printfield{version}%
\newunit\newblock
\usebibmacro{in:}%
\usebibmacro{journal+issuetitle}%
\newunit
\usebibmacro{byeditor+others}%
\newunit
\usebibmacro{note+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{issn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
\endinput
\end{filecontents*}
\begin{filecontents*}{MeineBib.bib}
@article{example,
author={Firstname Lastname and First Last},
title={Title},
journal={Journal},
year={Year},
pages={Pages},
}
\end{filecontents*}
\documentclass[12pt,ngerman, ]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
\usepackage[babel,german=quotes]{csquotes}
\usepackage [bibstyle=test]{biblatex}
\bibliography{MeineBib}
\begin{document}
\tableofcontents
\cite{example}
\printbibliography\end{document}
I'm guessing the solution lies here
DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
%---add something here---
\usebibmacro{author/translator+others}%
but I can't find out how. It should look like this
which is an existing style (
natdin
) in BibTeX, but not in biblatex
.