On Fri, 9 Jun 2006, Jean-Marc Lasgouttes wrote:

"Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes:

Jose'>   The question here, as far I understand, it is one about
Jose'> templates. When you insert a table, it appears a table that
Jose'> follows a given template.

One idea I had about templates was to have the possibility to add insets to .lyx/templates/default.lyx or some other files that would be copied when creating a new inset of this type. So, if you put a figure inset with a bogus caption and a centered graphics inset above, a copy of this would be used when inserting a new figure float.

Funny, I just had that idea myself.

I didn't get the bit about "some other files that would be copied when creating a new inset of this type.".

However, couldn't we use labels (or a section heading) to denote different styles? For instance, let's say .lyx/templates/default.lyx contains the section heading:
        Tabular style empty
and just after the heading there's an empty table.

Then, when creating a table, it's possible to select "Tabular style empty" from a dropdown list, and a copy of what's after the section heading is inserted in the current document.

This could be generalized quite a bit actually for both tables, figures and algorithms.

For tables, the situation is a bit more complicated, since there are variable sizes. However, the corner cells of the template tabular could be taken as model for the corners, the first side cells ((2,1), (1,2), (m,2), (2,m)) as model for sides and some middle cell as model for the center cells.

Yeah, it is more complicated for tables... but just being able to easily insert parts from a template file would be very convenient.

Ideal would of course be to able to define the tabular style separately, and then make sure that all tables automatically follow one style.

/Christian

--
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to