Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Say I wish to have two references lists: one for all the citation within the main body, and another for all the citations within the Appendices. I'm using BibTeX. splitbib and multibib don't seem to be the right way.

chapterbib seems to be very similar to what I need, but I couldn't find a working example, and I don't know how to adjust it to what I need (without splitting into different files). Any suggestions?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

You could give the bibunits package a try. Assuming that (i) you wish to use the plain bibliography style in the main part of the document and the unsrt style in the appendix area and (ii) all bib entries are contained in a file named mybib.bib, the bibunits-relevant structure of your LaTeX file might look something like this:

\documentclass{book}
\usepackage{bibunits}
\begin{document}

\mainmatter

\begin{bibunit}[plain]
... % with various citation commands strewn in
\putbib[mybib]
\end{bibunit}

\appendix % or whatever demarcation command you need to employ

\begin{bibunit}[unsrt]
... % with more citation commands
\putbib[mybib]
\end{bibunit}

\end{document}

If you only intend to use one bibliography style (say, plain) throughout, you could place the command

 \defaultbibliographystyle{plain}

in the preamble, freeing you from having to mention it in every \begin{bibunit} command. (Actually, plain is the default style in case nothing else is specified.)

Note that bibunits creates a separate .aux file for each bibunit you create, named bu1.aux, bu2.aux, etc. This means that you'll need to run BibTeX separately on each of these aux files.

share|improve this answer
    
Perfect! thanks. –  Ran G. Feb 15 '12 at 5:21

Use biblatex and its refsection feature. Note that entries cited both in the main text and the appendix will be included in both bibliographies.

\documentclass{article}

\usepackage{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\newrefsection

\section{First}

Some text \autocite{A01}.

\section{Second}

Some text \autocite{B02}.

\printbibliography[title={Main References}]

\appendix
\newrefsection

\section{App-First}

Some text \autocite{B02}.

\section{App-Second}

Some text \autocite{C03}.

\printbibliography[title={Appendix References}]

\end{document}

enter image description here

share|improve this answer
3  
Thanks! is there an equivalent BibTex solution? –  Ran G. Feb 15 '12 at 1:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.