Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
| 
| Lars> The problem with insetcaption is that it exists in a paragraph
| Lars> and also contains a paragraph. the alignment of the inset
| Lars> depends on the outer par, and the drawing of the caption on the
| Lars> inner par.
| 
| That's why I always told that caption should _not_ be an inset.

It makes just as little sense as a paragraph layout...


| It
| should be a normal paragraph, but hold a label (not in the latex
| sense) inset which is specific to captions. 

The problem with this is special cases. We have still have a _lot_ of
code to handle the spacial cases of sections, different kind of labes
and lists. Ever wondered why LyXText is so hard to read and modify?
And to support caption.sty without having caption as a inset will only
add even more special cases when we want to have less.

| What happens if you try to add characters before or after the inset,
| but within the holding paragraph??

There will be chars before and after the caption "abc\caption{}abc".
Try it.

The best would be to have the document be a list of Insets. With only
a few insets allowed at the first level: InsetParagraph.
Of course I also see the problem with this since we then are
effectvely merging the data and the view... but we already have that
problem with insets... (actually it should be possible to split the
insets...)

        Lgb

Reply via email to