texblog

Mulitple reference citation

Recently, I was wondering how to cite multiple references at once, e.g. [1, 5, 9] or even [1-3, 6, 8]. It took me quite some time to find a solution on the web, which is one of the reasons I am posting this article here.

The solution is astonishingly easy. If you want to cite multiple references within the same brackets, you just need to separate the labels with a comma. In addition, you’ll need to load the cite package which will automatically check if your labels are part of an ordered list and reduce the list by replacing all the “in-betweens” with a hyphen.

\usepackage{cite}
...
\cite{citation1, citation2, citation3}

 
Here is a minimal working example:

\documentclass{article}
\usepackage{cite}
\begin{filecontents}{publication.bib}
@book{knuth2006art1,
  title={The art of computer programming: Generating all trees: history of combinatorial generation},
  author={Knuth, D.E.},
  year={2006},
  publisher={Addison-Wesley}
}
@book{knuth2006art2,
  title={The art of computer programming: Generating all trees: history of combinatorial generation},
  author={Knuth, D.E.},
  year={2006},
  publisher={Addison-Wesley}
}
@book{knuth2006art3,
  title={The art of computer programming: Generating all trees: history of combinatorial generation},
  author={Knuth, D.E.},
  year={2006},
  publisher={Addison-Wesley}
}
\end{filecontents}
\begin{document}
Dummy citation \cite{knuth2006art1, knuth2006art2, knuth2006art3}
\bibliographystyle{plain}
\bibliography{publication}
\end{document}
Exit mobile version