[Tex/LaTex] Two bibliographies, using natbib

bibliographiesnatbib

I'd like to print two bibliographies at the end of my document. One would be for Articles and other for Online sources. The bibliographies would be one after the other at the end of the document. Here is a minimal example of my current document:

\documentclass{article}
\usepackage[round]{natbib}

\begin{document}
Here are some citations for articles: \citet{a1} and \citet{a2}
Here is an online source \citet{m1}.

\def\bibfont{\small}
\renewcommand\refname{} 
\bibliographystyle{chicago}
\bibliography{examplebib}

\end{document}

My bib file contains the following:

@article{a1,
author="Article Author1",
title="Example Article1",
year="2015",
}

@article{a2,
author="Article Author2",
title="Example Article1",
year="2009"
}

@misc{m1,
author="Online Author3",
title="Example Online Source",
year="2001"
}

This produces the following:

enter image description here

From this I'd like to be able to get the @article and @misc entries in to two different bibliographies. First titled "Articles" and other titled "Online sources" The one requirement I have is that I need to use the natbib package as I've got everything set up exactly the way I want it and don't want to switch away from that. I could create two different bib files if that would help things.

Best Answer

A possible solution is to use the multibib package. With such a package you use the command \newcites{<name>}{Heading} to create a new type of citations/bibliography. then you use the <name> as an affix to the standard citation commands (e.g., \cite<name>, \bibliography<name>, ...).

\documentclass{article}
\usepackage{multibib}
\newcites{online}{On Line Sources}
\usepackage[round]{natbib}

\begin{document}
Here are some citations for articles: \citet{a1} and \citet{a2}
Here is an online source \citetonline{m1}.

\def\bibfont{\small}
\renewcommand\refname{Articles} 
\bibliographystyle{chicago}
\bibliography{examplebib}

\bibliographystyleonline{chicago}
\bibliographyonline{examplebib}
\end{document}

The workflow is

latex <file>
bibtex <file>
bibtex online
latex <file>
latex <file>

enter image description here

Related Question