Re: Multiple chapters

2010-09-17 Thread Richard Heck

On 09/17/2010 01:05 PM, RobyC. wrote:
Thank you. I've selected a master document for all my chapters. If I 
open the master document (in pdf, for example) there aren't problems, 
but if I open only one chapter the references in the document appears 
like "[?]". Anyway I can insert the references in the document so the 
function works well, but the output is still a [?].  Peraphs it's a 
little bug of lyx.


Oh, I see, we're not talking about opening the document but about 
viewing it as PDF: compiling it.


The sort of hack mentioned on the wiki is the only way around this. It's 
not so much a bug as a limitation of LaTeX. That said, 2.0 will include 
support for the LaTeX \includeonly command, which allows you to view the 
master document but not actually to compile the whole thing, that is, 
only to do certain of the children. That effectively solves your problem.


Richard



Re: Multiple chapters

2010-09-17 Thread RobyC.
Thank you. I've selected a master document for all my chapters. If I 
open the master document (in pdf, for example) there aren't problems, 
but if I open only one chapter the references in the document appears 
like "[?]". Anyway I can insert the references in the document so the 
function works well, but the output is still a [?].  Peraphs it's a 
little bug of lyx.

Thank you so much for your reply

Roberto

On 16/09/2010 13:40, Richard Heck wrote:
I assume you are including all these chapters in some master document. 
If you open the master document first, then LyX automatically opens 
all the chapters, and they will "see" the bibliography, which you can 
put wherever you like. I usually put that in the master document at 
the end.



What's probably happening is that you are opening the chapters 
directly. Now LyX doesn't see the master document, so it doesn't see 
the bibliography. This is what the "default master document" feature 
is for. Go to Document>Settings, and in the Document Class pane, at 
the bottom, check the "Select Master Document" button. Then use the 
Browse button to find the master document. Now, when you open the 
chapter, it will know that it is a child of the master document, and 
LyX will open it and all its children, and all is well.


Richard



Re: Multiple chapters

2010-09-16 Thread Richard Heck

On 09/16/2010 04:54 AM, RobyC. wrote:

Hi all,
I'm writing my thesis with Lyx and I'm organizing it in several 
chapters and a bibliography.


Every chapter have reference to the same bibliography but to cite 
bibliography entries I must include bibliography (generated by bibtex 
using referencer) in every chapter!
By this way I have several bibliography in my output and obviously I 
don't need it.


What can I do to cite bibliography entries without printing them at 
the end of every chapter?


I assume you are including all these chapters in some master document. 
If you open the master document first, then LyX automatically opens all 
the chapters, and they will "see" the bibliography, which you can put 
wherever you like. I usually put that in the master document at the end.


What's probably happening is that you are opening the chapters directly. 
Now LyX doesn't see the master document, so it doesn't see the 
bibliography. This is what the "default master document" feature is for. 
Go to Document>Settings, and in the Document Class pane, at the bottom, 
check the "Select Master Document" button. Then use the Browse button to 
find the master document. Now, when you open the chapter, it will know 
that it is a child of the master document, and LyX will open it and all 
its children, and all is well.


Richard



Multiple chapters

2010-09-16 Thread RobyC.

Hi all,
I'm writing my thesis with Lyx and I'm organizing it in several chapters 
and a bibliography.


Every chapter have reference to the same bibliography but to cite 
bibliography entries I must include bibliography (generated by bibtex 
using referencer) in every chapter!
By this way I have several bibliography in my output and obviously I 
don't need it.


What can I do to cite bibliography entries without printing them at the 
end of every chapter?


I did also read the "extended feature" chapter of the Lyx guide. It 
suggest to include these strings in the preamble|:

||\usepackage{comment}

\includecomment{comment}

but isn't working anyway.

Thank you all
||
|