Hi, I know that this comes late in the dev cycle, but I forgot this patch.
What is weird is that even if I define the right counters I don't get a count for section-like layouts. It doesn't complain also. Any hint? Notice that the enumerate layout works as expected, at different depths and so on. So this fixes all the cases for both linuxdoc and docbook with exception of section like layouts. -- José Abílio
Index: db_lyxmacros.inc =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/db_lyxmacros.inc,v retrieving revision 1.3 diff -u -p -r1.3 db_lyxmacros.inc --- db_lyxmacros.inc 24 Oct 2001 13:08:51 -0000 1.3 +++ db_lyxmacros.inc 3 Feb 2003 18:46:05 -0000 @@ -16,6 +16,15 @@ Style Code PassThru 1 End +# Screen style definition +Style Screen + LatexType Paragraph + LatexName screen + Font + Family Typewriter + EndFont +End + # Comment style definition Style Comment LatexType Paragraph Index: db_stdclass.inc =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/db_stdclass.inc,v retrieving revision 1.2 diff -u -p -r1.2 db_stdclass.inc --- db_stdclass.inc 5 Mar 2002 13:38:39 -0000 1.2 +++ db_stdclass.inc 3 Feb 2003 18:46:05 -0000 @@ -43,3 +43,6 @@ Input db_stdtitle.inc Input db_stdstruct.inc Input db_lyxmacros.inc Input db_stdlayouts.inc +Input stdcounters.inc +Input dbcounters.inc +Input dbfloats.inc Index: dbcounters.inc =================================================================== RCS file: dbcounters.inc diff -N dbcounters.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dbcounters.inc 3 Feb 2003 18:46:05 -0000 @@ -0,0 +1,30 @@ +# Author : José Matos <[EMAIL PROTECTED]> + +# This include file contains all the counters that are defined as standard +# in most LyX layouts. + + +Counter + Name sect1 + Within chapter +End + +Counter + Name sect2 + Within sect1 +End + +Counter + Name sect3 + Within sect2 +End + +Counter + Name sect4 + Within sect3 +End + +Counter + Name sect5 + Within sect4 +End \ No newline at end of file Index: dbfloats.inc =================================================================== RCS file: dbfloats.inc diff -N dbfloats.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dbfloats.inc 3 Feb 2003 18:46:05 -0000 @@ -0,0 +1,27 @@ +# Author : Lars Gullik Bjønnes <[EMAIL PROTECTED]> + +# This include file contains all the floats that are defined as standard +# in most LyX layouts. + + +Float + Type table + GuiName Table + Placement tbp + Extension lot + NumberWithin none + Style plain + ListName "List of Tables" + LaTeXBuiltin true +End + +Float + Type figure + GuiName Figure + Placement tbp + Extension lof + NumberWithin none + Style plain + ListName "List of Figures" + LaTeXBuiltin true +End Index: ldcounters.inc =================================================================== RCS file: ldcounters.inc diff -N ldcounters.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ldcounters.inc 3 Feb 2003 18:46:05 -0000 @@ -0,0 +1,28 @@ +# Author : José Matos <[EMAIL PROTECTED]> + +# This include file contains all the counters that are defined as standard +# in most LyX layouts. + +Counter + Name sect +End + +Counter + Name sect1 + Within sect +End + +Counter + Name sect2 + Within sect1 +End + +Counter + Name sect3 + Within sect2 +End + +Counter + Name sect4 + Within sect3 +End Index: linuxdoc.layout =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/linuxdoc.layout,v retrieving revision 1.7 diff -u -p -r1.7 linuxdoc.layout --- linuxdoc.layout 5 Mar 2002 13:38:39 -0000 1.7 +++ linuxdoc.layout 3 Feb 2003 18:46:05 -0000 @@ -3,6 +3,9 @@ # LinuxDoc textclass definition file. # Author : Pascal André <[EMAIL PROTECTED]> +Input ldcounters.inc +Input stdcounters.inc + # General textclass parameters Columns 1 Sides 1