The attached patch uses the new counter code to finally add KOMA's addchap and 
addsec to the navigation menu. Furthermore, it fixes the order of Inputs. 
André's change has broken the font redefinition (i.e., Chapter*, Addchap and 
friends were no more sans serif since the redefinition was after the Input).

OK to apply?

Jürgen. 
Index: lib/layouts/scrclass.inc
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/scrclass.inc,v
retrieving revision 1.9
diff -u -r1.9 scrclass.inc
--- lib/layouts/scrclass.inc	15 Sep 2003 15:20:19 -0000	1.9
+++ lib/layouts/scrclass.inc	21 Sep 2003 10:00:17 -0000
@@ -9,7 +9,6 @@
 TocDepth                2
 DefaultStyle            Standard

-
 Style Standard
 	LatexName             dummy
 	ParIndent             MM
@@ -17,27 +16,18 @@
 	AlignPossible         Block, Left, Right, Center
 End

-
 Input stdlists.inc
-Input stdfloats.inc
-Input stdsections.inc
-Input stdstarsections.inc
 Input stdcounters.inc
-Input stdtitle.inc
-Input stdstruct.inc
-Input stdlayouts.inc
-Input lyxmacros.inc
+Input stdfloats.inc
 
 NoStyle List
 
-
 Style Description
 	LabelFont
 	  Family              Sans
 	EndFont
 End
 
-
 Style Labeling
 	Margin                Manual
 	LatexType             List_Environment
@@ -55,6 +45,8 @@
 End
 
 
+Input stdsections.inc
+
 Style Part
 	Font
 	  Family              Sans
@@ -106,7 +98,7 @@
 	EndFont
 End
 
-
+Input stdstarsections.inc
 
 Style Addpart
 	CopyStyle             Part*
@@ -117,12 +109,14 @@
 Style Addchap
 	CopyStyle             Chapter*
 	LatexName             addchap
+	TocLevel              1
 End
 
 
 Style Addsec
 	CopyStyle             Section*
 	LatexName             addsec
+	TocLevel              2
 End
 
 
@@ -154,6 +148,7 @@
 	EndFont
 End
 
+Input stdtitle.inc
 
 Style Title
 	Font
@@ -223,6 +218,7 @@
 	LatexName             extratitle
 End
 
+Input stdstruct.inc
 
 Style Abstract
 	LabelFont
@@ -237,6 +233,7 @@
 	EndFont
 End
 
+Input stdlayouts.inc
 
 Style Captionabove
 	CopyStyle            Caption
@@ -264,3 +261,7 @@
 	  Size               Normal
 	EndFont
 End
+
+Input lyxmacros.inc
+Input scrmacros.inc
+

Reply via email to