summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xcookybooky/example
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-31 22:32:11 +0000
committerKarl Berry <karl@freefriends.org>2011-12-31 22:32:11 +0000
commit2d01ba9fbe65f6614c49376eca6d14968d2a04d3 (patch)
tree8c880f792a28bd38f7601e2ee9cedef76c5c040e /Master/texmf-dist/doc/latex/xcookybooky/example
parent3566a5e9a7bfcd5ad94bcd8a42e14d35914ca971 (diff)
xcookybooky (31dec11)
git-svn-id: svn://tug.org/texlive/trunk@24988 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/xcookybooky/example')
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/example.pdfbin0 -> 331924 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/example.tex167
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/pic/background.pdfbin0 -> 88626 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/pic/glass.jpgbin0 -> 23763 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/pic/ingredients.jpgbin0 -> 26418 bytes
5 files changed, 167 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf b/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf
new file mode 100644
index 00000000000..89a5b9d74b0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/example.tex b/Master/texmf-dist/doc/latex/xcookybooky/example/example.tex
new file mode 100644
index 00000000000..c6db5b02b37
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/example.tex
@@ -0,0 +1,167 @@
+\documentclass[%
+a4paper,
+%twoside,
+11pt
+]{article}
+
+% encoding, font, language
+\usepackage[T1]{fontenc}
+\usepackage[latin1]{inputenc}
+\usepackage{lmodern}
+\usepackage[ngerman, english]{babel}
+
+\usepackage{nicefrac}
+
+\usepackage{xcookybooky}
+
+\definecolor{mygreen}{rgb}{0,.5,0}
+\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}}
+
+\setRecipeColors
+{%
+ recipename = mygreen,
+ ing = blue,
+ inghead = blue,
+ prep,
+ prephead,
+ hint,
+ hinthead,
+}
+
+\setcounter{secnumdepth}{1}
+\renewcommand*{\recipesection}[2][]
+{%
+ \subsection[#1]{#2}
+}
+
+
+%%%%%%%%%%
+% hyperref
+\usepackage{hyperref} % must be the last package
+\hypersetup{%
+ pdfauthor = {Your name},
+ pdftitle = {Recipes},
+ pdfsubject = {Recipes},
+ pdfkeywords = {recipes},
+ pdfstartview = {FitV},
+ pdfview = {FitH},
+ pdfpagemode = {UseNone}, % Options; UseNone, UseOutlines
+ bookmarksopen = {true},
+ pdfpagetransition = {Glitter},
+ colorlinks = {true},
+ linkcolor = {black},
+ urlcolor = {black}
+ citecolor = {black},
+ filecolor = {black},
+}
+% hyperref
+%%%%%%%%%%
+
+
+
+\begin{document}
+
+\title{Your Recipes}
+\author{Your Name}
+\maketitle
+
+\tableofcontents
+
+\vspace{9em}
+
+\section{Recipes}
+The following recipe is an example for the usage of the \texttt{xcookybooky} package. The copyright of the pictures is owned by Roman Gaus.
+
+\newpage
+
+% background graphic
+\setBackgroundPicture[x, y=-2cm, width=\paperwidth-4cm, height, orientation = pagecenter]
+{pic/background}
+
+\begin{recipe}
+[ %
+ preparationtime = {\unit[1]{h}},
+ bakingtime,
+ bakingtemperature,
+ portion = {\portion{5}},
+ calory,
+ source = R. Gaus
+]
+{Mousse au Chocolat}
+
+ \graph
+ {% pictures
+ small=pic/glass, % small picture
+ big=pic/ingredients % big picture
+ }
+
+ \ingredients
+ {%
+ 2 Tafeln & dunkle Schokolade\\
+ & (über \unit[70]{\%})\\
+ 3 & Eier\\
+ \unit[200]{ml} & Sahne\\
+ \unit[40]{g} & Zucker\\
+ \unit[50]{g} & Butter
+ }
+
+ \preparation
+ {%
+ \step Eier trennen, Eiweiß und Sahne separat steif schlagen. Butter und Schokolade vorsichtig im Wasserbad schmelzen.
+ \step Eigelb in einer großen Schüssel mit \unit[2]{EL} heißem Wasser cremig schlagen, den Zucker einrühren bis die Masse hell und cremig ist.
+ \step Die geschmolzene Schokolade unterheben, anschließend sofort Eischnee und Sahne unterheben (nicht mit dem Elektro-Mixer!)
+ \step Mindestens 2 Stunden im Kühlschrank kalt stellen. Aber nicht zu kalt servieren.
+ }
+
+ \hint
+ {%
+ Der Schokoladenanteil kann auch gesenkt werden.
+ }
+
+\end{recipe}
+
+\newpage % if you separate your recipes into single files this command is not necessary
+
+
+\begin{recipe}
+[ %
+ preparationtime = {\unit[1]{h}},
+ bakingtime={\unit[1]{h}},
+ bakingtemperature={\protect\bakingtemperature{fanoven=\unit[230]{\textcelcius}, topbottomheat=\unit[195]{°C}, topheat=\unit[195]{°C}, gasstove=Stufe 2}},
+ portion = {\portion{5-6}},
+ calory={\unit[3]{kJ}},
+ source = somebody
+]
+{Test Recipe}
+
+ \graph
+ {% pictures
+ small=pic/glass, % small picture
+ big=pic/ingredients % big picture
+ }
+
+ \ingredients
+ {%
+ 2 Tafeln & dunkle Schokolade\\
+ & (über \unit[70]{\%})\\
+ 3 & Eier\\
+ \unit[200]{ml} & Sahne\\
+ \unit[40]{g} & Zucker\\
+ \unit[50]{g} & Butter
+ }
+
+ \preparation
+ {%
+ \step This recipe is intended to show you more display options.
+ \step Test, Test, Test, Test, Test, Test, Test, Test, Test, Test, Test, Test
+ \step Another Test, Test, Test, Test. And once again Test, Test, Test, Test
+ \step You maybe don't need a hint
+ }
+
+
+
+\end{recipe}
+
+
+
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/pic/background.pdf b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/background.pdf
new file mode 100644
index 00000000000..635996f2595
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/background.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/pic/glass.jpg b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/glass.jpg
new file mode 100644
index 00000000000..427884c4a3c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/glass.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/pic/ingredients.jpg b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/ingredients.jpg
new file mode 100644
index 00000000000..c54b0b0873a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/pic/ingredients.jpg
Binary files differ