unify toclevel for articles and reports/books; proper numbering of Paragraph/SubParagraph layouts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9830 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-04-19 09:00:32 +00:00
parent c8babc2cbf
commit a682330716
4 changed files with 26 additions and 38 deletions

View File

@ -1,3 +1,14 @@
2005-04-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* layouts/scrclass.inc: do not assign a toclevel to addchap or
addsec.
* layouts/numreport.inc: use data from numarticle.inc, so that
changes from article are obvious.
* layouts/numarticle.inc: add numbering stuff for Paragraph and
SubParagraph; set Part TocLevel to 0.
2005-04-18 Martin Vermeer <martin.vermeer@hut.fi> 2005-04-18 Martin Vermeer <martin.vermeer@hut.fi>
* ui/stdtoolbars.ui: * ui/stdtoolbars.ui:

View File

@ -1,10 +1,11 @@
# Author : André Pönitz # Author : André Pönitz
# This include files contains label definitions for a article-like numbering. # This include file contains label definitions for an article-like numbering.
Style Part Style Part
LabelType Counter LabelType Counter
LabelCounter part LabelCounter part
LabelString "Part \Roman{part}" LabelString "Part \Roman{part}"
TocLevel 0
End End
@ -36,10 +37,18 @@ End
Style Paragraph Style Paragraph
LabelType Counter
LabelCounter paragraph
LabelString "@Subsubsection@.\arabic{paragraph}"
LabelStringAppendix "@Subsubsection@.\arabic{paragraph}"
TocLevel 4 TocLevel 4
End End
Style Subparagraph Style Subparagraph
LabelType Counter
LabelCounter subparagraph
LabelString "@Paragraph@.\arabic{subparagraph}"
LabelStringAppendix "@Paragraph@.\arabic{subparagraph}"
TocLevel 5 TocLevel 5
End End

View File

@ -1,10 +1,10 @@
# Author : André Pönitz # Author : André Pönitz
# This include files contains a label definitions for a report-like numbering. # This include file contains label definitions for a report-like numbering.
Input numarticle.inc
Style Part Style Part
LabelType Counter TocLevel -1
LabelCounter part
LabelString "Part \Roman{part}"
End End
@ -13,42 +13,12 @@ Style Chapter
LabelCounter chapter LabelCounter chapter
LabelString "Chapter \arabic{chapter}" LabelString "Chapter \arabic{chapter}"
LabelStringAppendix "Appendix \Alph{chapter}" LabelStringAppendix "Appendix \Alph{chapter}"
TocLevel 1 TocLevel 0
End End
Style Section Style Section
LabelType Counter
LabelCounter section
LabelString "\arabic{chapter}.\arabic{section}" LabelString "\arabic{chapter}.\arabic{section}"
LabelStringAppendix "\Alph{chapter}.\arabic{section}" LabelStringAppendix "\Alph{chapter}.\arabic{section}"
TocLevel 2
End End
Style Subsection
LabelType Counter
LabelCounter subsection
LabelString "@Section@.\arabic{subsection}"
LabelStringAppendix "@Section@.\arabic{subsection}"
TocLevel 3
End
Style Subsubsection
LabelType Counter
LabelCounter subsubsection
LabelString "@Subsection@.\arabic{subsubsection}"
LabelStringAppendix "@Subsection@.\arabic{subsubsection}"
TocLevel 4
End
Style Paragraph
TocLevel 5
End
Style Subparagraph
TocLevel 6
End

View File

@ -109,14 +109,12 @@ End
Style Addchap Style Addchap
CopyStyle Chapter* CopyStyle Chapter*
LatexName addchap LatexName addchap
TocLevel 1
End End
Style Addsec Style Addsec
CopyStyle Section* CopyStyle Section*
LatexName addsec LatexName addsec
TocLevel 2
End End