Enrico Forestieri wrote:
On Fri, Apr 25, 2008 at 04:57:46PM +0200, Abdelrazak Younes wrote:
Enrico Forestieri wrote:
Such that in step 4) above the choices would now be: "Standard",
"ContCaption", and "CaptionAbove". Got it? You don't have to
hardcode anything, the caption inset should simply be customizable
through layout files.
Well what you describe is exactly what I understood for captionabove,
captionbelow, etc. And I of course agree that this is the way to go for
them. But I still don't understand why you want another specific layout
for contcaption. For one, you won't get the correct numbering on screen
as what my patch does.
It would simply be a matter of adding
AdvanceCounter No (or 0, or false, ...)
Yes, see my other messsage ;-)
LabelString "Fig. # (continued)"
where # would signal where the number has to appear, for example.
Hum, you'll also have to define Fig, Table, etc. I am not opposed but
this is starting to get a bit complicated, but why not.
And second I naively thought that continued
caption could be applicable to all kind of caption layouts (standard,
above, etc) and that it was consequently a caption property rather than
a layout.
It is a layout thing because it has to be provided by the class.
Without any consideration to latex, I think that's exactly
what I would expect as a user, that contcaption is just about numbering.
You cannot ignore latex, otherwise you should add proper code. This is
the job of layout files, not LyX, as you don't know whether the code
you are going to add will have compatibility problems with a given class.
Who writes the layout file, knows what class is used an what is the proper
code to add.
For example, I could use the a contcaption definition by using the caption
package when my class is based on article.cls, but I can avoid to add any
code altogether when using kapproc.cls because this class already provides
a (latex) contcaption definition. If you add code in LyX for contcaption,
you are going to make it unusable with kapproc.cls.
Ok, I trust you :-)
Abdel.