]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/scrclass.inc
Add frontispiece layout to KOMA classes
[lyx.git] / lib / layouts / scrclass.inc
index f2ccfe66900308ea7ae61b2b0f22000dc938736a..4d20ca8fd74a07a0957b6c060e2e938997ff406f 100644 (file)
@@ -2,17 +2,28 @@
 # Base definitions for the KOMA script layouts.
 # Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/23.
 # Update for Koma Script Release >=2.8q
-# Juergen Spitzmueller <j.spitzmueller@gmx.de>, 2003/2/08.
+# Juergen Spitzmueller <spitz@lyx.org>, 2003/2/08.
 # Mapped List to Labeling
-# Guenter Milde <g.milde web.de>
+# Guenter Milde <milde@lyx.org>, 2009-02-02
+# Labeling is now used also in non-KOMA classes
 
 
-Format 21
+Format 90
 SecNumDepth             2
 TocDepth                2
 DefaultStyle            Standard
+PageSize                a4
+Provides                subscript 1
+
+ClassOptions
+       FontSize             9|10|11|12|13|14|15|16|17|18|19|20
+       FontSizeFormat       fontsize=$$s
+       PageSize             a0|a1|a2|a3|a4|a5|a6|b0|b1|b2|b3|b4|b5|b6|c0|c1|c2|c3|c4|c5|c6|executive|legal|letter
+       PageSizeFormat       paper=$$s
+End
 
 Style Standard
+       Category              MainText
        LatexName             dummy
        ParIndent             MM
        ParSkip               0.4
@@ -24,6 +35,7 @@ Style Standard
                        margin-bottom: 2ex;
                }
        EndHTMLStyle
+       DocBookTag            para
 End
 
 Input stdinsets.inc
@@ -31,6 +43,15 @@ Input stdlists.inc
 Input stdcounters.inc
 Input stdfloats.inc
 
+
+# Adapt enumii counter display to KOMA default
+Counter enumii
+       GuiName "Numbered List (Level 2)"
+       Within               enumi
+       LabelString          "\alph{enumii})"
+End
+
+
 Style Description
        LabelFont
          Family              Sans
@@ -38,15 +59,17 @@ Style Description
 End
 
 Style Labeling
-       CopyStyle             List
+       Category              List
        LatexName             labeling
        # overwrite the preamble code definition
        Preamble
-       EndPreamble
-End
-
-Style List
-       Obsoletedby           Labeling
+       EndPreamble     
+       DocBookTag            variablelist
+       DocBookItemWrapperTag varlistentry
+       DocBookItemTag        listitem
+       DocBookItemInnerTag   para
+       DocBookItemLabelTag   term
+       DocBookItemLabelTagType   paragraph
 End
 
 Input stdsections.inc
@@ -55,57 +78,59 @@ Style Part
        Font
          Family              Sans
        EndFont
-       TocLevel 0
 End
 
 
 Style Chapter
+       LabelType             Static
+       LabelSep              xxx
+       Margin                Dynamic
+       Align                 Left
        Font
          Family              Sans
          Size                Largest
        EndFont
-       TocLevel 0
 End
 
 
 Style Section
+       Align                 Left
        Font
          Family              Sans
        EndFont
-       TocLevel 1
 End
 
 
 Style Subsection
+       Align                 Left
        Font
          Family              Sans
        EndFont
-       TocLevel 2
 End
 
 
 Style Subsubsection
+       Align                 Left
        Font
          Family              Sans
        EndFont
-       TocLevel 3
 End
 
 
 Style Paragraph
+       Align                 Left
        Font
          Family              Sans
        EndFont
-       TocLevel 4
 End
 
 
 Style Subparagraph
+       Align                 Left
        LeftMargin            ""
        Font
          Family              Sans
        EndFont
-       TocLevel 5
 End
 
 Input stdstarsections.inc
@@ -113,18 +138,33 @@ Input stdstarsections.inc
 Style Addpart
        CopyStyle             Part*
        LatexName             addpart
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The part as it appears in the table of contents/running headers"
+               InsertCotext  1
+       EndArgument
 End
 
 
 Style Addchap
        CopyStyle             Chapter*
        LatexName             addchap
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The chapter as it appears in the table of contents/running headers"
+               InsertCotext  1
+       EndArgument
 End
 
 
 Style Addsec
        CopyStyle             Section*
        LatexName             addsec
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The section as it appears in the table of contents/running headers"
+               InsertCotext  1
+       EndArgument
 End
 
 
@@ -141,6 +181,7 @@ End
 
 
 Style Minisec
+       Category              Sectioning
        LatexType             Command
        LatexName             minisec
        NeedProtect           1
@@ -163,6 +204,18 @@ Style Title
          Family              Sans
          Series              Bold
        EndFont
+       DocBookTag            title
+       DocBookInInfo         maybe
+End
+
+Style Subtitle
+       CopyStyle             Title
+       LatexName             subtitle
+       Font
+         Size                Large
+       EndFont
+       DocBookTag            subtitle
+       DocBookInInfo         maybe
 End
 
 
@@ -170,6 +223,11 @@ Style Author
        Font
          Size                Larger
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 
@@ -177,6 +235,9 @@ Style Date
        Font
          Size                Larger
        EndFont
+       DocBookTag            date
+       DocBookTagType        paragraph
+       DocBookInInfo         always
 End
 
 
@@ -225,12 +286,15 @@ Style Extratitle
        LatexName             extratitle
 End
 
+Style Frontispiece
+       CopyStyle             Titlehead
+       LatexName             frontispiece
+End
+
 Input stdstruct.inc
 
 Style Abstract
-       LabelFont
-         Family              Sans
-       EndFont
+       LabelType             No_Label
 End
 
 
@@ -242,45 +306,55 @@ End
 
 Input stdlayouts.inc
 
-Style Captionabove
-       Margin                First_Dynamic
-       LatexType             Command
-       LatexName             caption
-       NeedProtect           1
-       LabelSep              xx
-       ParSkip               0.4
-       TopSep                0.5
-       Align                 Center
-       LabelType             Sensitive
-       LabelString           "Senseless!"
-       OptionalArgs          1
-       LabelFont
-         Series              Bold
-       EndFont
+
+InsetLayout Caption:Above
+       LabelString          above
+       LaTeXType            command
        LatexName            captionabove
+       NeedProtect          1
+       MultiPar             false
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The caption as it appears in the list of figures/tables"
+               InsertCotext  1
+       EndArgument
+       HTMLStyle
+               div.float-caption {
+                       text-align: center;
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+               }
+       EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-above'"
 End
 
 
-Style Captionbelow
-       Margin                First_Dynamic
-       LatexType             Command
-       LatexName             caption
-       NeedProtect           1
-       LabelSep              xx
-       ParSkip               0.4
-       TopSep                0.5
-       Align                 Center
-       LabelType             Sensitive
-       LabelString           "Senseless!"
-       OptionalArgs          1
-       LabelFont
-         Series              Bold
-       EndFont
+InsetLayout Caption:Below
+       LabelString          below
+       LaTeXType            command
        LatexName            captionbelow
+       NeedProtect          1
+       MultiPar             false
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The caption as it appears in the list of figures/tables"
+               InsertCotext  1
+       EndArgument
+       HTMLStyle
+               div.float-caption {
+                       text-align: center;
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+               }
+       EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-below'"
 End
 
 
 Style Dictum
+       Category             MainText
        Margin               Right_Address_Box
        LatexType            Command
        LatexName            dictum
@@ -288,7 +362,10 @@ Style Dictum
        BottomSep            1.5
        ParSep               1.5
        Align                Left
-       OptionalArgs         1
+       Argument 1
+               LabelString   "Dictum Author"
+               Tooltip       "The author of this dictum"
+       EndArgument
        Font
          Size               Normal
        EndFont