I don't know if anyone's thought of this before, but I was just wrestling
with yet another file include problem when I thought "Why doesn't LyX just
define all its commands in a package called lyx"?
Is there a good reason why not? It simplifies the logic of the LyX program
(which need not work out what commands to put in the TeX file) and makes
file inclusion work.
(The reason I had a problem is that I was including a document which had
its own title; if I include it as LyX the title comes out as plain text; I
include it instead as LaTeX, using a package that redefines the title
commands and document environment.)
Anyway, having a lyx package would seem to make things a lot simpler.
--
http://sc3d.org/rrt/ | certain, a. insufficiently analysed