Dear Stephan, Here it comes...
Alex stefan wrote: > hi, > i am looking for a template / style to make a own cookbook. A real > cookbook!!! as it is common to name a certain type of linux/latex manual > cookbook too, i did not come up with any success with searching the web. > Could someone help me please? is there a template out there. > > stefan >
cookbook.lyx
Description: application/lyx
#% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[book]{recipebook} # Recipe textclass definition file. # Based upon the CTAN:recipe.cls file, but it is not needed anymore # Author of recipe.cls: Maurizio Loreti, aka MLO or (HAM) I3NOO # EMail of recipe.cls author: [EMAIL PROTECTED] # Layout created by Sandor Szoke 2004.04.05 # Updated at 2006.12.10. # Contact: mailto:[EMAIL PROTECTED] # # The original instructions: # The \part, \chapter, \section and \subsection commands # work as usual; \subsubsection commands are used for # ``recipes'' as units, and are not numbered but (by # default) entered in the .toc file. # # The recipe (a.k.a. subsubsection header) is typeset in # a style defined with the command \rechead; the default # is Large, horizontally centered, bold sans-serif: and # the user can change that setting with a suitable # \renewcommand{\rechead} . # # If e.g. \section and \subsection commands are not used # in the text, the large indentation of the \subsubsection # items in the Table of Contents may be ugly; in that case, # you should redefine appropriately [EMAIL PROTECTED] . # The book.cls definition is: # [EMAIL PROTECTED]@dottedtocline{3}{7.0em}{4.1em}} ; # the second parameter (7.0em) is the initial skip, and # the third (4.1em) is the length for the subsubsection # number field (if the subsubsections are to be numbered). # As an example, a redefinition of [EMAIL PROTECTED] may look # like: # \makeatletter # [EMAIL PROTECTED]@dottedtocline{3}{3em}{4.1em}} # \makeatother # # A specific command \recipe{...} is defined as an alias # for a \subsubsection{...} followed by two rules across # the whole page and by a vertical space. # # Another command, \ingred{...}, is defined to typeset a # list of ingredients (the \ldots) with the italic font, # inside a ``quote'' environment and after an ``ingredient # header'' \inghead---empty by default, and that can be # redefined by the user with, e.g., a # \renewcommand{\inghead}{\textbf{Ingredients (4 persons)}:\ } # (note the trailing space). # Format 2 Input stdclass.inc Input numreport.inc # Global parameters. SecNumDepth 2 TocDepth 3 Sides 1 PageStyle Headings # There is no abstract environment in book.cls NoStyle Abstract Style Bibliography TopSep 4 LabelString "Bibliography" LabelFont Series Bold Size Huge EndFont End Preamble \setcounter{secnumdepth}{2} % subsubsections not numbered \setcounter{tocdepth}{3} % subsubsections in the .toc file \newcommand{\rechead} {\centering\normalfont\Large\sffamily\bfseries} \renewcommand{\subsubsection} [EMAIL PROTECTED]@}% [EMAIL PROTECTED] -1ex [EMAIL PROTECTED] -.2ex}% {1.5ex [EMAIL PROTECTED] .2ex}% {\rechead}} \newcommand{\recipe}[1]{\subsubsection{#1}% \hrule height0.75pt [EMAIL PROTECTED] \hrule height0.25pt width\hsize% \nobreak \vskip\parskip} \newcommand{\inghead}{\relax} \newcommand{\ingred}[1] {{\list{}{\rightmargin 1em\leftmargin 1em}% \item[]\textit{\inghead#1}\endlist}% \hrule height0.25pt width\hsize} EndPreamble Style Recipe LatexType Command LabelString "Recipe:" LatexName recipe Align Center Font Family Sans Size Large EndFont End # Subsubsection style definition Style Subsubsection LatexType Command LatexName subsubsection ParSkip 0.4 TopSep 0.9 BottomSep 0.5 ParSep 0.5 Align Block AlignPossible Block Font Size Small EndFont End # Rechead style definition Style Ingredients LatexType Command LatexName ingred LabelString "Ingredients:" Align Left AlignPossible Left,Block # standard font definition Font Series Bold EndFont Preamble \renewcommand{\inghead}{\large\textbf{Ingredients}:\ } [EMAIL PROTECTED]@dottedtocline{3}{3em}{0em}} \setlength\parindent{0pt} \setlength\parskip{2ex plus 0.5ex} EndPreamble End # Rechead style definition Style Ingredients_for_4 LatexType Command LatexName ingred LabelString "Ingredients for 4:" Align Left AlignPossible Left,Block # standard font definition Font Series Bold EndFont Preamble \renewcommand{\inghead}{\large\textbf{Ingredients (for 4)}:\ } [EMAIL PROTECTED]@dottedtocline{3}{3em}{0em}} \setlength\parindent{0pt} \setlength\parskip{2ex plus 0.5ex} EndPreamble End