On Tuesday 04 February 2003 08:52, Lars Gullik Bjønnes wrote:
> |   Yes, I know that. And actually adding
> |
> | Input stdcounters.inc
> | Input stdfloats.inc
> |
> |   to both linuxdoc.layout and db_stdclass.inc will do most of the work.
> |
> |   Is that reasonable?
>
> Perhaps...

  Can I can I commit that? (patch attached)

> |
> |   Ok. But why doesn't it work for sections?
>
> Wrong names for the counters?

  As an example in docbook section is sect1, although its layout name is 
section. If I do not declare any counter lyx complains that counter sect1 is 
not defined. If add its definition

Counter
  Name                 sect1
  Within               chapter
End

  LyX does not complain but it doesn't show also the number. Where can I read 
more about it?

-- 
José Abílio
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	4 Feb 2003 09:09:04 -0000
@@ -43,3 +43,5 @@ Input db_stdtitle.inc
 Input db_stdstruct.inc
 Input db_lyxmacros.inc
 Input db_stdlayouts.inc
+Input stdcounters.inc
+Input stdfloats.inc
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	4 Feb 2003 09:09:04 -0000
@@ -11,6 +11,9 @@ MaxCounter		Counter_Section
 OutputType		linuxdoc
 DefaultStyle		Standard
 
+Input stdcounters.inc
+Input stdfloats.inc
+
 # Standard style definition
 Style Standard
   Margin  		Static

Reply via email to