[Tex/LaTex] Customise Bibliography Style Alpha

biblatexbibliographiesbibtex

I am trying to use alpha bibliography style, but I have to customise it. what I have in my .bib file is :

@book{laue,
    Author = {Kurt Laue and Helmut Stenger},
    Date-Added = {2014-05-06 20:55:13 +0000},
    Date-Modified = {2014-05-06 20:55:42 +0000},
    Title = {Strangpressen: Verfahren, Maschinen, Werkzeuge},
    Year = {1976}}

and naturally I get:

enter image description here

But instead of this I would like to have the bibliography and citations appear like [LAU76] instead of [LS76]. I mean, I would like to appear all of my citations first 3 letters(capital) of the first author and the year of the publication.

How do I do that?
Thanks…

Best Answer

You can redefine the the way the label is created by Biber with \DeclareLabelalphaTemplate.

\renewcommand*{\labelalphaothers}{}

This is to get rid of the + if there are more authors than maxnames.

\DeclareLabelalphaTemplate{
  \labelelement{
    \field[final]{shorthand}
    \field{label}
    \field[strwidth=3,strside=left]{labelname}
  }
  \labelelement{
    \field[strwidth=2,strside=right]{year}    
  }
}

This always takes the first three names of the last name of the first author and adds the last two digits of the year.

We also set maxalphanames=1 and minalphanames=1

\usepackage[maxalphanames=1, minalphanames=1, style=alphabetic, backend=biber]{biblatex}

MWE

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{laue,
    Author = {Kurt Laue and Helmut Stenger},
    Date-Added = {2014-05-06 20:55:13 +0000},
    Date-Modified = {2014-05-06 20:55:42 +0000},
    Title = {Strangpressen: Verfahren, Maschinen, Werkzeuge},
    Year = {1976}}
\end{filecontents*}
\usepackage[maxalphanames=1, minalphanames=1, style=alphabetic, backend=biber]{biblatex}
\addbibresource{biblatex-examples.bib}
\addbibresource{\jobname.bib}

\renewcommand*{\labelalphaothers}{}

\DeclareLabelalphaTemplate{
  \labelelement{
    \field[final]{shorthand}
    \field{label}
    \field[strwidth=3,strside=left]{labelname}
  }
  \labelelement{
    \field[strwidth=2,strside=right]{year}    
  }
}

\begin{document}
  \cite{laue,wilde,baez/article,cicero}
  \printbibliography
\end{document}

enter image description here