Re: BibTeX and master documents

2007-02-05 Thread Daniel Lohmann
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

2007-02-05 Thread Daniel Lohmann
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

2007-02-05 Thread Daniel Lohmann
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

2007-02-02 Thread Daniel Lohmann


[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

2007-02-02 Thread Richard Heck

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

2007-02-02 Thread Daniel Watkins
-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

2007-02-02 Thread Daniel Lohmann


[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

2007-02-02 Thread Richard Heck

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

2007-02-02 Thread Daniel Watkins
-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

2007-02-02 Thread Daniel Lohmann


[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

2007-02-02 Thread Richard Heck

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

2007-02-02 Thread Daniel Watkins
-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

2007-01-31 Thread John Hughes
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

2007-01-31 Thread John Hughes
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

2007-01-31 Thread John Hughes
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

2007-01-30 Thread 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?


Thanks

John

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com




Re: BibTeX and master documents

2007-01-30 Thread Ingar Pareliussen
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

2007-01-30 Thread Georg Baum
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

2007-01-30 Thread christian . ridderstrom

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

2007-01-30 Thread 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?


Thanks

John

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com




Re: BibTeX and master documents

2007-01-30 Thread Ingar Pareliussen
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

2007-01-30 Thread Georg Baum
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

2007-01-30 Thread christian . ridderstrom

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

2007-01-30 Thread 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?


Thanks

John

_
MSN Hotmail is evolving – check out the new Windows Live Mail 
http://ideas.live.com




Re: BibTeX and master documents

2007-01-30 Thread Ingar Pareliussen
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

2007-01-30 Thread Georg Baum
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

2007-01-30 Thread christian . ridderstrom

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