>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:
Bo> Dear developers, This is my first patch towards more clever use of Bo> .layout files. It is been tested for 1.4.1svn, 1.5.xsvn, on both Bo> windows and linux systems. Bo> What does it do? 1. When open path/file.lyx with unknown class, Bo> check for path/class.layout 2. load path/class.layout. class.cls Bo> can be local (in path, most likely) or anywhere in $TEXINPUTS You assume that foo.layout uses foo.cls. This is wrong, especially when people create myarticle.layout as article.cls with some preamble things added. Bo> Why is it needed? 1. This allows users to easily share .lyx Bo> document in different class. They do not have to change local Bo> settings to open a foreign .lyx file. 2. Save us some typing to Bo> answer questions like this from lyx-user. I understand why it is needed in some way. I am not sure though that this implementation is the right one. In particular, what happens when two different classes with same name are used in two documents? I really think the class should not be added to textclasslist but that bufferparams should have a notion of local textclass. Bo> I recommend that this patch goes to 1.4.1. If not, please, 1.5.x. We need to sort some issues out first. JMarc