John Levon wrote:
On Mon, Oct 01, 2007 at 12:44:35PM -0400, Richard Heck wrote:

I'm not sure what you mean by `transmitted' here. But at present, charstyle definitions are stored in layout files or, at least in 1.6.svn, in layout "modules", which can be used with different document-class layouts. (This is at least some improvement.) But it does seem to me that there ought to be some sort of on-the-fly alternative. One possibility is to store them in the document itself. But if they are in the document, there ought to be the possibility of writing them to a module, so they could be used with other documents, too, and that seems messy. Another option would be to write them to a layout module that is associated with the document. E.g., if the document is file.lyx, then the charstyles get written to file_charstyles.module, which then gets written to the list of included modules, too---so we're not actually depending upon the fact that the names will continue to correspond, and the module will automatically get loaded. Note, by the way, that this same module could actually be used for other on-the-fly layout it might be possible to generate.
Then I send file.lyx to a colleague and the doc is broken. This is the
sort of thing I mean by "transmitted". It's not easy. We clearly need
both layout-based and ad-hoc char styles. The former needs to go in (or
associated with) the layout, the latter with the document, and even with
the user.
Yes, I see. I can see the case for document-internal stuff, then. And I'm glad, actually. I had anticipated doing something like this when doing the modules work, namely, that there would be a document-specific "layout" section, not unlike the current LaTeX preamble section. But various people talked me out of it. I can't now remember why.

Richard

Reply via email to