> The LyX-internal stuff isn't so hard. We know the path on which we > search for stuff, so we can just search it again to find the layout and > module files that are needed. As for the LaTeX stuff, I'm less than > certain we want to allow embedding of those. But if we do, can't we call > kpsewhich or something to find them? Or does that command not exist > under all installations?
This feature aims at particular cls file provided by journals and publishers. For example, the book I am writing uses wiley monograph latex template, which has .bst, .sty, .cls and .ist files, and a layout file prepared by myself. It would be a lot of work to automatically include all these files. For example, w-bookps.sty is used in the preamble, and we will have to scan the user-specified preamble to automatically include this file. Bo