1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
|
\documentclass[%
a4paper,
%twoside,
11pt
]{article}
% encoding, font, language
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage[ngerman, english]{babel}
\usepackage{nicefrac}
\usepackage[
handwritten,
nowarnings,
%myconfig
]
{xcookybooky}
\usepackage{blindtext} % only needed for generating test text
\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}
}
\renewcommand{\subsectionmark}[1]
{% no implementation to display the section name instead
}
%%%%%%%%%%
% hyperref
\usepackage{hyperref} % must be the last package
\hypersetup{%
pdfauthor = {Sven Harder},
pdftitle = {Example 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{Examples for using \textbf{xcookybooky}}
\author{Sven Harder}
\maketitle
\begin{center}
The examples in this document are using the version 1.2 of \texttt{xcookxbooky}.
\end{center}
\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\\
200 ml & Sahne\\
40 g & Zucker\\
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 \blindtext
\step You maybe don't need a hint
}
\end{recipe}
\newpage
\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 = someone else
]
{Test Recipe Number 2}
\graph
{% pictures
small,
big
}
\ingredients
{%
2 Tafeln & dunkle Schokolade (über \unit[70]{\%})\\
3 & Eier\\
200 ml & Sahne\\
40 g & Zucker\\
50 g & Butter
}
\preparation
{%
\step The same recipe as before, but showing the result if you do not insert pictures.
\step Please note also that the overlong ingredient creates a line break.
\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 \blindtext
\step You maybe want this time an \textbf{empty hint}.
}
\hint{}
\end{recipe}
\newpage
\begin{recipe}
[ %
preparationtime = {\unit[1]{h}},
bakingtime,
bakingtemperature,
portion = {\portion{5}},
calory,
source = R. Gaus
]
{Test Recipe Number 3}
\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 \blindtext
\step \blindtext
\step \blindtext
}
\hint
{%
Note that this hint is shown at the top of this (second) page. This allows you a clear view at the beautiful background image.
}
\end{recipe}
\newpage
\begin{recipe}
[ %
preparationtime = {\unit[1]{h}},
bakingtime,
bakingtemperature,
portion = {\portion{5}},
calory,
source = R. Gaus
]
{A longer recipe to show you how it will be displayed}
\graph
{% pictures
small=pic/glass, % small picture
big=pic/ingredients % big picture
}
\ingredients
{%
\unit[500]{ml} & milk\\
\unit[40]{g} & butter\\
\unit[50]{g} & sugar\\
\unit[50]{g} & something else\\
\unit[70]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\multicolumn{2}{c}{\textbf{Heading}}\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\unit[5000]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\\
\multicolumn{2}{c}{\textbf{Soße}} \\
\unit[100]{ml} & Sahne\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
}
\preparation
{%
\step You can also use headings to structure your ingredients! And unfortunately you can see on second page of this recipe that not all packages are working with each other (see the white space that is left free).
\step \blindtext
\step \blindtext
\step \blindtext
}
\hint
{%
Enjoy typesetting recipes with {\textbf{\Large\LaTeX}} and {\textbf{\Large xcookybooky!}}
}
\end{recipe}
\newpage
\begin{recipe}
[ %
preparationtime = {\unit[1]{h}},
bakingtime,
bakingtemperature,
portion = {\portion{5}},
calory,
source = R. Gaus
]
{A really long recipe!}
\graph
{% pictures
small=pic/glass, % small picture
big=pic/ingredients % big picture
}
\ingredients
{%
\unit[500]{ml} & milk\\
\unit[40]{g} & butter\\
\unit[50]{g} & sugar\\
\unit[50]{g} & something else\\
\unit[70]{g} & something else\\
\unit[50]{g} & something else\\
\unit[250]{g} & something else\\
\unit[50]{g} & something else\\
\multicolumn{2}{c}{\textbf{Heading}}\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\unit[5000]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
\\
\multicolumn{2}{c}{\textbf{Soße}} \\
\unit[100]{ml} & Sahne\\
\unit[50]{g} & something else\\
\unit[50]{g} & something else\\
}
\preparation
{%
\step You can also use headings to structure your ingredients!
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step \blindtext
\step And your recipe can of course even be longer (if your really need it). But it shows at least the principle.
}
\hint
{%
Enjoy typesetting recipes with {\textbf{\Large\LaTeX}} and {\textbf{\Large xcookybooky!}}
}
\end{recipe}
\end{document}
|