Jean-Marc Lasgouttes wrote:

> Goerg, this is what happens when something like numarticle.inc is not
> loaded after stdsection.inc. What shall we do?

The question is: Do we regard our .inc files as part of the layout file
interface, or are they just an implementation detail? Of course the former
would be nicer to users.

> I tend to think numarticle.inc should be merged into stdsection.inc,
> since numreport already includes it anyway.

Probably, or are there classes without numbered sections? Why was it
separated in the first case?

> Or do you have a bright idea about what layout2layout could do?

No. The obvious idea to add numarticle.inc if it is not already there and
stdsection.inc is included does not work if numreport.inc is included
already, or if numarticle.inc is included via another .inc file.
If we want to do it right, it becomes complicated. Actually it would not be
complicated at all if my fix for bug 2026 is applied, then we simply could
read all included files recursively and can precisely decide whether
numarticle.inc is needed or not. But I would only do this if there is a
good reason to not merge numarticle.inc into stdsection.inc.

The current solution is a notice to include one of the num*.inc in
Customization.lyx if one gets errors.


Georg

Reply via email to