summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xcookybooky/example
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-04 22:14:06 +0000
committerKarl Berry <karl@freefriends.org>2015-02-04 22:14:06 +0000
commit22e2fa164b34a0ea2bdc4ffbdcd3eab070bd3876 (patch)
tree991173e6fb70cf6262fc956ad5c3eb47ae02b860 /Master/texmf-dist/doc/latex/xcookybooky/example
parentba6a5f77c55f21dbb9baa453c0d98255a00cba1f (diff)
xcookybooky (4feb15)
git-svn-id: svn://tug.org/texlive/trunk@36212 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.pdfbin389081 -> 422158 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/example.tex335
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/tex/Complete_Recipe.tex54
-rw-r--r--Master/texmf-dist/doc/latex/xcookybooky/example/tex/Mousse_au_Chocolat.tex53
4 files changed, 119 insertions, 323 deletions
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf b/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf
index f16482dfbdb..49939bf7082 100644
--- a/Master/texmf-dist/doc/latex/xcookybooky/example/example.pdf
+++ 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
index 074804c2be1..7ae3d670405 100644
--- a/Master/texmf-dist/doc/latex/xcookybooky/example/example.tex
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/example.tex
@@ -21,19 +21,8 @@ a4paper,
\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][]
@@ -45,14 +34,12 @@ a4paper,
}
-%%%%%%%%%%
-% hyperref
\usepackage{hyperref} % must be the last package
\hypersetup{%
pdfauthor = {Sven Harder},
- pdftitle = {Example Recipes},
+ pdftitle = {Example Recipes for xcookybooky},
pdfsubject = {Recipes},
- pdfkeywords = {recipes},
+ pdfkeywords = {example, recipes, cookbook, xcookybooky},
pdfstartview = {FitV},
pdfview = {FitH},
pdfpagemode = {UseNone}, % Options; UseNone, UseOutlines
@@ -60,334 +47,36 @@ a4paper,
pdfpagetransition = {Glitter},
colorlinks = {true},
linkcolor = {black},
- urlcolor = {black}
+ urlcolor = {blue},
citecolor = {black},
filecolor = {black},
}
-% hyperref
-%%%%%%%%%%
-
+\hbadness=10000 % Ignore underfull boxes
\begin{document}
\title{Examples for using \textbf{xcookybooky}}
-\author{Sven Harder}
+\author{Sven Harder\\ \href{mailto:sven\_one1@gmx.de}{sven\_one1@gmx.de}}
\maketitle
-\begin{center}
- The examples in this document are using the version 1.2 of \texttt{xcookxbooky}.
-\end{center}
+\begin{abstract}
+ \noindent The examples in this document require version~1.4 of the \texttt{xcookybooky}\footnote{\url{http://www.ctan.org/pkg/xcookybooky}} package. For more examples and test recipes especially for using hook functions take a look at the source files located at \url{https://code.google.com/p/xcookybooky/}. If you are interested in modifying the layout of \texttt{xcookybooky} you will find examples in the documentation as well as in the configuration file \textbf{xcookybooky.cfg}.
+\end{abstract}
\tableofcontents
-\vspace{9em}
+\vspace{5em}
\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
+The following recipes are examples for the usage of the \texttt{xcookybooky} package. The copyright of the pictures is owned by Roman Gaus. If you are using MiKTeX~2.9 you should get no errors, no warnings and no overfull boxes. The underfull boxes are suppressed due to the settings.
% 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}
+\include{tex/Mousse_au_Chocolat}
+\include{tex/Complete_Recipe}
\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Complete_Recipe.tex b/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Complete_Recipe.tex
new file mode 100644
index 00000000000..195b27d1be8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Complete_Recipe.tex
@@ -0,0 +1,54 @@
+% Complete recipe example
+\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=Level 2}},
+ portion = {\portion{5-6}},
+ calory={\unit[3]{kJ}},
+ source = {Somebody you used know}
+]
+{Test Recipe}
+
+ \graph
+ {% pictures
+ small=pic/glass, % small picture
+ big=pic/ingredients % big picture
+ }
+
+ \introduction{%
+ \blindtext
+ }
+
+ \ingredients{%
+ 2 bar & Dark Chocolate (above \unit[70]{\%})\\
+ 3 & Eggs\\
+ \unit[200]{ml} & Cream\\
+ 40 g & Sugar\\
+ 50 g & Butter
+ }
+
+ \preparation{%
+ \step \blindtext
+ \step \blindtext
+ \step \blindtext
+ }
+
+ \suggestion[Headline]
+ {%
+ \blindtext
+ }
+
+ \suggestion{%
+ \blindtext
+ }
+
+ \hint{%
+ Enjoy typesetting recipes with {\textbf{\Large\LaTeX}} and {\textbf{\Large xcookybooky!}}
+ }
+
+\end{recipe} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Mousse_au_Chocolat.tex b/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Mousse_au_Chocolat.tex
new file mode 100644
index 00000000000..9feebabb1de
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xcookybooky/example/tex/Mousse_au_Chocolat.tex
@@ -0,0 +1,53 @@
+%% Mousse au Chocolat Example
+
+\begin{otherlanguage}{ngerman}
+
+\setHeadlines
+{% translation
+ inghead = Zutaten,
+ prephead = Zubereitung,
+ hinthead = Tipp,
+ continuationhead = Fortsetzung,
+ continuationfoot = Fortsetzung auf n\"achster Seite,
+ portionvalue = Personen,
+}
+
+\begin{recipe}
+[ % Optionale Eingaben
+ preparationtime = {\unit[1]{h}},
+ portion = \portion{5},
+ source = R. Gaus
+]
+{Mousse au Chocolat}
+
+ \graph
+ {% Bilder
+ small=pic/glass, % kleines Bild
+ big=pic/ingredients % großes (längeres) Bild
+ }
+
+ \ingredients
+ {% Zutaten
+ 2 Tafeln & dunkle Schokolade (über \unit[70]{\%})\\
+ 3 & Eier\\
+ \unit[200]{ml} & Sahne\\
+ \unit[40]{g} & Zucker\\
+ \unit[50]{g} & Butter
+ }
+
+ \preparation
+ { % Zubereitung
+ \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
+ {% Tipp
+ Der Schokoladenanteil kann auch gesenkt werden.
+ }
+
+\end{recipe}
+
+\end{otherlanguage} \ No newline at end of file