X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Frecipebook.layout;h=1e966857496b338288024eae112cfbfd8dd8816f;hb=051c5f27284f00c20e95c5732bcfb04632c7cb18;hp=8b91719d39a8ce7fed9194a34f05dc901d7a81e0;hpb=3ccd0abf7e7857bb77cbf4d82326b9316514d3b2;p=lyx.git diff --git a/lib/layouts/recipebook.layout b/lib/layouts/recipebook.layout index 8b91719d39..1e96685749 100644 --- a/lib/layouts/recipebook.layout +++ b/lib/layouts/recipebook.layout @@ -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 34 +Format 99 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 @@ -89,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 @@ -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 @@ -124,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