lyx_mirror/lib/layouts/europecv.layout
Jürgen Spitzmüller 9e5eebc14c *** Requires tag for classes, layouts and custom insets ***
* src/TextClass{cpp,h}:
	- implement Requires tag for class and InsetLayout.
* src/Layout.{cpp,h}:
	- implement Requires tag for layouts.
	- increase layouts format to 6.
* src/Paragraph.cpp:
	- request required features for paragraph layouts.
* src/LaTeXFeatures.cpp:
	- add some packages needed by modules.
	- remove Preamble method for InsetLayout. This is now done
	  in InsetFlex::validate.
* src/BufferParams.cpp (validate):
	- request required features for the class.
* src/insets/InsetLayout.h:
	- new member "requires".
* src/insets/InsetFlex.{cpp,h}:
	- implement validate method and request required features and preamble snippets.

* lib/layouts/*.{layout,module,inc}:
	- increase layouts format to 6.
	- use Requires tags in some modules (more can be done later).

* lib/doc/Customization.lyx:
	- document Requires tag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 16:59:10 +00:00

153 lines
2.4 KiB
Plaintext

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{curriculum vitae (Europe)}
# europe CV textclass definition file.
# Author : Uwe Stöhr (uwestoehr@web.de)
# General textclass parameters
Format 6
Columns 1
Sides 1
SecNumDepth -1
TocDepth -1
# Standard style definition
Style Standard
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
LabelType No_Label
End
Input stdcounters.inc
Style Section
Margin Dynamic
LatexType Command
LatexName ecvsection
NeedProtect 1
NextNoIndent 1
OptionalArgs 1
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
LabelSep xxx
LabelType No_Label
Font
Family Sans
Series Bold
EndFont
End
Style Item
Margin Dynamic
LatexType Command
LatexName ecvitem
OptionalArgs 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Item:"
LabelFont
Series Bold
Color Blue
EndFont
End
Style BulletedItem
CopyStyle Item
LatexName ecvitem*
LabelString "Bulleted Item:"
End
Style Begin
Margin Dynamic
LatexType Command
LatexName begin{europecv}
KeepEmpty 1
BottomSep 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Begin of CV"
LabelFont
Series Bold
Color Green
EndFont
End
Style PersonalInfo
CopyStyle Begin
LatexName ecvpersonalinfo{}
BottomSep 0
LabelString "Personal Info"
End
Style MotherTongue
Margin Dynamic
LatexType Command
LatexName ecvmothertongue
OptionalArgs 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "Mother Tongue:"
LabelFont
Series Bold
Color Blue
EndFont
End
Style LangHeader
CopyStyle MotherTongue
LatexName ecvlanguageheader
OptionalArgs 0
LabelString "Language Header:"
End
Style Language
CopyStyle MotherTongue
LatexName ecvlanguage
LabelString "Language:"
End
Style LastLanguage
CopyStyle MotherTongue
LatexName ecvlastlanguage
LabelString "Last Language:"
End
Style LangFooter
CopyStyle MotherTongue
LatexName ecvlanguagefooter
OptionalArgs 0
LabelString "Language Footer:"
End
Style End
Margin Dynamic
LatexType Command
LatexName end{europecv}
KeepEmpty 1
TopSep 1
ParSkip 0.4
Align Block
LabelSep xx
LabelType Static
LabelString "End of CV"
LabelFont
Series Bold
Color Green
EndFont
End