On Fri, Apr 25, 2008 at 09:05:16AM +0200, Abdelrazak Younes wrote: > Enrico Forestieri wrote: [...] > > However, I share the concerns of others and think that you are > > starting from bottom, rather than from top. I mean that the old > > functionality should be restored first, and then we can build on > > that. > > As I said, I don't think I have the required knowledge to do things this > way. I am offering to at least enable contcaption support if someone > gives me a hand with this; if not, then I don't have the time to acquire > the necessary knowledge and things will stay the same for 1.6. If > someone think about the format change (if any) and implement it now, > maybe we can do this in 1.6.x time.
Abdel, I really don't understand if you understood what the problem is. You don't have to enable contcaption support, specifically, but the possibility to customize the onscreen caption appearance. No LaTeX knowledge is required for this. The easiest thing to do would be reverting caption to be an environment, but it seems that it would be more effective asking for the moon. So, let us suppose that it will remain an inset. Then, I would like to be able to put in a layout file the following lines (as an example): # Caption style re-definition InsetLayout Caption:Standard NextNoIndent 1 Align Center AlignPossible Block, Center Font Size small EndFont LabelFont Series Medium Shape Italic EndFont End in order to be able to customize its onscreen appearance. Then, as I am a bad boy, I would like to be able to also put the following in a layout file: # 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 End and would expect the following result: 1) Insert a caption 2) The caption inset appears and it uses the layout as specified in Caption:Standard above. 3) Hit right mouse button for a context menu. 4) The menu appears with two choices: "Standard" and "ContCaption". 5) Choose "ContCaption". 6) The inset layout is modified as specified in Caption:ContCaption above and the software makes sure that the LaTeX name "contcaption" is used instead of "caption". The layout file provides the necessary LaTeX code, you don't have to do anything in this respect. Then, I could also put the following in a layout file: # CaptionAbove definition InsetLayout Caption:CaptionAbove CopyInsetStyle Caption:Standard LatexName captionabove End 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. -- Enrico