The reason why I need this modification is that I want to have a general 'Bibliography' section in which all the bibliographies created with multibib
are included. At the moment my code (narrowed down to a minimal working example) looks like this:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@BOOK{Doe2013,
title = {The concept of anonymity},
author = {Doe, John},
publisher = {Void},
year = {2013}
}
\end{filecontents*}
\documentclass{article}
\usepackage{multibib}
\newcites{ads}{Advertisments}
\begin{document}
\tableofcontents
\nocite{Doe2013}
\nociteads{Doe2014}
\clearpage
\section*{Bibliography}
\bibliographystyleads{plain}
\bibliographyads{ads}
\renewcommand{\refname}{Books and Articles}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
This (obviously) will create three sections in the end, which is not what I intended for I wish to have one section ("References") with two subsections ("Advertisements" and "Books and Articles"). How can I obtain that the \bibliography
'ish macros call \subsection*
instead of \section*
?
Addendum
Here is a sample ads.bib
:
@BOOK{Doe2014,
title = {The concept of anonymity 2},
author = {Doe, John},
publisher = {Void},
year = {2014}
}
Edit
I forgot to mention that I want the bibliographies both automatically added to the TOC.
Best Answer
Add this to your example preamble:
and
\bibliographies
(which is defined in my code snippet) right before the bibliographies start.As you can see I expanded the functionality to classes with
\chapter
s.Edit
You can't use the above solution with
natbib
because it redefines thethebibliography
environment so that theetoolbox
patch won't be able to find what he is looking for. This code should do the job: