Re: cross-references missing when compiling child-document

2010-02-11 Thread Jürgen Spitzmüller
Stefan Verhaegh wrote:
> For the last two years I have been a very happy user of Lyx (currently
> version 1.6.5 on Windows XP in combination with TexLive 2009) for writing
> my PhD thesis.
> 
> But now I have stumbled across something strange in relation to
> cross-references since I have split up my thesis into a master document
> with child-documents for the different chapters:
> * whenever I compile the child-documents into pdf, this results in
> cross-references being replaced with "??" double question-marks.
> * whenever I compile the masterdocument this results in correct references
> to chapters, sections or pagenumbers.
> 
> Is this behaviour a bug, feature or user error?

If you are talking to references which point to labels outside the given 
child: yes, this is expected behaviour. LaTeX cannot know the exact references 
as long as only the child is compiled.

One solution to output only a child, but with correct references, is the LaTeX 
feature \includeonly (this requires compilation of the whole document as well, 
though). Alas, this does not work well with current LyX. The next major 
release (1.7 or 2.0) will have proper support for this. 

Jürgen


cross-references missing when compiling child-document

2010-02-11 Thread Stefan Verhaegh
Hi

For the last two years I have been a very happy user of Lyx (currently
version 1.6.5 on Windows XP in combination with TexLive 2009) for writing my
PhD thesis.

But now I have stumbled across something strange in relation to
cross-references since I have split up my thesis into a master document with
child-documents for the different chapters:
* whenever I compile the child-documents into pdf, this results in
cross-references being replaced with "??" double question-marks.
* whenever I compile the masterdocument this results in correct references
to chapters, sections or pagenumbers.

Is this behaviour a bug, feature or user error?

Unfortunately I could not find the answer in the Help documentation.
The "additional features", section 3.2.2 "3.2.2 Cross-References Between
Files" reads the following:
"This section is somewhat out of date. Need to describe default master
documents and how children are opened when the master is. [[FIXME]]"

Also searching the lyx-user list archives I could not find an answer.

Although using a "one-big-document" approach is an easy solution for correct
cross-references in the pdf-output, I would prefer the elegance of a modular
workflow based on a single master-document and multiple child-documents.
Especially as in this stage I am working with different people on different
chapters at the same time.

thanks in advance for any further suggestions,

Stefan Verhaegh