>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:

>> I'm having trouble thinking of a truly intuitive inset-based method

Martin> Finally someone asking the right question!

Yes.

Martin> So the simplest solution is a collapsible text inset at the
Martin> start of a section (sub*(section|paragraph)), caption) layout.
Martin> Keeping the layout mechanism for sections etc. as it is. I
Martin> hope to come up with something to show soon (the C++ gods
Martin> allowing).

Yes, we should have something like the bibitem inst we already have,
_except_ that the implementation of bibitem inset is really really
crappy. 

Martin> [One elegant idea I had at some point was making the section
Martin> number itself (a layout "label" now) into a button, which
Martin> expands into a shorttitle inset on click. This is intuitive in
Martin> the sense, that only sections with numbers go to the TOC. The
Martin> inset object could be made "self-numbering", i.e., handling
Martin> the code for generating these numbers, which currently is
Martin> somewhat messy from what I've seen. The idea to make layout
Martin> labels into insets could be taken further, e.g., to cover the
Martin> "description" and "list" layout labels as well, which are now
Martin> special-cased in a somewhat ugly way.]

This is exactly what I have in mind (but lars did not like it, I seem
to remember). We need something like that for lists anyway.

Martin> This means, providing mechanisms for

Martin> 1) limiting the occurrence of these insets only to places
Martin> where they make sense, and 2) making sure that on output of a
Martin> section header e.g., we get \section[shortheader]{section
Martin> header text} with [shortheader] inserted at the right point,
Martin> and left out if empty. (Q.: should absence of short title be
Martin> indicated by absence of inset, or empty inset?)

I think we need a bool saying whether we want an alternative title or
not. Empty is different. This is especially true for \item[], and I
think we should design a solution that works for that too.

Martin> How to do both these things is mystical to me still. I have
Martin> however a design (in my patch) for how to represent these
Martin> insets in the .lyx file format, and how to mark layouts in the
Martin> .layout files for allowing short titles to be given. Still
Martin> waiting for comment on those :-)

Probably allowing shorttitle could be indicated in the labelstyle,
but I'm not eally sure it will work for all.

Martin> However, current CVS contains "first tries" for section and
Martin> caption insets, not enabled yet. I don't know precisely what
Martin> was the motive for writing these. 

I think lars wanted section titles to be inset. I'd rather (and I
think Jug was of the same opinion) have the label of these things be
an inset. There is potential here to simplify the drawing code for
labels, BTW.

Martin> As Allan remarked, a section inset could be made to include
Martin> all the text following it to the next, and made collapsible,
Martin> giving us in effect "outline mode" of emacs/MS Word. But this
Martin> is a separate issue perhaps to be left outside this discussion
Martin> now.

I think we can indeed forget about this for now.

JMarc

Reply via email to