# How to define the bibliography style with 4 letters author, a gap and the two numbers of the year [closed]

How can I make the reference list as: 4 letters a gap and the two numbers of the year,

[Taja 00a] E. Tajahuerce and B. Javidi, "Encrypting
three-dimensional information with digital holography," Appl. Opt., 39, 6595-6601, (2000).

where [Taja 00a] means the first four letter of the author's surname, a space, and the year (only two numbers).

Also, I would like to cite this reference as [Taja 00a].

I have been reading the natbib package and trying different things such as \citep or \citealp, and the \setcitestyle command. Nothing lucky so far. Could anyone help me define this please?

This is a minimal example I am testing on.

\documentclass{article}

\usepackage{xstring}
\usepackage[style=alphabetic,maxbibnames=99]{biblatex}

\DeclareLabelalphaTemplate{
\labelelement{
\field[strwidth=4,strside=left,names=1,lowercase]{labelname}
}
\labelelement{
\field[strwidth=2,strside=right]{year}
}
}

\renewcommand{\labelalphaothers}{}

\begin{document}

\cite{JavidiBOOK:2005}, \cite{Matoba:09}. \cite{Matoba:04, Unnikrishnan:06}

\printbibliography

\end{document}


## closed as too localized by Marco Daniel, percusse, Mensch, Torbjørn T., ThorstenApr 18 '13 at 19:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

• If you're ready to use the biblatex package, you might want to check out: tex.stackexchange.com/questions/105690/… – Christoph B. Apr 16 '13 at 17:29
• Are you already using a bibliography style such as alpha? Please advise. – Mico Apr 16 '13 at 18:16
• Thanks very much for your tips. I am testing the biblatex using alphaTemplate. Haven't got what I want yet. Please help. – Shea Apr 17 '13 at 15:06
• @Shea: Which "alphaTemplate"? Can you provide a minimal working example with your current settings? – Marco Daniel Apr 17 '13 at 15:20
• @MarcoDaniel How do I get the \printbibliography work. The reference list can not be shown. – Shea Apr 17 '13 at 15:45