On 10/22/2009 02:27 PM, Jan Piet Joris en Corneel wrote:
Dear list,
I'm using LyX and the Lyx port of André Miede's Classicthesis to write a thesis.
I was wondering how to deal with child documents and bibtex. Basically
I want to do this.
1. Have one master document with several child documents (i.e. one for
each child documents.
2. Have one bibliography at the end of the thesis.
3. Have the ability to insert citations to that bibliography using the
Lyx function.
Points 1 and 2 cause no difficulties. The third point seems to cause
problems. It seems I first need to insert a bibliography to the
chapter to be able to cite from it. Seems logic but I don't want to
have that bibliography repeated at the end of each chapter, just one
at the end of the master document.
How do I make the bibliography 'invisible' at the end of a chapter in
the pdftex output , without losing the ability to insert citations? In
the lyx port files (available at
http://www.soundsorange.net/resources/classic-thesis-for-lyx/) they
didn't seem to have solved it too. If I look into e.g. Chapter01.lyx
and double click the first citation to Bringhurst, no list of
available sources shows up, because Chapter01.lyx doesn't know it has
to look into Bibliography.bib.
If anybody has some ideas on solving this, please show them up.
OK, first, if you open the master document first, and then open the
child document from the master (e.g., right click on the Include inset,
then select "Edit Included File"), then you should have no problems.
When you do it this way, LyX essentially treats the master and children
as if they were one huge file, and it picks up the bibliography from the
master.
In LyX 1.6, there is a way to make this easier. In each of your child
documents, set the "default master document" under
Document>Settings>Document Class, and set it to be the master in which
the children are included. Then, when you open the child directly, LyX
knows it should first open the master document, too. The master will not
actually appear to be open---i.e, it won't appear in a window---but if
you look under the View menu, you'll see it (as well as all of its other
children). Now the bibliography will work as normal.
Richard