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. 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. Without any consideration to latex, I
 think that's exactly what I would expect as a user, that contcaption
 is just about numbering.

Of course we could also have a tag 'numbering' that indicates how numbering is done. Taking your example, that would become:

# Caption style re-definition
InsetLayout Caption:Standard
 NextNoIndent          1
 Align                 Center
 AlignPossible         Block, Center
 Font
   Size                small
 EndFont
 LabelFont
   Series              Medium
   Shape               Italic
 EndFont
 Numbering             increment
End

# Continued Caption definition
InsetLayout Caption:ContCaption
 CopyInsetStyle        Caption:Standard
 LatexName             contcaption
 Preamble
 \usepackage{caption}
 \captionsetup{font=footnotesize,labelfont=it}
 \newcommand{\contcaption}[1]{\ContinuedFloat\caption{#1}}
 \DeclareCaptionLabelFormat{continued}{#1~#2 (continued)}
 \captionsetup[ContinuedFloat]{labelformat=continued}
 EndPreamble
 Numbering             stall
End

Martin, Richard, as you are the original authors of InsetFlex, do you think 
something like that can be easily implemented? I think this could be a nice 
improvment to InsetFlex.

Still, even if technically possible that would mean that we would need to also 
define other layouts such for contcaptionabove, etc, wouldn't we?


Abdel.




Reply via email to