Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Martin Vermeer
On Wed, Apr 05, 2006 at 10:32:27PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> A compromise would be to allow user-defined / per-document > Martin> paragraph styles, like the patch for character styles I > Martin> presented some wee

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Bo Peng
> But I agree we have to be careful. We need to provide what is useful, > while making the rest difficult. The problem is that I do not know how > to do that. I had some local .cls/.layout ideas but since we have not decided on where to proceed, I will stop with a few basic improvements that will

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> A compromise would be to allow user-defined / per-document Martin> paragraph styles, like the patch for character styles I Martin> presented some weeks ago. It is your patch that got me thinking. There is not a big distance betw

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Martin Vermeer
On Wed, Apr 05, 2006 at 03:04:31PM -0500, Bo Peng wrote: > > The textclass would be private to the document, actually. I even > > wonder whether the layout file should be _included_ in the LyX file. > > This is a good idea, and should be seriously considered. Inclusion of > a .layout file has at l

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Bo Peng
> The textclass would be private to the document, actually. I even > wonder whether the layout file should be _included_ in the LyX file. This is a good idea, and should be seriously considered. Inclusion of a .layout file has at least the following advantages 1. No separate .layout file to worry

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> OK. But that would also mean that it is possible to create a Georg> document with a layout from another directory, simply because a Georg> file from that directory was open, and when you open the Georg> document the next time without t

Re: Automatic recognization of .cls/.layout files.

2006-04-05 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> I do not quite get what you have in mind. Do you still want Bo> configure.py to build textclass.lst and read the list when lyx Bo> starts? No, the question is whether LyX can do that dynamically by itself. Bo> 1. users can choose all availab

Re: Automatic recognization of .cls/.layout files.

2006-04-04 Thread Bo Peng
> Assuming that this is 1.5 material, we could also try to reconsider > the way we detect textclasses. If we get rid of the current > \DeclareLaTeX class stuff and replace it with normal layout tags, will > we be able to read and detect classes on-the-fly using kpsewhich (or > linking to kpathsea l

Re: Automatic recognization of .cls/.layout files.

2006-04-04 Thread Georg Baum
Am Montag, 3. April 2006 11:37 schrieb Jean-Marc Lasgouttes: > Assuming that this is 1.5 material, we could also try to reconsider > the way we detect textclasses. If we get rid of the current > \DeclareLaTeX class stuff and replace it with normal layout tags, will > we be able to read and detect c

Re: Automatic recognization of .cls/.layout files.

2006-04-03 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Yes, 2. is definitely not good. Actually we should never use current | directory in LyX. yes. and Path should die. -- Lgb

Re: Automatic recognization of .cls/.layout files.

2006-04-03 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: >> 1. When lyx starts, compare the dates between >> $HOME/.lyx/textclass.lst and $HOME/.lyx/layouts. If new layouts >> have been added to local layout directory. Run a (partial) >> reconfigure before lyx starts. (This can be done through a ca

Re: Automatic recognization of .cls/.layout files.

2006-04-01 Thread Bo Peng
> > 3. A "load" button next to the "document class" list in the "document > > settings" dialog so a user can specify a layout file without > > reconfiguration. > > I would prefer 1., 1 is almost done. (see my 'auto-reconfigure' patch. > and additionally > 4. When a document is loaded, and the te

Re: Automatic recognization of .cls/.layout files.

2006-04-01 Thread Georg Baum
Am Freitag, 31. März 2006 19:11 schrieb Bo Peng: > What would be more convenient to users? What do you think about the > following possibilities? (Please *only* think from a user's > prospective. :-) > > 1. When lyx starts, compare the dates between $HOME/.lyx/textclass.lst > and $HOME/.lyx/layout