[Tex/LaTex] Adding numbers to references with authoryear citation style

bibliographiesbibtexciting

My document is based on the report class. I am using custom bibtex style file generated through makebst for my thesis and the citation style I need is authoryear. The references are to be sorted alphabetically. The problem is I'm not getting numerical list of the references. I need numerical listing of references as shown in the figure below

university_format

For the moment, I get the list of references without numerical listing, as shown in the figure below.
without_numerical_listing

Best Answer

If you are ready to use biblatex, the following example has a numbered, alphabetically sorted list of references, with author-year citation style:

\documentclass{article}

\usepackage[citestyle=authoryear,bibstyle=numeric,firstinits=true,backend=bibtex]{biblatex}

\renewbibmacro{in:}{%
  \ifentrytype{article}{}{%
  \printtext{\bibstring{in}\intitlepunct}}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{A2012,
author = {Author, A},
title = {An interesting paper},
journal = {Journal},
year = {2012},
volume = {2},
pages = {70--76},
}
@article{B2012,
author = {Buthor, B},
title = {An also interesting paper},
journal = {Journal},
year = {2012},
volume = {2},
pages = {77--79},
}
\end{filecontents}

\addbibresource{\jobname.bib}


\begin{document}

\autocite{B2012}

\autocite{A2012}

\printbibliography

\end{document}

enter image description here

Related Question