From: Juergen Spitzmueller <[EMAIL PROTECTED]>
To: lyx-users@lists.lyx.org
Subject: Re: One bibliography, separated by chapter?
Date: Thu, 3 Aug 2006 10:50:17 +0200

Curtis Osterhoudt wrote:
> I am using a master document, with several \included sub-documents. All of
> these are of the report (koma-script) class. At the end of each of the
> sub-documents (generally chapters), I have placed a \bibliography (through > the Insert > List/TOC > BibTeX Bibliography command) *within* a "comment" > box. Then, at the end of the Master document, I have again a bibliography,
> but not in a "comment" box.

The instructions in chapterbib.sty read:
"To have a bibliography-by-chapter at the end instead of separate bibs
in the chapters, use \usepackage[gather]{chapterbib}, put \bibliography
commands in each file, and at the end of the main file."

So why do you comment them out?

Jürgen

Jürgen,

Ah, good question. I was thinking that if I *didn't* comment them out, they would each show up at the end of the chapters, as they do if I don't use the chapterbib package. But I was wrong. If I use chapterbib and do NOT use the [gather] option, then all of the bibliographies are gathered at the end of the document. The effect (as far as I can see) is equivalent to including each of the bibliographies at the end of the chapters, in comment boxes, and then having one bibliography at the end of the master file, not in a comment box.

HOWEVER, the TOC has the master bibliography listed (good!). It's listed there as being on the correct page, but the hyperlink (I use those, too) sends the reader to the wrong page. I've figured out that the page numbers in the TOC are listed correctly (for everything). However, the hyperlinks send you to the wrong spot, and the difference is due to the sum of the pages that the intervening bibliographies would have taken up. In other words, if the TOC has Ch. 4 starting on page 45, then that's where it'll be. However, if you click on the link for "Ch. 4" in the TOC, you're sent to page 42 or so, since there would normally be 3 approximately 1-page-long bibliographies before Ch. 4 started. One weird thing is that the *index* entries show up as on the correct pages, AND their hyperlinks take you to the right spot. So it must be something having to do with different ways that things are processed.

If I use the [gather] option, the same thing happens, and the master bibliography is listed in the TOC (and is listed as falling on the correct page), but NEVER SHOWS UP. The text goes directly from the end of the last chapter to the Index.

I suppose my next trick will be to repeat these experiments with a minimal raw latex file and see if that's any different (I suspect it won't be; probably this is more of a problem with chapterbib playing nice than anything else).

   Thank you,
          Curtis O.


Reply via email to