4

Is there an easy way to add numbers to the reference list generated by \usepackage[authoryear]{natbib} with whatever style file (using plainnat for ease)? Specifically, I use \cite and \citenum from natbib in order to have some references show up in the text as author-year and others just appear as numbers. Switching authoryear out for numbers in the natbib options generates a reference list with numbered references, but also causes the references in the text to all appear as numbers, which I don't want.

\documentclass[12pt]{article} % use larger type; default would be 10pt
\usepackage[authoryear]{natbib}
\begin{document}

\cite{A} said this, but other research \citenum{B,C} says otherwise.

\bibliographystyle{plainnat}
\bibliography{MalariaBib,MST}
\end{document}

2 Answers 2

8

Setting the citation style to numbers before the \bibliography will produce a reference list with numbers.

\documentclass[12pt]{article}
\usepackage[authoryear]{natbib}
\begin{document}

\cite{A} % This citation should be in author-year style.

\setcitestyle{numbers} % set the citation style to ``numbers''.
\bibliographystyle{plainnat}
\bibliography{MalariaBib,MST} % now the reference list has numbers
\end{document}
1

Using \usepackage[numbers]{natbib} and \citet{} for references to be printed as authoryear in the text (and \citenum for just numbers, but I guess the num can be dropped now) produces approximately the desires effect.

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.