1 #% Do not delete the line below; configure depends on this
2 # \DeclareLaTeXClass[scrbook]{Recipe Book}
3 # \DeclareCategory{Books}
4 # Recipe textclass definition file.
5 # Author: Sandor Szoke (alex@lyx.hu)
7 # The \part, \chapter, \section and \subsection commands
8 # work as usual; \subsubsection commands are used for
9 # ``recipes'' as units, and are not numbered but (by
10 # default) entered in the .toc file.
12 # The recipe (a.k.a. subsubsection header) is typeset in
13 # a style defined with the command \rechead; the default
14 # is Large, horizontally centered, bold sans-serif: and
15 # the user can change that setting with a suitable
16 # \renewcommand{\rechead} .
18 # If e.g. \section and \subsection commands are not used
19 # in the text, the large indentation of the \subsubsection
20 # items in the Table of Contents may be ugly; for that case,
21 # we redefine \l@subsubsection .
23 # A specific command \recipe{...} is defined as an alias
24 # for a \subsubsection{...} followed by two rules across
25 # the whole page and by a vertical space.
27 # Another command, \ingred{...}, is defined to typeset a
28 # list of ingredients.
40 # There is no abstract environment in scrbook.cls
44 LabelString "\thechapter"
50 LabelString "Bibliography"
60 {\centering\normalfont\Large\sffamily\bfseries}
62 \renewcommand{\subsubsection}
63 {\@startsection{subsubsection}{3}{\z@}%
64 {-5ex\@plus -1ex \@minus -.2ex}%
68 \newcommand{\recipe}[1]{\subsubsection{#1}%
69 \hrule height0.75pt width\hsize\vspace*{1\p@}%
70 \hrule height0.25pt width\hsize%
74 \newcommand{\inghead}[1][]{\large\textbf{Ingredients#1}:}
75 \newcommand{\ingred}[2][]
76 {{\list{}{\rightmargin 1em\leftmargin 1em}%
77 \item[]\textit{\inghead[#1]} #2\endlist}%
78 \hrule height0.25pt width\hsize}
85 LeftMargin Ingredients_for_some:xx
99 # Subsubsection style definition
102 LatexName subsubsection
115 # Inghead style definition
120 LabelString "Ingredients Header"
121 Tooltip "Specify an optional ingredients header"
124 LeftMargin Ingredients_for_some:xx
127 AlignPossible Left, Block
129 LabelString "Ingredients:"
136 \renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{0em}}
137 \setlength\parindent{0pt}
138 \setlength\parskip{2ex plus 0.5ex}