Martin Vermeer wrote:
This is actually an ugly corner of LyX. There is no clean way to modify
the layout file tree in cases like this. But of course one could take it
philosophically and say that, just like with ERT, you're on your own if
you write your own layouts. I suppose it would be better if we had a
graphical interface to create layout files: then those would always
include, or offer to include whatever you need for a certain version
of LyX to get certain functionality. (But then, how to move old layout files
forward? Allow only one level of include?)
If this problem is solvable for single-level include then it
is easy enough for multi-include too - one just have to do
the extra work of traversing the inclusion tree once. Then
you have a list of included files that can be processed as
in the single-level case.
Helge Hafting