mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
9e5eebc14c
* 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
131 lines
2.9 KiB
PHP
131 lines
2.9 KiB
PHP
# Standard textclass definition file. Taken from initial LyX source code
|
|
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
|
|
# Transposed by Pascal André <andre@via.ecp.fr>
|
|
# Heavily modifed and enhanced by several developers.
|
|
|
|
# This include files contains all numbered sectionning-related
|
|
# commands that are useful for article-like document classes, but not
|
|
# for letters.
|
|
|
|
Format 6
|
|
Style Part
|
|
Margin Dynamic
|
|
LabelString "Part \thepart"
|
|
LabelType Counter
|
|
TocLevel 0
|
|
LabelCounter part
|
|
LatexType Command
|
|
LatexName part
|
|
NeedProtect 1
|
|
NextNoIndent 1
|
|
Labelsep xxx
|
|
ParSkip 0.4
|
|
TopSep 4
|
|
BottomSep 4
|
|
ParSep 0.8
|
|
Align Center
|
|
Alignpossible Center
|
|
Font
|
|
Series Bold
|
|
Size Huge
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Chapter
|
|
Margin Static
|
|
LabelString "Chapter \thechapter"
|
|
LabelStringAppendix "Appendix \thechapter"
|
|
LabelType Counter
|
|
LabelCounter chapter
|
|
TocLevel 0
|
|
LatexType Command
|
|
LatexName chapter
|
|
NeedProtect 1
|
|
NextNoIndent 1
|
|
ParSkip 0.4
|
|
TopSep 4
|
|
BottomSep 0.8
|
|
ParSep 0.8
|
|
Align Block
|
|
OptionalArgs 1
|
|
Font
|
|
Series Bold
|
|
Size Huge
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Section
|
|
Margin Dynamic
|
|
LabelType Counter
|
|
LabelCounter section
|
|
TocLevel 1
|
|
LatexType Command
|
|
LatexName section
|
|
NeedProtect 1
|
|
NextNoIndent 1
|
|
LabelSep xxx
|
|
ParSkip 0.4
|
|
TopSep 1.3
|
|
BottomSep 0.7
|
|
ParSep 0.7
|
|
Align Block
|
|
OptionalArgs 1
|
|
Font
|
|
Series Bold
|
|
Size Larger
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Subsection
|
|
CopyStyle Section
|
|
LabelCounter subsection
|
|
TocLevel 2
|
|
LatexName subsection
|
|
TopSep 0.9
|
|
BottomSep 0.5
|
|
ParSep 0.5
|
|
Font
|
|
Series Bold
|
|
Size Large
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Subsubsection
|
|
CopyStyle Subsection
|
|
LabelCounter subsubsection
|
|
TocLevel 3
|
|
LatexName subsubsection
|
|
TopSep 0.7
|
|
BottomSep 0.4
|
|
Font
|
|
Series Bold
|
|
Size Normal
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Paragraph
|
|
CopyStyle Subsubsection
|
|
LabelCounter paragraph
|
|
TocLevel 4
|
|
LatexName paragraph
|
|
TopSep 0.4
|
|
BottomSep 0
|
|
End
|
|
|
|
|
|
Style Subparagraph
|
|
CopyStyle Paragraph
|
|
LabelCounter subparagraph
|
|
TocLevel 5
|
|
LatexName subparagraph
|
|
NextNoIndent 0
|
|
LeftMargin MM
|
|
End
|
|
|
|
Input numarticle.inc
|