BibTeX, biblatex and biberReseting cite counter and separate bibliographies

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Yeats
Posts: 62
Joined: Fri Nov 07, 2008 12:29 pm

Reseting cite counter and separate bibliographies

Post by Yeats »

Hi,
My work has 4 chapters. I use one bibliography file for all of them.

I would like to have separate bibliography for each chapter but they should all be at the end of the work (not following each chapter).

It would also be nice if I could reset citation counter at the end of each chapter.

Basically this is how the structure should look:
Chapter 1

Chapter 2 (citation counter starts new from 1)

Chapter 3 (citation counter starts new from 1)

Chapter 4 (citation counter starts new from 1)

Bibliography for Chapter 1
Bibliography for Chapter 2
Bibliography for Chapter 3
Bibliography for Chapter 4
The additional problem might be that I need to separate each bibliography into two subgroups. I do that now by using this:

Code: Select all

\addcontentsline{toc}{section}{Quellenverzeichnis}
\bibliographysec{Bibliographie/bibliographie}
\bibliographystylesec{jurabib}
\addcontentsline{toc}{section}{Literaturverzeichnis}
\renewcommand{\refname}{Literaturverzeichnis}
\bibliography{Bibliographie/bibliographie}
\bibliographystyle{jurabib}
so at the end it should look like this:
Chapter 1

Chapter 2 (citation counter starts new from 1)

Chapter 3 (citation counter starts new from 1)

Chapter 4 (citation counter starts new from 1)

PRIMARY Bibliography for Chapter 1
SECONDARY Bibliography for Chapter 1
PRIMARY Bibliography for Chapter 2
SECONDARY Bibliography for Chapter 2
PRIMARY Bibliography for Chapter 3
SECONDARY Bibliography for Chapter 3
PRIMARY Bibliography for Chapter 4
SECONDARY Bibliography for Chapter 4
Anyone knows how this can be done? Let me know if MWE or some additional explanation is necessary.

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Reseting cite counter and separate bibliographies

Post by kaiserkarl13 »

One hack would be to use something like chapterbib, generate all the .bbl files using BibTeX, then put an "include" in the chapter where you wish to have the bibliography (e.g., in the appendix, issue "\include{ch1.bbl}"). When you run LaTeX the last time, comment out the \bibliography commands in each chapter and DON'T run BibTeX. You'll get "multiply defined label" errors if the \bibliography and \include commands are BOTH included, but those should go away once you're only including ONE copy of the .bbl files.

As I said, it's a hack, but it might work for your purposes. (By the way, I'm curious why one would want separate bibliographies for each chapter that are NOT part of the chapter.)

Good luck!
ntg
Posts: 1
Joined: Tue Jul 19, 2011 10:16 pm

Reseting cite counter and separate bibliographies

Post by ntg »

multibbl does exactly what you want:

Code: Select all

\usepackage{multibbl}
.....
\newbibliography{bk}%book cahpter
\newbibliography{jrn}
\newbibliography{conf}

  \cite{bk}{vdtn-2010-bkch}
  \cite{jrn}{rmpg-2004-simpat}
  \cite{jrn}{rmpg-2003-SpecIssue}
  \cite{jrn}{rmpg-2003-WileyInterScience}
  \cite{jrn}{frangiadakis-2003-trns}
  \cite{conf}{pegasus-2009-tridentcomWiFi}


\begin{itemize*}
\item Book Chapters 
\\[-7ex]
%\bibliographystyle{bk}{unsrt}
\bibliographystyle{bk}{abbrv}
%\bibliographystyle{bk}{ieeetr}
\bibliography{bk}{bibs}{}
\item Journals/Magazines
\\[-7ex]
   %\cite*{*}
   \newif\ifcontinuouslabels
   \continuouslabelstrue
   %\DeclareOption{resetlabels}{\continuouslabelsfalse}

   \bibliographystyle{jrn}{ieeetr}
   \usecounter{enumiv}
   \bibliography{jrn}{bibs}{}
%---------------------------------------------------------------------  
\item Conferences/Workshops  
\\[-7ex]
   \bibliographystyle{conf}{ieeetr}
   \bibliography{conf}{bibs}{}

\end{itemize*}

....
Post Reply