summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cooking
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:53:32 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:53:32 +0000
commit179bf60bda56170d7b22f51f2314ed4d5c06f9a1 (patch)
tree28764387a885ff3178d523778f13f6ca01233cd3 /Master/texmf-dist/tex/latex/cooking
parent4e72c0abbfd3dd35e79176eb7f19011b14e3c1c7 (diff)
cooking
git-svn-id: svn://tug.org/texlive/trunk@787 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cooking')
-rw-r--r--Master/texmf-dist/tex/latex/cooking/cooking.sty107
1 files changed, 107 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cooking/cooking.sty b/Master/texmf-dist/tex/latex/cooking/cooking.sty
new file mode 100644
index 00000000000..95e8352ddfb
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cooking/cooking.sty
@@ -0,0 +1,107 @@
+%%
+%% This is file `cooking.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cooking.dtx (with options: `package')
+%%
+%% LaTeX package for cooking recipes
+%%
+%% Copyright (C) 1999 Axel Reichert
+%% See the files README and COPYING.
+%%
+%% \CharacterTable
+%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%% Digits \0\1\2\3\4\5\6\7\8\9
+%% Exclamation \! Double quote \" Hash (number) \#
+%% Dollar \$ Percent \% Ampersand \&
+%% Acute accent \' Left paren \( Right paren \)
+%% Asterisk \* Plus \+ Comma \,
+%% Minus \- Point \. Solidus \/
+%% Colon \: Semicolon \; Less than \<
+%% Equals \= Greater than \> Question mark \?
+%% Commercial at \@ Left bracket \[ Backslash \\
+%% Right bracket \] Circumflex \^ Underscore \_
+%% Grave accent \` Left brace \{ Vertical bar \|
+%% Right brace \} Tilde \~}
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]%
+\ProvidesPackage{cooking}[%
+ 1999/06/24 v0.9b Cooking recipes%
+]%
+\newlength{\recipemargin}%
+\setlength{\recipemargin}{0.35\columnwidth}%
+\DeclareRobustCommand*{\ingredientfont}{\@empty}%
+\DeclareRobustCommand*{\recipeendhook}{\@empty}%
+\DeclareOption{bf}{%
+ \renewcommand*{\ingredientfont}{\bfseries}%
+}%
+\DeclareOption{it}{%
+ \renewcommand*{\ingredientfont}{\itshape}%
+}%
+\DeclareOption{nopage}{%
+ \renewcommand*{\recipeendhook}{\@empty}%
+}%
+\DeclareOption{newpage}{%
+ \renewcommand*{\recipeendhook}{\newpage}%
+}%
+\ExecuteOptions{it,newpage}%
+\ProcessOptions*%
+\DeclareRobustCommand*{\recipetitlefont}{%
+ \raggedright\large\ingredientfont
+}%
+\DeclareRobustCommand*{\recipetitle}{%
+ \@startsection{recipetitle}{1}{\recipemargin}%
+ {3.5ex plus 1ex minus 0.2ex}{2.3ex plus 0.2ex}%
+ {\recipetitlefont}*%
+}%
+\DeclareRobustCommand*{\energy}[1]{%
+ \item Pro Portion ca.~#1\,kJ%
+}%
+\DeclareRobustCommand*{\sidedish}[1]{\item[Beilage] #1}%
+\DeclareRobustCommand*{\hint}[1]{\item[Tip] #1}%
+\DeclareRobustCommand*{\preparationtime}[1]{%
+ \item[Zubereitungszeit] #1%
+}%
+\DeclareRobustCommand*{\modification}[1]{%
+ \item[Abwandlung] #1%
+}%
+\DeclareRobustCommand*{\ingredient}[1]{\item[{#1}]}%
+\DeclareRobustCommand*{\@make@ingredient}[1]{%
+ \begin{minipage}[b]{\labelwidth}%
+ \vspace{\parsep}%
+ \raggedleft\ingredientfont\hspace{0pt}#1%
+ \end{minipage}%
+}%
+\newenvironment{recipe}[1]{%
+ \recipetitle{#1}%
+ \begin{list}%
+ {}%
+ {%
+ \setlength{\topsep}{0ex}%
+ \setlength{\partopsep}{0ex}%
+ \setlength{\leftmargin}{\recipemargin}%
+ \setlength{\labelwidth}{\recipemargin}%
+ \setlength{\labelsep}{1em}%
+ \addtolength{\labelwidth}{-\labelsep}%
+ \setlength{\itemsep}{0ex}%
+ \renewcommand*{\makelabel}[1]{%
+ \@make@ingredient{##1}%
+ }%
+ }%
+}{%
+ \end{list}%
+}%
+\DeclareRobustCommand*{\ps@recipe}{%
+ \let\@mkboth\@gobbletwo
+ \let\@oddhead\@empty
+ \let\@evenhead\@empty
+ \renewcommand*{\@oddfoot}{%
+ \normalfont\hspace{\recipemargin}\thepage\hfill
+ }%
+ \let\@evenfoot\@oddfoot
+}%
+\endinput
+%%
+%% End of file `cooking.sty'.