Open GoogleCodeExporter opened 9 years ago
Thanks for the minimal example. I'm looking at this now.
Original comment by shiblon
on 9 Aug 2011 at 7:53
This is somewhat tricky, but I think we can do it.
Let me be sure that I understand what is going on, first, though.
- Chapterbib is a misnomer
Because, it's really "included-file bib". The bibliography is at the file
level, not necessarily the chapter level. Fair enough. So long as I
understand it, that's what matters.
- When *not* using chapterbib, we are to run bibtex on the main source .aux
file, but
- When using chapterbib, we are to run bibtex on any .aux file *that contains
bibdata entries*, and *not* the main source .aux file.
- After that, latex compilation proceeds normally.
Is that a correct assessment?
Original comment by shiblon
on 10 Aug 2011 at 5:34
You are right, chapterbib is a misnomer. Quoting from the documentation:
"despite the name ‘chapterbib’, the bibliographies are for each included
file, not necessarily for each chapter, although a bibliography per chapter is
the usual application" [1].
Your assessment for using chapterbib is correct for the "normal usage". (After
reading the documentation, I found that it is possible to use the chapterbib
package without \include but rather using the cbunit environment. It sounds a
bit too complicated to implement in the Makefile because you need to first run
latex in draft mode, run bibtex on the various files and then remove draft mode
and run latex again.)
[1]
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/cite/chapterbib.pd
f
Original comment by russ...@kliese.id.au
on 10 Aug 2011 at 11:11
[deleted comment]
The chapterbib documentation also allows bibliographies to be gathered to the
end of the document, and even duplicated in each chapter and at the end. In
these cases, the latex and bibtex commands are run as previously outlined (see
8 and 9 in chapterbib.pdf).
It is also possible to have a regular overall bibliography in the main file in
addition to the chapter bibliographies (see 7 in chapterbib.pdf). In this
case, latex is run first, then bibtex on the main source .aux file, then bibtex
on the \included .aux files, the latex again (twice).
I just thought I would alert you to these possible use cases in case a solution
can be made that easily supports them all.
Original comment by russ...@kliese.id.au
on 10 Aug 2011 at 11:27
Original issue reported on code.google.com by
russ...@kliese.id.au
on 27 Jul 2011 at 1:39Attachments: