Re: BibTeX and master documents
Thanks Richard, Works like a charm :-) Daniel Richard Heck wrote: Use the technique mentioned here: http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. 1) Define a variable \master in the preamble of the master document before including the common preamble: Define it to mean something. \def\master*{whatever}* \input{preamble.tex} Don't need any of this. 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[*\ifx\master\undefined*] [BibTeX Generated Bibliography] ERT[\fi] Richard
Re: BibTeX and master documents
Thanks Richard, Works like a charm :-) Daniel Richard Heck wrote: Use the technique mentioned here: http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. 1) Define a variable \master in the preamble of the master document before including the common preamble: Define it to mean something. \def\master*{whatever}* \input{preamble.tex} Don't need any of this. 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[*\ifx\master\undefined*] [BibTeX Generated Bibliography] ERT[\fi] Richard
Re: BibTeX and master documents
Thanks Richard, Works like a charm :-) Daniel Richard Heck wrote: > Use the technique mentioned here: > http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. >> 1) Define a variable \master in the preamble of the master document >> before including the common preamble: > Define it to mean something. >> \def\master*{whatever}* >> \input{preamble.tex} >> > Don't need any of this. >> 2) Define a new \ifnomaster in the common preamble that tests for >> \master being defined or not >> >> % common preamble, input'ed into all children and the master >> \newif\ifnomaster >> \ifx\master\undefined >> \nomastertrue >> \else >> \nomasterfalse >> \fi >> >> 3) Use ERT boxes to conditionally include the bibliography at the end >> of each child: >> >> ??ERT[*\ifx\master\undefined*] >> [BibTeX Generated Bibliography] >> ERT[\fi] > Richard > > >
Re: BibTeX and master documents
[EMAIL PROTECTED] schrieb: To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. Hi, Excellent suggestion. However, it still has the disadvantage that no bib references appear if one prints out a single chapter. I am looking for some way to conditionally embed the bibliography into the child documents. If used (printed) stand alone, a child should have a complete bibliography section. If embedded into the master, the bibliographies of the children should be ignored. I have been trying to achieve something like that for a couple of hours, but failed - probably because of my lacking knowledge of fundamental LaTex concepts. Here is the idea: 1) Define a variable \master in the preamble of the master document before including the common preamble: \def\master \input{preamble.tex} 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[\ifnomaster] [BibTeX Generated Bibliography] ERT[\fi] This fails so far, probably because my \newif and \def are erroneous. (It is kind of funny: While there are many LaTeX books and online resources that explain how to do fancy things using the xyz package, I always struggle when I try to find a good documentation of such basic things.) Please help :-) Daniel On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C
Re: BibTeX and master documents
Use the technique mentioned here: http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. 1) Define a variable \master in the preamble of the master document before including the common preamble: Define it to mean something. \def\master*{whatever}* \input{preamble.tex} Don't need any of this. 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[*\ifx\master\undefined*] [BibTeX Generated Bibliography] ERT[\fi] Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: BibTeX and master documents
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Lohmann wrote: I am looking for some way to conditionally embed the bibliography into the child documents. If used (printed) stand alone, a child should have a complete bibliography section. If embedded into the master, the bibliographies of the children should be ignored. While it's a little hacky, you could just move the bibliographies in and out of the comments as needs be... Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb +poKmwFJnEKL439oAKvA3Zo= =IQ7L -END PGP SIGNATURE-
Re: BibTeX and master documents
[EMAIL PROTECTED] schrieb: To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. Hi, Excellent suggestion. However, it still has the disadvantage that no bib references appear if one prints out a single chapter. I am looking for some way to conditionally embed the bibliography into the child documents. If used (printed) stand alone, a child should have a complete bibliography section. If embedded into the master, the bibliographies of the children should be ignored. I have been trying to achieve something like that for a couple of hours, but failed - probably because of my lacking knowledge of fundamental LaTex concepts. Here is the idea: 1) Define a variable \master in the preamble of the master document before including the common preamble: \def\master \input{preamble.tex} 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[\ifnomaster] [BibTeX Generated Bibliography] ERT[\fi] This fails so far, probably because my \newif and \def are erroneous. (It is kind of funny: While there are many LaTeX books and online resources that explain how to do fancy things using the xyz package, I always struggle when I try to find a good documentation of such basic things.) Please help :-) Daniel On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C
Re: BibTeX and master documents
Use the technique mentioned here: http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. 1) Define a variable \master in the preamble of the master document before including the common preamble: Define it to mean something. \def\master*{whatever}* \input{preamble.tex} Don't need any of this. 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[*\ifx\master\undefined*] [BibTeX Generated Bibliography] ERT[\fi] Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: BibTeX and master documents
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Lohmann wrote: I am looking for some way to conditionally embed the bibliography into the child documents. If used (printed) stand alone, a child should have a complete bibliography section. If embedded into the master, the bibliographies of the children should be ignored. While it's a little hacky, you could just move the bibliographies in and out of the comments as needs be... Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb +poKmwFJnEKL439oAKvA3Zo= =IQ7L -END PGP SIGNATURE-
Re: BibTeX and master documents
[EMAIL PROTECTED] schrieb: > To make it easier to insert citatiosn (if you still need to), you can > insert a bibliography within each child document, but place it inside a > *comment*. That way LaTeX won't see it, but LyX will know what > .bib-files to scan for when showing you the available citations. Hi, Excellent suggestion. However, it still has the disadvantage that no bib references appear if one prints out a single chapter. I am looking for some way to conditionally embed the bibliography into the child documents. If used (printed) "stand alone", a child should have a complete bibliography section. If embedded into the master, the bibliographies of the children should be ignored. I have been trying to achieve something like that for a couple of hours, but failed - probably because of my lacking knowledge of fundamental LaTex concepts. Here is the idea: 1) Define a variable \master in the preamble of the master document before including the common preamble: \def\master \input{preamble.tex} 2) Define a new \ifnomaster in the common preamble that tests for \master being defined or not % common preamble, input'ed into all children and the master \newif\ifnomaster \ifx\master\undefined \nomastertrue \else \nomasterfalse \fi 3) Use ERT boxes to conditionally include the bibliography at the end of each child: ??ERT[\ifnomaster] [BibTeX Generated Bibliography] ERT[\fi] This fails so far, probably because my \newif and \def are erroneous. (It is kind of funny: While there are many LaTeX books and online resources that explain how to do fancy things using the xyz package, I always struggle when I try to find a good documentation of such basic things.) Please help :-) Daniel On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert->File->Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C
Re: BibTeX and master documents
Use the technique mentioned here: http://wiki.lyx.org/Tips/ChildMathMacros. More or less. And see below. > 1) Define a variable \master in the preamble of the master document > before including the common preamble: Define it to mean something. > \def\master*{whatever}* > \input{preamble.tex} > Don't need any of this. > 2) Define a new \ifnomaster in the common preamble that tests for > \master being defined or not > > % common preamble, input'ed into all children and the master > \newif\ifnomaster > \ifx\master\undefined > \nomastertrue > \else > \nomasterfalse > \fi > > 3) Use ERT boxes to conditionally include the bibliography at the end > of each child: > > ??ERT[*\ifx\master\undefined*] > [BibTeX Generated Bibliography] > ERT[\fi] Richard -- == Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ == Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
Re: BibTeX and master documents
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel Lohmann wrote: > I am looking for some way to conditionally embed the bibliography into > the child documents. If used (printed) "stand alone", a child should > have a complete bibliography section. If embedded into the master, the > bibliographies of the children should be ignored. While it's a little hacky, you could just move the bibliographies in and out of the comments as needs be... Dan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFw3wb3arasOikFPYRAkE8AJ9mbSGRTTeTLwVA6ubc2ItRVWsFGgCePbnb +poKmwFJnEKL439oAKvA3Zo= =IQ7L -END PGP SIGNATURE-
Re: BibTeX and master documents
Putting the bibliographies in the child documents in comments suits me perfectly. Thanks - and thanks for the other suggestions. They might come in handy another time! John From: [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Subject: Re: BibTeX and master documents Date: Tue, 30 Jan 2007 21:39:08 +0100 On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Re: BibTeX and master documents
Putting the bibliographies in the child documents in comments suits me perfectly. Thanks - and thanks for the other suggestions. They might come in handy another time! John From: [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Subject: Re: BibTeX and master documents Date: Tue, 30 Jan 2007 21:39:08 +0100 On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Re: BibTeX and master documents
Putting the bibliographies in the child documents in comments suits me perfectly. Thanks - and thanks for the other suggestions. They might come in handy another time! John From: [EMAIL PROTECTED] To: lyx-users@lists.lyx.org Subject: Re: BibTeX and master documents Date: Tue, 30 Jan 2007 21:39:08 +0100 On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert->File->Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
BibTeX and master documents
I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Thanks John _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Re: BibTeX and master documents
ty. 30. januar 2007 18:09 skreiv John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Hi. When I wrote my thesis I used child documents and included the different articles I had written as children. To get the bibliography at the end of each article I think you needed to use the chapterbib. Add \usepackage{chapterbib} in the preamble. Ingar
Re: BibTeX and master documents
Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. Georg
Re: BibTeX and master documents
On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
BibTeX and master documents
I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Thanks John _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Re: BibTeX and master documents
ty. 30. januar 2007 18:09 skreiv John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Hi. When I wrote my thesis I used child documents and included the different articles I had written as children. To get the bibliography at the end of each article I think you needed to use the chapterbib. Add \usepackage{chapterbib} in the preamble. Ingar
Re: BibTeX and master documents
Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. Georg
Re: BibTeX and master documents
On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
BibTeX and master documents
I have just discovered the Insert->File->Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Thanks John _ MSN Hotmail is evolving check out the new Windows Live Mail http://ideas.live.com
Re: BibTeX and master documents
ty. 30. januar 2007 18:09 skreiv John Hughes: > I have just discovered the Insert->File->Child Document option in LyX, > which is useful for inserting several chapter documents into one master > document. However, if I use BibTeX references in my chapter documents, they > don't appear correctly in the master output. The best output I have managed > so far inserts a bibliography at the end of each chapter but the individual > bibliographies include all the references from the entire document (i.e. > from all of the chapters). Is there a way of achieving either individual > bibliographies that only include the references cited in their own chapters > or a single bibliography at the end of the master document? Hi. When I wrote my thesis I used child documents and included the different articles I had written as children. To get the bibliography at the end of each article I think you needed to use the chapterbib. Add \usepackage{chapterbib} in the preamble. Ingar
Re: BibTeX and master documents
Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: > I have just discovered the Insert->File->Child Document option in LyX, which > is useful for inserting several chapter documents into one master document. > However, if I use BibTeX references in my chapter documents, they don't > appear correctly in the master output. The best output I have managed so far > inserts a bibliography at the end of each chapter but the individual > bibliographies include all the references from the entire document (i.e. > >from all of the chapters). Is there a way of achieving either individual > bibliographies that only include the references cited in their own chapters > or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. Georg
Re: BibTeX and master documents
On Tue, 30 Jan 2007, Georg Baum wrote: Am Dienstag, 30. Januar 2007 18:09 schrieb John Hughes: I have just discovered the Insert->File->Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? AFAIK you need some extra packages for the first option, but the second one is easy. Don't include any bibliography in child documents, only include one in the master. If you want to enter a new citation in a child you need to open the child from the master doc, otherwise LyX will not know which .bib file is used. To make it easier to insert citatiosn (if you still need to), you can insert a bibliography within each child document, but place it inside a *comment*. That way LaTeX won't see it, but LyX will know what .bib-files to scan for when showing you the available citations. /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Master Documents?
On Wed, May 02, 2001 at 10:09:38AM -0500, George De Bruin wrote: I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. What is going on here? You have found a bug in LyX. It happens since your first (and perhaps second) included files are short (less than a page). I'll fix this bug soon, but for the meantime, you can add \wlog{} in tex mode after the 1st and 2nd include insets.
Re: Master Documents?
On Wednesday 02 May 2001 11:52, Herbert Voss wrote: Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. also 1.1.6fix1 with 8 include-files, editing the second, saving, switching to master and ctrl-shift-D gives correct dvi. Hi Herb, Hmmm, it's still not working here. More details in my message to Dekel. -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
On Thursday 03 May 2001 03:54, Dekel Tsur wrote: You have found a bug in LyX. heh I'm a little more convinced of this now. However: It happens since your first (and perhaps second) included files are short (less than a page). I'll fix this bug soon, but for the meantime, you can add \wlog{} in tex mode after the 1st and 2nd include insets. This didn't fix the problem. I'm now up to 9 include files. So, I added the \wlog{} before and after each of the includes. The first time I did a View-PDF, it worked. However, then editing the last file and Viewing again, didn't work. So, I tried just changing the last file to an input, and it worked. Then changed it back to an include, changed the last file, did a View-PDF and it worked. (Note the main point is that I only had to change the one file to an input, whereas before I thought I had to change them all.) I then repeated this process, making changes to just the 2nd include file, and toggling the last include in the master to an input. Same result: as long as I switched between input and include, the changes would appear. But if I didn't change between input and include, the changes wouldn't appear. Hmmm. I would be almost willing to speculate that it has something to do with the master document. But what, exactly, I don't have a clue. I can add the following: I haven't made any modifications to the preamble (in any of the documents). All documents are article class. I have made a few changes to page geometry (ie, mainly the setting the margins to 1 inch), double spaced, fonts set to pslatex, double sided pages, fancy headers turned on. These are global settings in my document template. Quick description of the files: Master document is short: Title, Author, Table of Contents and include files. The 1st-3rd include files are longer: 6pgs, 3pgs, 2pgs. Start with section header. The 4th-9th include files are short 1 page, start with section header. If you'd like, I can tar up the files and send them to you. Shouldn't be all that large. (The whole contents of the directory is about 76K right now - but it will get a bit larger as I add to it...:), and that includes backup files...) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
On Wed, May 02, 2001 at 10:09:38AM -0500, George De Bruin wrote: I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. What is going on here? You have found a bug in LyX. It happens since your first (and perhaps second) included files are short (less than a page). I'll fix this bug soon, but for the meantime, you can add \wlog{} in tex mode after the 1st and 2nd include insets.
Re: Master Documents?
On Wednesday 02 May 2001 11:52, Herbert Voss wrote: Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. also 1.1.6fix1 with 8 include-files, editing the second, saving, switching to master and ctrl-shift-D gives correct dvi. Hi Herb, Hmmm, it's still not working here. More details in my message to Dekel. -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
On Thursday 03 May 2001 03:54, Dekel Tsur wrote: You have found a bug in LyX. heh I'm a little more convinced of this now. However: It happens since your first (and perhaps second) included files are short (less than a page). I'll fix this bug soon, but for the meantime, you can add \wlog{} in tex mode after the 1st and 2nd include insets. This didn't fix the problem. I'm now up to 9 include files. So, I added the \wlog{} before and after each of the includes. The first time I did a View-PDF, it worked. However, then editing the last file and Viewing again, didn't work. So, I tried just changing the last file to an input, and it worked. Then changed it back to an include, changed the last file, did a View-PDF and it worked. (Note the main point is that I only had to change the one file to an input, whereas before I thought I had to change them all.) I then repeated this process, making changes to just the 2nd include file, and toggling the last include in the master to an input. Same result: as long as I switched between input and include, the changes would appear. But if I didn't change between input and include, the changes wouldn't appear. Hmmm. I would be almost willing to speculate that it has something to do with the master document. But what, exactly, I don't have a clue. I can add the following: I haven't made any modifications to the preamble (in any of the documents). All documents are article class. I have made a few changes to page geometry (ie, mainly the setting the margins to 1 inch), double spaced, fonts set to pslatex, double sided pages, fancy headers turned on. These are global settings in my document template. Quick description of the files: Master document is short: Title, Author, Table of Contents and include files. The 1st-3rd include files are longer: 6pgs, 3pgs, 2pgs. Start with section header. The 4th-9th include files are short 1 page, start with section header. If you'd like, I can tar up the files and send them to you. Shouldn't be all that large. (The whole contents of the directory is about 76K right now - but it will get a bit larger as I add to it...:), and that includes backup files...) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
On Wed, May 02, 2001 at 10:09:38AM -0500, George De Bruin wrote: > I'm using LyX version 1.1.6Fix1. > > I have a master document that includes three files (I've tried both Article > and Book class to see if it made a difference: it didn't). The includes are > preceeded by a title, author and TOC. All of the include files are Article > class LyX files. > > In the master document, I execute View->PDF. The PDF file is compiled and > displayed. Everything is fine, the table of contents is generated, etc. > > Then I go ahead and load the 2nd include file, edit it, and save the file. > Do the same with the 3rd include file. > > Go back to the master and execute View->PDF again. The resulting PDF file is > not updated. The changes made to the 2nd and 3rd documents aren't included. > > What is going on here? You have found a bug in LyX. It happens since your first (and perhaps second) included files are short (less than a page). I'll fix this bug soon, but for the meantime, you can add \wlog{} in tex mode after the 1st and 2nd include insets.
Re: Master Documents?
On Wednesday 02 May 2001 11:52, Herbert Voss wrote: > > Go back to the master and execute View->PDF again. The resulting PDF > > file is not updated. The changes made to the 2nd and 3rd documents > > aren't included. > > also 1.1.6fix1 with 8 include-files, editing the second, saving, > switching to master and ctrl-shift-D gives correct dvi. Hi Herb, Hmmm, it's still not working here. More details in my message to Dekel. -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording "Collection" is available now!
Re: Master Documents?
On Thursday 03 May 2001 03:54, Dekel Tsur wrote: > You have found a bug in LyX. I'm a little more convinced of this now. However: > It happens since your first (and perhaps second) included files are short > (less than a page). I'll fix this bug soon, but for the meantime, you can > add \wlog{} in tex mode after the 1st and 2nd include insets. This didn't fix the problem. I'm now up to 9 include files. So, I added the \wlog{} before and after each of the includes. The first time I did a View->PDF, it worked. However, then editing the last file and Viewing again, didn't work. So, I tried just changing the last file to an input, and it worked. Then changed it back to an include, changed the last file, did a View->PDF and it worked. (Note the main point is that I only had to change the one file to an input, whereas before I thought I had to change them all.) I then repeated this process, making changes to just the 2nd include file, and toggling the last include in the master to an input. Same result: as long as I switched between input and include, the changes would appear. But if I didn't change between input and include, the changes wouldn't appear. Hmmm. I would be almost willing to speculate that it has something to do with the master document. But what, exactly, I don't have a clue. I can add the following: I haven't made any modifications to the preamble (in any of the documents). All documents are article class. I have made a few changes to page geometry (ie, mainly the setting the margins to 1 inch), double spaced, fonts set to pslatex, double sided pages, fancy headers turned on. These are global settings in my document template. Quick description of the files: Master document is short: Title, Author, Table of Contents and include files. The 1st-3rd include files are longer: 6pgs, 3pgs, 2pgs. Start with section header. The 4th-9th include files are short <1 page, start with section header. If you'd like, I can tar up the files and send them to you. Shouldn't be all that large. (The whole contents of the directory is about 76K right now - but it will get a bit larger as I add to it...:), and that includes backup files...) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording "Collection" is available now!
Master Documents?
I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. This was where I experimented with changing between article and book class on the master document to see if it made a difference: it didn't. The updated files weren't compiled into the PDF file. I should also note here, that all of the files are in the same directory. And the directory doesn't have an spaces in the path: ~/gdb/LinuxDesktop At this point I decided that may I needed to force an update to the PDF file. So, I went ahead and executed View-Update-PDF, then tried View-PDF. Same result, the PDF file wasn't updated with the include file. Now, on a whim, I switched the includes to inputs, then saved the master and did a View-PDF again. This time the output PDF file *was* updated. So, I switched the inputs back to includes and again executed View-PDF, and again the output PDF file was actually updated (and is different from the input version because of the page breaks...). What is going on here? (I have to mention an irony here... The third document in this set is an article about LyX!) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
George De Bruin wrote: I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. also 1.1.6fix1 with 8 include-files, editing the second, saving, switching to master and ctrl-shift-D gives correct dvi. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Master Documents?
I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. This was where I experimented with changing between article and book class on the master document to see if it made a difference: it didn't. The updated files weren't compiled into the PDF file. I should also note here, that all of the files are in the same directory. And the directory doesn't have an spaces in the path: ~/gdb/LinuxDesktop At this point I decided that may I needed to force an update to the PDF file. So, I went ahead and executed View-Update-PDF, then tried View-PDF. Same result, the PDF file wasn't updated with the include file. Now, on a whim, I switched the includes to inputs, then saved the master and did a View-PDF again. This time the output PDF file *was* updated. So, I switched the inputs back to includes and again executed View-PDF, and again the output PDF file was actually updated (and is different from the input version because of the page breaks...). What is going on here? (I have to mention an irony here... The third document in this set is an article about LyX!) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording Collection is available now!
Re: Master Documents?
George De Bruin wrote: I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View-PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View-PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. also 1.1.6fix1 with 8 include-files, editing the second, saving, switching to master and ctrl-shift-D gives correct dvi. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Master Documents?
I'm using LyX version 1.1.6Fix1. I have a master document that includes three files (I've tried both Article and Book class to see if it made a difference: it didn't). The includes are preceeded by a title, author and TOC. All of the include files are Article class LyX files. In the master document, I execute View->PDF. The PDF file is compiled and displayed. Everything is fine, the table of contents is generated, etc. Then I go ahead and load the 2nd include file, edit it, and save the file. Do the same with the 3rd include file. Go back to the master and execute View->PDF again. The resulting PDF file is not updated. The changes made to the 2nd and 3rd documents aren't included. This was where I experimented with changing between article and book class on the master document to see if it made a difference: it didn't. The updated files weren't compiled into the PDF file. I should also note here, that all of the files are in the same directory. And the directory doesn't have an spaces in the path: ~/gdb/LinuxDesktop At this point I decided that may I needed to force an update to the PDF file. So, I went ahead and executed View->Update->PDF, then tried View->PDF. Same result, the PDF file wasn't updated with the include file. Now, on a whim, I switched the includes to inputs, then saved the master and did a View->PDF again. This time the output PDF file *was* updated. So, I switched the inputs back to includes and again executed View->PDF, and again the output PDF file was actually updated (and is different from the input version because of the page breaks...). What is going on here? (I have to mention an irony here... The third document in this set is an article about LyX!) -- George J. De Bruin Check Out 0l0rin's New Age compositions at http://mp3.com/0l0rin 0l0rin's latest recording "Collection" is available now!
Re: Master Documents?
George De Bruin wrote: > > I'm using LyX version 1.1.6Fix1. > > I have a master document that includes three files (I've tried both Article > and Book class to see if it made a difference: it didn't). The includes are > preceeded by a title, author and TOC. All of the include files are Article > class LyX files. > > In the master document, I execute View->PDF. The PDF file is compiled and > displayed. Everything is fine, the table of contents is generated, etc. > > Then I go ahead and load the 2nd include file, edit it, and save the file. > Do the same with the 3rd include file. > > Go back to the master and execute View->PDF again. The resulting PDF file is > not updated. The changes made to the 2nd and 3rd documents aren't included. also 1.1.6fix1 with 8 include-files, editing the second, saving, switching to master and ctrl-shift-D gives correct dvi. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/