]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/paper.layout
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / paper.layout
index 9a4aa967f8ef09f8918bcf90c6f563d920b8325b..75c97c6bc422eaf32cb1ef8e960ab5ee2d251a07 100644 (file)
@@ -1,16 +1,30 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass{article (paper)}
+#  \DeclareLaTeXClass{Paper (Standard Class)}
+#  \DeclareCategory{Articles}
 # Paper textclass definition file.
 # Created by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
 
 
-Format 19
+Format 99
 Columns                 1
 Sides                   1
 SecNumDepth             3
 TocDepth                3
 
+AddToPreamble
+  % Save and disable \example as this might
+  % clash with theorems
+  \let\paperclassexample\example
+  \let\endpaperclassexample\endexample
+  \let\example\relax
+  % If theorems hasn't been loaded, restore example
+  \AtBeginDocument{%
+    \@ifundefined{example}{\let\example\paperclassexample}{}
+  }
+EndPreamble
+
 Style Standard
+       Category              MainText
        Margin                Static
        LatexType             Paragraph
        LatexName             dummy
@@ -21,10 +35,10 @@ Style Standard
        LabelType             No_Label
        HTMLStyle
                div.standard {
-                       text-indent: 2em;
                        margin-bottom: 2ex;
                }
        EndHTMLStyle
+       DocBookTag            para
 End
 
 Input stdtitle.inc
@@ -32,16 +46,12 @@ Input stdstruct.inc
 Input lyxmacros.inc
 Input stdlayouts.inc
 Input stdfloats.inc
-Input stdsections.inc
-Input stdstarsections.inc
 Input stdlists.inc
 Input stdcounters.inc
 
-# There are no chapters in a paper.
-NoStyle                 Chapter
-NoStyle                 Chapter*
+###### All the section headings now use sans serif
+Input stdsections.inc
 
-# All the section headings now use sans serif
 Style Part
        Align                 Left
        TopSep                2
@@ -60,6 +70,7 @@ Style Section
          Series              Bold
          Size                Large
        EndFont
+       TocLevel 1
 End
 
 
@@ -69,6 +80,7 @@ Style Subsection
          Series              Bold
          Size                Large
        EndFont
+       TocLevel 2
 End
 
 
@@ -78,6 +90,7 @@ Style Subsubsection
          Series              Bold
          Size                Normal
        EndFont
+       TocLevel 3
 End
 
 
@@ -87,6 +100,7 @@ Style Paragraph
          Series              Bold
          Size                Normal
        EndFont
+       TocLevel 4
 End
 
 
@@ -95,17 +109,26 @@ Style Subparagraph
          Family              Sans
          Size                Normal
        EndFont
+       TocLevel 5
 End
 
 Style Description
        LabelFont
          Family              Sans
-         Series              Bold
+         Series              Medium
        EndFont
 End
 
+Input stdstarsections.inc
+
+# There are no chapters in a paper.
+NoStyle                 Chapter
+NoCounter               chapter
+NoStyle                 Chapter*
+
+
 
-# The \maketitle stuff is by default left justified.
+###### The \maketitle stuff is by default left justified.
 Style Title
        Align                 Left
        Font
@@ -113,6 +136,9 @@ Style Title
          Series              Bold
          Size                Largest
        EndFont
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 
@@ -130,7 +156,7 @@ Style Abstract
        Font
          Size                Small
        EndFont
-       LabelType             Top_Environment
+       LabelType             Above
        LabelFont
          Series              Bold
          Family              Sans
@@ -151,6 +177,9 @@ Style SubTitle
          Series              Medium
          Size                Large
        EndFont
+       HTMLTitle             false
+       DocBookTag            subtitle
+       DocBookInInfo         maybe
 End
 
 
@@ -162,6 +191,8 @@ Style Institution
          Series              Medium
          Size                Normal
        EndFont
+       HTMLTag               div
+       HTMLTitle             false
 End
 
 
@@ -169,4 +200,8 @@ Style Keywords
        CopyStyle             Abstract
        LatexName             keywords
        LabelString           "Keywords:"
+       DocBookTag         keyword
+       DocBookTagType     paragraph
+       DocBookWrapperTag  keywordset
+       DocBookInInfo      always
 End