Skip to content

Instantly share code, notes, and snippets.

@zerokarmaleft
Created October 26, 2012 17:03
Show Gist options
  • Save zerokarmaleft/3959949 to your computer and use it in GitHub Desktop.
Save zerokarmaleft/3959949 to your computer and use it in GitHub Desktop.
LaTeX: [author year] numbered references using natbib
@book{Jacky:1996,
author = {Jacky, Jonathan},
title = {The Way of Z: Practical Programming with Formal Methods},
year = {1996},
publisher = {Cambridge University Press},
address = {New York, NY, USA},
}
\documentclass[12pt]{article}
\usepackage{natbib}
\bibpunct{[}{]}{,}{a}{}{;}
\renewcommand{\bibnumfmt}[1]{[\citeauthor \citeyear]}
\begin{document}
\citep{Jacky:1996}
\newpage
\bibliographystyle{plainnat}
\bibliography{authoryear}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment