]> git.lyx.org Git - features.git/commitdiff
Fix screen display of parts and chapters in default classes
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Nov 2020 09:15:05 +0000 (10:15 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 18 Nov 2020 09:19:15 +0000 (10:19 +0100)
This has been done by reading the LaTeX sources (classes.dtx) to try
to get things right

* fix font sizes of chapters and parts. Note that the labels have
  smaller size as the title itself.

* fix alignment of Part and put label on top

* add spacing between label and title.

lib/layouts/article.layout
lib/layouts/stdsections.inc

index 1afa9d77285fec8f1082f8de2f3094c6cbb45825..fa89bef9bc4acf1eac37d6dfc93becb07ca948da 100644 (file)
@@ -21,8 +21,17 @@ NoStyle Chapter*
 Style Part
        Align                 Left
        AlignPossible         Left
+       LabelType             Above
        TopSep                2
        BottomSep             1.5
+       Font
+         Series              Bold
+         Size                Huge
+       EndFont
+       LabelFont
+         Series              Bold
+         Size                Larger
+       EndFont
 End
 
 
@@ -31,4 +40,8 @@ Style Part*
        AlignPossible         Left
        TopSep                2
        BottomSep             1.5
+       Font
+         Series              Bold
+         Size                Huge
+       EndFont
 End
index 4516d079da9e76ae3798829dad776432d4508afa..359d69eb16cc190963ea6f78ed5e0d600dc42eef 100644 (file)
@@ -11,9 +11,9 @@ Format 85
 
 Style Part
        Category              Sectioning
-       Margin                Dynamic
+       Margin                Static
        LabelString           "Part \thepart"
-       LabelType             Static
+       LabelType             Centered
        TocLevel              -1
        LabelCounter          part
        LatexType             Command
@@ -21,7 +21,7 @@ Style Part
        NeedProtect           1
        NextNoIndent          1
        ToggleIndent          Never
-       Labelsep              xxx
+       LabelBottomSep        1
        ParSkip               0.4
        TopSep                4
        BottomSep             4
@@ -35,6 +35,10 @@ Style Part
                IsTocCaption  1
        EndArgument
        Font
+         Series              Bold
+         Size                Giant
+       EndFont
+       LabelFont
          Series              Bold
          Size                Huge
        EndFont
@@ -60,6 +64,7 @@ Style Chapter
        NeedProtect           1
        NextNoIndent          1
        ToggleIndent          Never
+       LabelBottomSep        1
        ParSkip               0.4
        TopSep                2
        BottomSep             0.8
@@ -72,6 +77,10 @@ Style Chapter
                IsTocCaption  1
        EndArgument
        Font
+         Series              Bold
+         Size                Giant
+       EndFont
+       LabelFont
          Series              Bold
          Size                Huge
        EndFont