Generalbibunits | Two "bibliography levels" in one document?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nvx
Posts: 25
Joined: Mon Dec 17, 2007 7:49 pm

bibunits | Two "bibliography levels" in one document?

Post by nvx »

Hello,

In a document I am required to put bibliography before appendices (personally I do not see the point of this, but such is the directive). This means I will have to generate a third bibliography for one of the appendices in addition to two other bibliographies already present. However, those two mentioned bibliographies should have chapters-like headers whereas bibliography for the appendix should ideally have a section-like header, i.e.:

Code: Select all

1 Introduction                     1
...
8 Last Chapter Name              113
Bibliography A                   125
...
Appendix A Abcabc                131
  A.1 First section              136
  ...
  Appendix Bibliography          148
Appendix B Xyzxyz                151
...
Author's Publications            177
I looked into the bibunits' documentation, but according to what I understood it cannot be done using the package, since one selects "bibliography level" once in the document preamble e.g. by

Code: Select all

\usepackage[sectionbib]{bibunits}
Is there anything else I could do to get two different bibliography levels in one document without manually creating two PDFs and then joining them using Acrobat/PDFCreator/...?

Thanks in advance for any help or hints.

nvx
Last edited by nvx on Thu Jul 07, 2011 3:18 pm, edited 1 time in total.

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

bibunits | Two "bibliography levels" in one document?

Post by kaiserkarl13 »

It sounds like the chapterbib package may help you here. I used that once to do something similar. If all else fails, you can redefine some commands like so:

Code: Select all

\let\thebibliography\thechapterbibliography
\usepackage[sectionbib]{bibunits}
...
\let\thesectionbibliography\thebibliography
\let\thebibliography\thechapterbibliography
\bibliography{blah} % produces chapter-style bibliography
\let\thebibliography\thesectionbibliography
\bibliography{blah} % produces section-style bibliography
I don't claim the above commands to work; they're just to give you an idea of what you might do.

What I actually did for my own project was to write a new style file that I only used for my dissertation, which defined a new environment called \theglobalbibliography. That was the one for the whole document, and \thebibliography got used for the individual chapters. I decided it was easier to implement with chapterbib than it was with bibunits, but either should work.
nvx
Posts: 25
Joined: Mon Dec 17, 2007 7:49 pm

Re: bibunits | Two "bibliography levels" in one document?

Post by nvx »

kaiserkarl13,

Thank you for your response, I'll try what you've suggested.

nvx
nvx
Posts: 25
Joined: Mon Dec 17, 2007 7:49 pm

bibunits | Two "bibliography levels" in one document?

Post by nvx »

Well, here is how I managed to solve the issue. Unfortunately, the code kaiserkarl13 suggested did not work (it produced errors, probably due to bibunits being loaded), so I further searched the net and found that if

Code: Select all

\def\chapter*#1{}
is put before \putbib[...] command (for chapter-level bibliography defined by using \usepackage{bibunits}), it removes bibliography heading. Thus I was able to generate my own headings (either regular - numbered - ones or "starred" ones) at any level I needed (chapter/section) and then flush the actual bibliography entries right under them.

nvx
Post Reply