Re: [PATCH to 1.5.x] Try to load local textclass if it is not available.

2007-11-26 Thread Bo Peng
> Problem 1: Currently, lyx will not find local bioinfo.layout and .cls > because the entry in textclasslist is used, which says bioinfo.cls is > unavailable. I think local layout files, instead of system ones, > should be used when a local layout exists. I have submitted a modified patch to addre

Re: [PATCH to 1.5.x] Try to load local textclass if it is not available.

2007-11-24 Thread Bo Peng
> Makes sense. The problem is actually more complicated than I expected. In my case, I have a system bioinfo.layout under .lyx/layout, without system bioinfo.cls. I have newer version of bioinfo.layout and bioinfo.cls locally. Problem 1: Currently, lyx will not find local bioinfo.layout and .cls

Re: [PATCH to 1.5.x] Try to load local textclass if it is not available.

2007-11-23 Thread Jürgen Spitzmüller
Bo Peng wrote: > In case that textclass is listed, but unavailable, lyx should look for > a local copy. The attached simple patch does this. Makes sense. > Can I apply? Yes. Jürgen

[PATCH to 1.5.x] Try to load local textclass if it is not available.

2007-11-20 Thread Bo Peng
Dear all, Lyx can load class.layout and class.cls if they are *not* available systemwide. The logic in bufferparams.cpp is // look up in the class list pair pp = textclasslist.numberOfClass(classname); // if found if (pp.first) { textclass = pp.second; } else { // LOAD from current di