1 #% Do not delete the line below; configure depends on this
2 # \DeclareLaTeXClass[scrbook]{book (recipes)}
3 # Recipe textclass definition file.
4 # Based upon the CTAN:recipe.cls file, but it is not needed anymore
5 # Author of recipe.cls: Maurizio Loreti, aka MLO or (HAM) I3NOO
6 # EMail of recipe.cls author: loreti@padova.infn.it
7 # Layout created by Sandor Szoke 2004.04.05
8 # Updated at 2006.12.10.
9 # Updated at 2008.10.19.
11 # - better look in LyX
12 # - with short title the portion size can be given
13 # Contact: mailto:alex@lyx.hu
15 # The original instructions:
16 # The \part, \chapter, \section and \subsection commands
17 # work as usual; \subsubsection commands are used for
18 # ``recipes'' as units, and are not numbered but (by
19 # default) entered in the .toc file.
21 # The recipe (a.k.a. subsubsection header) is typeset in
22 # a style defined with the command \rechead; the default
23 # is Large, horizontally centered, bold sans-serif: and
24 # the user can change that setting with a suitable
25 # \renewcommand{\rechead} .
27 # If e.g. \section and \subsection commands are not used
28 # in the text, the large indentation of the \subsubsection
29 # items in the Table of Contents may be ugly; in that case,
30 # you should redefine appropriately \l@subsubsection .
31 # The book.cls definition is:
32 # \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}} ;
33 # the second parameter (7.0em) is the initial skip, and
34 # the third (4.1em) is the length for the subsubsection
35 # number field (if the subsubsections are to be numbered).
36 # As an example, a redefinition of \l@subsubsection may look
39 # \renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{4.1em}}
42 # A specific command \recipe{...} is defined as an alias
43 # for a \subsubsection{...} followed by two rules across
44 # the whole page and by a vertical space.
46 # Another command, \ingred{...}, is defined to typeset a
47 # list of ingredients (the \ldots) with the italic font,
48 # inside a ``quote'' environment and after an ``ingredient
49 # header'' \inghead---empty by default, and that can be
50 # redefined by the user with, e.g., a
51 # \renewcommand{\inghead}{\textbf{Ingredients (4 persons)}:\ }
52 # (note the trailing space).
63 # There is no abstract environment in book.cls
71 LabelString "\thechapter"
76 LabelString "Bibliography"
85 \setcounter{secnumdepth}{2} % subsubsections not numbered
86 \setcounter{tocdepth}{3} % subsubsections in the .toc file
89 {\centering\normalfont\Large\sffamily\bfseries}
91 \renewcommand{\subsubsection}
92 {\@startsection{subsubsection}{3}{\z@}%
93 {-5ex\@plus -1ex \@minus -.2ex}%
97 \newcommand{\recipe}[1]{\subsubsection{#1}%
98 \hrule height0.75pt width\hsize\vspace*{1\p@}%
99 \hrule height0.25pt width\hsize%
103 \newcommand{\inghead}[1][]{\large\textbf{Ingredients#1}:}
104 \newcommand{\ingred}[2][]
105 {{\list{}{\rightmargin 1em\leftmargin 1em}%
106 \item[]\textit{\inghead[#1]} #2\endlist}%
107 \hrule height0.25pt width\hsize}
114 LeftMargin Ingredients_for_some:xx
117 LabelString "Recipe:"
128 # Subsubsection style definition
131 LatexName subsubsection
143 # Inghead style definition
149 LeftMargin Ingredients_for_some:xx
152 AlignPossible Left, Block
154 LabelString "Ingredients:"
161 \renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{0em}}
162 \setlength\parindent{0pt}
163 \setlength\parskip{2ex plus 0.5ex}