Attached is a simple patch that cleans up the CV class layouts.

There is no change in functionality and also no label or name is changed, but as I'm the author of these files and want to have them in a clean state to easy up the maintaining.

OK to commit?

regards Uwe
Index: europecv.layout
===================================================================
--- europecv.layout	(revision 18672)
+++ europecv.layout	(working copy)
@@ -62,19 +62,9 @@
 End
 
 Style BulletedItem
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		ecvitem*
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Bulleted Item:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style Begin
@@ -82,7 +72,7 @@
 	LatexType		Command
 	LatexName		begin{europecv}
 	KeepEmpty		1
-	BottomSep			1
+	BottomSep		1
 	ParSkip			0.4
 	Align			Block
 	LabelSep		xx
@@ -95,19 +85,10 @@
 End
 
 Style PersonalInfo
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Begin
 	LatexName		ecvpersonalinfo{}
-	KeepEmpty		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
+	BottomSep		0
 	LabelString		"Personal Info"
-	LabelFont
-	  Series		Bold
-	  Color			Green
-	EndFont
 End
 
 Style MotherTongue
@@ -127,65 +108,29 @@
 End
 
 Style LangHeader
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		MotherTongue
 	LatexName		ecvlanguageheader
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
+	OptionalArgs		0
 	LabelString		"Language Header:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style Language
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		MotherTongue
 	LatexName		ecvlanguage
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Language:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style LastLanguage
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		MotherTongue
 	LatexName		ecvlastlanguage
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Last Language:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style LangFooter
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		MotherTongue
 	LatexName		ecvlanguagefooter
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
+	OptionalArgs		0
 	LabelString		"Language Footer:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style End
Index: moderncv.layout
===================================================================
--- moderncv.layout	(revision 18672)
+++ moderncv.layout	(working copy)
@@ -79,83 +79,33 @@
 End
 
 Style ListItem
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		cvlistitem
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"List Item:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style DoubleItem
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		cvlistdoubleitem
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Double Item:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style Space
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		vspace*
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Space:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style Language
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		cvlanguage
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Language:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style Computer
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		Item
 	LatexName		cvcomputer
-	OptionalArgs		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Computer:"
-	LabelFont
-	  Series		Bold
-	  Color			Blue
-	EndFont
 End
 
 Style EmptySection
@@ -175,19 +125,9 @@
 End
 
 Style CloseSection
-	Margin			Dynamic
-	LatexType		Command
+	CopyStyle		EmptySection
 	LatexName		closesection{}
-	KeepEmpty		1
-	ParSkip			0.4
-	Align			Block
-	LabelSep		xx
-	LabelType		Static
 	LabelString		"Close Section"
-	LabelFont
-	  Series		Bold
-	  Color			Green
-	EndFont
 End
 
 Style Bibliography

Reply via email to