Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
    
Would a biblatex solution be acceptable for you? –  Corentin Oct 1 '12 at 15:56
    
@Corentin Please suggest for BiBTeX. Since If i want to follow BiBLaTeX, i should start it from beginning. –  vivek Oct 1 '12 at 17:01
    
@Corentin Thanks, We have prepared BiBLaTeX style files as per our needs.It works fine. –  vivek Oct 2 '12 at 16:33
    
I'm glad to hear that it helped. There may be a pure BibTeX solution, but if you are happy with the BibLaTeX one, I think it is the most simple. –  Corentin Oct 2 '12 at 21:34
    
If the answer was helpful, may I kindly suggest that you mark it as accepted (see How do you accept an answer?), so that the question doesn't appear as unanswered anymore? –  Corentin Oct 5 '12 at 8:53

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.