2008-12-06 16:13:17 +00:00
|
|
|
#% Do not delete the line below; configure depends on this
|
2012-10-09 05:24:32 +00:00
|
|
|
# \DeclareLaTeXClass[scrbook]{Recipe Book}
|
|
|
|
# \DeclareCategory{Books}
|
2008-12-06 16:13:17 +00:00
|
|
|
# Recipe textclass definition file.
|
|
|
|
# Author: Sandor Szoke (alex@lyx.hu)
|
|
|
|
#
|
|
|
|
# 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; for that case,
|
|
|
|
# we redefine \l@subsubsection .
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-12-06 06:02:22 +00:00
|
|
|
Format 98
|
2008-12-06 16:13:17 +00:00
|
|
|
Input scrclass.inc
|
|
|
|
Input numreport.inc
|
|
|
|
|
2009-09-20 14:14:15 +00:00
|
|
|
# Global parameters.
|
|
|
|
SecNumDepth 2
|
|
|
|
TocDepth 3
|
2008-12-06 16:13:17 +00:00
|
|
|
PageStyle Headings
|
2019-05-10 00:16:56 +00:00
|
|
|
DocBookRoot book
|
2008-12-06 16:13:17 +00:00
|
|
|
|
|
|
|
# There is no abstract environment in scrbook.cls
|
|
|
|
NoStyle Abstract
|
|
|
|
|
|
|
|
Style Chapter
|
|
|
|
LabelString "\thechapter"
|
2013-01-20 15:44:05 +00:00
|
|
|
TocLevel 0
|
2008-12-06 16:13:17 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style Bibliography
|
|
|
|
TopSep 4
|
|
|
|
LabelString "Bibliography"
|
|
|
|
LabelFont
|
|
|
|
Series Bold
|
|
|
|
Size Largest
|
|
|
|
EndFont
|
2018-01-29 08:09:51 +00:00
|
|
|
TocLevel 0
|
2008-12-06 16:13:17 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Preamble
|
|
|
|
\newcommand{\rechead}
|
|
|
|
{\centering\normalfont\Large\sffamily\bfseries}
|
|
|
|
|
|
|
|
\renewcommand{\subsubsection}
|
|
|
|
{\@startsection{subsubsection}{3}{\z@}%
|
|
|
|
{-5ex\@plus -1ex \@minus -.2ex}%
|
|
|
|
{1.5ex \@plus .2ex}%
|
|
|
|
{\rechead}}
|
|
|
|
|
|
|
|
\newcommand{\recipe}[1]{\subsubsection{#1}%
|
|
|
|
\hrule height0.75pt width\hsize\vspace*{1\p@}%
|
|
|
|
\hrule height0.25pt width\hsize%
|
|
|
|
\nobreak
|
|
|
|
\vskip\parskip}
|
|
|
|
|
|
|
|
\newcommand{\inghead}[1][]{\large\textbf{Ingredients#1}:}
|
|
|
|
\newcommand{\ingred}[2][]
|
|
|
|
{{\list{}{\rightmargin 1em\leftmargin 1em}%
|
|
|
|
\item[]\textit{\inghead[#1]} #2\endlist}%
|
|
|
|
\hrule height0.25pt width\hsize}
|
|
|
|
EndPreamble
|
|
|
|
|
|
|
|
Style Recipe
|
|
|
|
LatexType Command
|
|
|
|
LatexName recipe
|
|
|
|
Margin Static
|
|
|
|
LeftMargin Ingredients_for_some:xx
|
|
|
|
LabelSep xx
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Recipe:"
|
|
|
|
Align Center
|
|
|
|
LabelFont
|
|
|
|
Family Sans
|
|
|
|
Size Large
|
|
|
|
Series Bold
|
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel3
|
2008-12-06 16:13:17 +00:00
|
|
|
EndFont
|
2020-11-04 17:50:45 +00:00
|
|
|
DocBookTag bridgehead
|
|
|
|
DocBookAttr renderas='sect2'
|
|
|
|
DocBookTagType paragraph
|
2008-12-06 16:13:17 +00:00
|
|
|
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
|
2013-01-20 15:44:05 +00:00
|
|
|
TocLevel 3
|
2008-12-06 16:13:17 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# Inghead style definition
|
|
|
|
Style Ingredients
|
|
|
|
LatexType Command
|
|
|
|
LatexName ingred
|
2012-11-19 13:21:02 +00:00
|
|
|
Argument 1
|
2012-11-23 17:47:51 +00:00
|
|
|
LabelString "Ingredients Header"
|
|
|
|
Tooltip "Specify an optional ingredients header"
|
2012-11-19 13:21:02 +00:00
|
|
|
EndArgument
|
2008-12-06 16:13:17 +00:00
|
|
|
Margin Static
|
|
|
|
LeftMargin Ingredients_for_some:xx
|
|
|
|
LabelSep xx
|
|
|
|
Align Left
|
|
|
|
AlignPossible Left, Block
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Ingredients:"
|
|
|
|
LabelFont
|
|
|
|
Series Bold
|
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel3
|
2008-12-06 16:13:17 +00:00
|
|
|
EndFont
|
|
|
|
Preamble
|
|
|
|
\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{0em}}
|
|
|
|
\setlength\parindent{0pt}
|
|
|
|
\setlength\parskip{2ex plus 0.5ex}
|
|
|
|
EndPreamble
|
2020-11-04 17:50:45 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='ingredients'
|
2008-12-06 16:13:17 +00:00
|
|
|
End
|