]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/recipebook.layout
Remove debugging code.
[lyx.git] / lib / layouts / recipebook.layout
index df26bb4bdc87c1d636a04f4bec5513e29ed10f2c..0099aec042a55547ca149fcc4559cc9719e0e222 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 60
 Input scrclass.inc
 Input numreport.inc
 
-Sides                  1
-Sides                  2
+# Global parameters.
+SecNumDepth            2
+TocDepth               3
 PageStyle              Headings
 
 # 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
@@ -55,10 +54,6 @@ Style Bibliography
 End
 
 Preamble
-
-\setcounter{secnumdepth}{2}    % subsubsections not numbered
-\setcounter{tocdepth}{3}       % subsubsections in the .toc file
-
 \newcommand{\rechead}
     {\centering\normalfont\Large\sffamily\bfseries}
 
@@ -112,13 +107,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