John Levon wrote:
On Mon, Oct 01, 2007 at 12:29:14PM -0400, Richard Heck wrote
What did you do with the charstyle once you had it? Write it to a file?
This I think is the difficult bit. Where are they stored, and how are
they transmitted? "It's a layout thing" won't do...
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.
Richard