]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/ltugboat.layout
Fix bug #10273
[lyx.git] / lib / layouts / ltugboat.layout
index 1881e2fe38af4d916c0b9755eeac1ec6ef98dadb..e3aeaff10349c8f9f30d2feb0c9a90a3340ed643 100644 (file)
@@ -1,21 +1,24 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[ltugboat]{article (tugboat)}
+#  \DeclareLaTeXClass{TUGboat}
+#  \DeclareCategory{Articles}
 # The tugboat journal (TUGboat) textclass definition file.
 # Journal of the TeX User Group http://www.tug.org
 # Author : Herbert Voss <voss@perce.de> 2001/08/13
-#
-# General textclass parameters
+
+
+Format 60
 Columns                 2
 Sides                   2
-#SecNumDepth                            #no counting
+#SecNumDepth                            # no counting
 #TocDepth               -1
-MaxCounter              Counter_Section
-#
+
+
 ClassOptions
-       FontSize              default         #only 11pt
+       FontSize              default         # only 11pt
        PageStyle             ""              # controlled by class
 End
-#
+
+
 DefaultFont                             # only for screen
        Family                Roman
        Series                Medium
@@ -23,11 +26,10 @@ DefaultFont                             # only for screen
        Size                  Normal
        Color                 None
 EndFont
-#
-#
-# Standard style definition
-#
+
+
 Style Standard
+       Category              MainText
        Margin                Static
        LatexType             Paragraph
        LatexName             dummy           # no special latex env
@@ -38,12 +40,12 @@ Style Standard
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
 End
-#
-#
+
+
 Input stdlists.inc
 
-# Section style definition
 Style Section
+       Category              Sectioning
        Margin                Dynamic
        LatexType             Command
        LatexName             section
@@ -55,19 +57,16 @@ Style Section
        BottomSep             0.7
        ParSep                0.7
        Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Counter_Section
-
-       # standard font definition
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
-
+       TocLevel 1
 End
 
-# Subsection style definition
+
 Style Subsection
+       Category              Sectioning
        Margin                Dynamic
        LatexType             Command
        LatexName             subsection
@@ -79,17 +78,14 @@ Style Subsection
        BottomSep             0.5
        ParSep                0.5
        Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Counter_Subsection
-       # standard font definition
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
+       TocLevel 2
 End
 
 
-# Subsubsection style definition
 Style Subsubsection
        Margin                Dynamic
        LatexType             Command
@@ -102,18 +98,14 @@ Style Subsubsection
        BottomSep             0.4
        ParSep                0.4
        Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Counter_SubSubSection
-
-       # standard font definition
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
-
+       TocLevel 3
 End
 
-# Paragraph style definition
+
 Style Paragraph
        Margin                Dynamic
        LatexType             Command
@@ -126,29 +118,27 @@ Style Paragraph
        BottomSep             0
        ParSep                0.4
        Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Counter_Paragraph
-
-       # standard font definition
-       Font 
+       Font
          Series              Bold
          Size                Normal
        EndFont
+       TocLevel 4
 End
 
 
 #Input stdstarsections.inc
-#
+
+Input numarticle.inc
 Input stdstruct.inc
 Input stdlayouts.inc
 Input stdfloats.inc
 Input stdcounters.inc
+Input stdinsets.inc
+Input stdrefprefix.inc
+
 
-#
-# Create and Overwrite some styles
-#
-# Title style definition
 Style Title
+       Category              FrontMatter
        Margin                Static
        LatexType             Command
        InTitle               1
@@ -159,17 +149,16 @@ Style Title
        BottomSep             1
        ParSep                1
        Align                 Left
-       AlignPossible         Left
        LabelType             No_Label
-       # standard font definition
-       TextFont 
+       TextFont
          Series              Bold
          Size                Normal
        EndFont
 End
 
-# Author style definition
+
 Style Author
+       Category              FrontMatter
        Margin                Static
        LatexType             Command
        InTitle               1
@@ -181,13 +170,11 @@ Style Author
        ParSep                0.7
        LeftMargin            MM
        Align                 Left
-       AlignPossible         Left
        LabelType             No_Label
 End
-#
-#
-# Abstract style definition
-Style Abstract 
+
+
+Style Abstract
        Margin                Static
        LatexType             Environment
        LatexName             abstract
@@ -200,17 +187,14 @@ Style Abstract
        BottomSep             1.5
        ParSep                0
        Align                 Block
-       AlignPossible         Block
-       LabelType             Top_Environment
-       LabelString           Abstract
+       LabelType             Above
+       LabelString           "Abstract"
        LabelBottomSep    0.5
-       # standard font definition
-       TextFont 
+       TextFont
          Size                Normal
        EndFont
-       # label font definition
-       LabelFont 
+       LabelFont
          Size                Normal
          Series              Bold
        EndFont
-End 
+End