On Mon, Sep 02, 2002 at 11:09:32PM +0200, Lars Gullik Bjønnes wrote: > This is my patch for this. > This is basic support, it can be enhanced with, NoFloat, CopyFloat > etc. if wanted. > > The fileformat changed slightly after the example I posted ealier. > > Comments please. >
After setting up the AGUplus textclass/layout file -- the one with Plate and Planotable -- LyX complains about the counters for these not being defined. Correctly of course. The attached patch fixes this, but is ugly. We really need to somehow get the floatlist into the Counters c'tor, to name the floats that need to have a counter and their "master", i.e., their "within" parameter. But I am lost to see how... Attached also the work-in-progress layout file. > > -- > Lgb Martin
Index: counters.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/counters.C,v retrieving revision 1.12 diff -u -p -r1.12 counters.C --- counters.C 2002/08/12 20:24:07 1.12 +++ counters.C 2002/09/04 14:21:36 @@ -107,6 +107,9 @@ Counters::Counters() // Float counters: newCounter("Figure"); newCounter("Table"); + newCounter("Algorithm"); + newCounter("Plate"); + newCounter("Planotable"); }
#% Do not delete the line below; configure depends on this # \DeclareLaTeXClass{article (AGU++) aguplus} # AGUplus textclass definition file. # Author: Martin Vermeer <[EMAIL PROTECTED]> # Input general definitions Input stdclass.inc # a few changes to the bibliography Style Bibliography TopSep 4 LabelString Bibliography # label font definition LabelFont Series Bold Size Huge EndFont End # plate Float Type plate GuiName Plate Placement htbp Extension lof NumberWithin none Style plain LatexBuiltin false End # planotable Float GuiName Planotable Type planotable Placement htbp Extension lot NumberWithin none Style Ruled LatexBuiltin false End # Table Caption style definition Style Table_Caption Margin First_Dynamic LatexType Command LatexName tablecaption NeedProtect 1 LabelSep xx ParSkip 0.4 TopSep 0.5 Align Center AlignPossible Center LabelType Sensitive LabelString TableCaption # label font definition LabelFont Series Bold EndFont End
msg44022/pgp00000.pgp
Description: PGP signature