]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/recipebook.layout
Update branch inset inversion explanation
[lyx.git] / lib / layouts / recipebook.layout
index df26bb4bdc87c1d636a04f4bec5513e29ed10f2c..7196dc7c43e877d5422afbfc5afa79dfd2ef7d02 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)
 #
 # Another command, \ingred{...}, is defined to typeset a
 # list of ingredients.
 
-Format 11
+Format 95
 Input scrclass.inc
 Input numreport.inc
 
-Sides                  1
-Sides                  2
+# Global parameters.
+SecNumDepth            2
+TocDepth               3
 PageStyle              Headings
+DocBookRoot            book
 
 # There is no abstract environment in scrbook.cls
 NoStyle Abstract
 
-# Global parameters.
-SecNumDepth            2
-TocDepth               3
-
 Style Chapter
   LabelString          "\thechapter"
+  TocLevel             0
 End
 
 Style Bibliography
@@ -52,13 +52,10 @@ Style Bibliography
     Series             Bold
     Size               Largest
   EndFont
+  TocLevel              0
 End
 
 Preamble
-
-\setcounter{secnumdepth}{2}    % subsubsections not numbered
-\setcounter{tocdepth}{3}       % subsubsections in the .toc file
-
 \newcommand{\rechead}
     {\centering\normalfont\Large\sffamily\bfseries}
 
@@ -95,8 +92,11 @@ Style Recipe
     Size               Large
     Series             Bold
     Shape              Italic
-    Color              red
+    Color              textlabel3
   EndFont
+  DocBookTag    bridgehead
+  DocBookAttr   renderas='sect2'
+  DocBookTagType paragraph
 End
 
 # Subsubsection style definition
@@ -112,13 +112,17 @@ Style Subsubsection
   Font
     Size               Small
   EndFont
+  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
@@ -129,11 +133,13 @@ Style Ingredients
   LabelFont
     Series             Bold
     Shape              Italic
-    Color              red
+    Color              textlabel3
   EndFont
   Preamble
    \renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{0em}}
    \setlength\parindent{0pt}
    \setlength\parskip{2ex plus 0.5ex}
   EndPreamble
+  DocBookTag    para
+  DocBookAttr   role='ingredients'
 End