5

When I write the citations, I get the name of the author and the year, like this "[Alagarasi(2011)]", but I want the citation call-out to be numeric, say, "[2]".

\documentclass[10pt,‌​twoside,openright]{re‌​port} 
    \usepackage[phd]{edmaths}
    \usepackage{graphicx}
    \usepackage{float}
    \usepackage[rightcaption]{sidecap}


    \bibliographystyle{apsrev}
    \bibliography{reference}


    \end{document}
  • The > markdown is for formatting quotations, in order to format code, you should use code sample markdown. Simply highlight the code and press ctrl+k, or use the code sample button (fifth from the left, the one that looks like {}) – Au101 Aug 15 '16 at 19:40
  • 1
    Welcome to TeX.SX! What document class are you using? Can you give a pointer to edmaths.sty? – egreg Aug 15 '16 at 19:40
  • 1
    \bibliographystyle{plain} instead of apsrev may do what you want. – Marijn Aug 15 '16 at 19:53
  • 1
    Please always post compilable code. Numerical labels are default. – cfr Aug 15 '16 at 23:26
  • @Marijn - The plain bibliography style formats the bibliographic entries rather differently from the apsrev style. Presumably, the OP is using apsrev for a reason; switching to a different bibliography style mainly because of the formatting of the citation call-outs seems like questionable advice. At least, you should point out that the OP should expect major changes in the way the bibliographic entries are formatted. – Mico Aug 16 '16 at 5:34
2

It appears that the apsrev bibliography style was created with the makebst utility, which was written by the author of the natbib citation management package. Hence, adding the instruction

\usepackage[numbers]{natbib}

to the preamble will give you numeric style citation call-outs.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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