]> git.lyx.org Git - features.git/blobdiff - lib/layouts/recipebook.layout
DocBook: slightly change the Copernicus template to be valid DocBook.
[features.git] / lib / layouts / recipebook.layout
index 15abad3578a7a4faf3718b845d4646c6f626acd5..598b12ebd7a7ac01f433de2360915213ddf83e4d 100644 (file)
@@ -1,5 +1,6 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[scrbook]{book (recipes)}
+#  \DeclareLaTeXClass[scrbook]{Recipe Book}
+#  \DeclareCategory{Books}
 # Recipe textclass definition file.
 # Author: Sandor Szoke (alex@lyx.hu)
 #
@@ -26,7 +27,7 @@
 # Another command, \ingred{...}, is defined to typeset a
 # list of ingredients.
 
-Format 29
+Format 85
 Input scrclass.inc
 Input numreport.inc
 
@@ -34,13 +35,14 @@ Input numreport.inc
 SecNumDepth            2
 TocDepth               3
 PageStyle              Headings
+DocBookRoot            book
 
 # There is no abstract environment in scrbook.cls
 NoStyle Abstract
 
 Style Chapter
   LabelString          "\thechapter"
-       TocLevel 0
+  TocLevel             0
 End
 
 Style Bibliography
@@ -50,6 +52,7 @@ Style Bibliography
     Series             Bold
     Size               Largest
   EndFont
+  TocLevel              0
 End
 
 Preamble
@@ -91,6 +94,9 @@ Style Recipe
     Shape              Italic
     Color              red
   EndFont
+  DocBookTag    bridgehead
+  DocBookAttr   renderas='sect2'
+  DocBookTagType paragraph
 End
 
 # Subsubsection style definition
@@ -106,14 +112,17 @@ Style Subsubsection
   Font
     Size               Small
   EndFont
-       TocLevel 3
+  TocLevel             3
 End
 
 # Inghead style definition
 Style Ingredients
   LatexType            Command
   LatexName            ingred
-  OptionalArgs         1
+  Argument 1
+    LabelString                "Ingredients Header"
+    Tooltip            "Specify an optional ingredients header"
+  EndArgument
   Margin               Static
   LeftMargin           Ingredients_for_some:xx
   LabelSep             xx
@@ -131,4 +140,6 @@ Style Ingredients
    \setlength\parindent{0pt}
    \setlength\parskip{2ex plus 0.5ex}
   EndPreamble
+  DocBookTag    para
+  DocBookAttr   role='ingredients'
 End