On 2010-06-07, Jürgen Spitzmüller wrote:
> Guenter Milde wrote:
>> There is already a feature request for proper support of "includeonly".
>> Maybe you can add to it.

> And the feature is already implemented in Lyx 2.0. 

Good news.

> However,
...
>> 1. require caching of aux files
...

> I don't see how this can be done. Without regenerating the aux files,
> we cannot determine whether the aux files (i.e. the counters) will
> change.

I suppose we can compare modification times of the corresponding *.lyx
and *aux files and regenerate them only if there are changes.

As changed page or section numbers affect subsequent sub-documents, *.aux
regeneration must be done for all sub-documents from the changed one to
the current one.

Example:

  * parent.lyx includes child1.lyx, child2.lyx, ... , child5.lyx
  
  * child2.lyx is newer than child2.aux
  
  Compiling child4.lyx with "includeonly" requires update of
  child2.aux and child3.aux. 
  -> run latex with "includeonly child2",
     run latex with "includeonly child3",
     run latex with "includeonly child4" (possibly several times)
  
> To put it differently: it can be done, but only at the cost of
> probably incorrect output.

I suppose the OP will prefer manual updating (or probably incorrect
numbers) over waiting 20 min for an update of the document view. 
So do I.

Thanks for your work,

Günter

Reply via email to