diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/xcookybooky/example |
Initial commit
Diffstat (limited to 'macros/latex/contrib/xcookybooky/example')
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/example.pdf | bin | 0 -> 421916 bytes | |||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/example.tex | 82 | ||||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/pic/background.pdf | bin | 0 -> 88981 bytes | |||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/pic/glass.jpg | bin | 0 -> 23831 bytes | |||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/pic/ingredients.jpg | bin | 0 -> 26520 bytes | |||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/tex/Complete_Recipe.tex | 54 | ||||
-rw-r--r-- | macros/latex/contrib/xcookybooky/example/tex/Mousse_au_Chocolat.tex | 53 |
7 files changed, 189 insertions, 0 deletions
diff --git a/macros/latex/contrib/xcookybooky/example/example.pdf b/macros/latex/contrib/xcookybooky/example/example.pdf Binary files differnew file mode 100644 index 0000000000..2f99fef175 --- /dev/null +++ b/macros/latex/contrib/xcookybooky/example/example.pdf diff --git a/macros/latex/contrib/xcookybooky/example/example.tex b/macros/latex/contrib/xcookybooky/example/example.tex new file mode 100644 index 0000000000..2897be52a4 --- /dev/null +++ b/macros/latex/contrib/xcookybooky/example/example.tex @@ -0,0 +1,82 @@ +\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 + +\DeclareRobustCommand{\textcelcius}{\ensuremath{^{\circ}\mathrm{C}}} + + +\setcounter{secnumdepth}{1} +\renewcommand*{\recipesection}[2][] +{% + \subsection[#1]{#2} +} +\renewcommand{\subsectionmark}[1] +{% no implementation to display the section name instead +} + + +\usepackage{hyperref} % must be the last package +\hypersetup{% + pdfauthor = {Sven Harder}, + pdftitle = {Example Recipes for xcookybooky}, + pdfsubject = {Recipes}, + pdfkeywords = {example, recipes, cookbook, xcookybooky}, + pdfstartview = {FitV}, + pdfview = {FitH}, + pdfpagemode = {UseNone}, % Options; UseNone, UseOutlines + bookmarksopen = {true}, + pdfpagetransition = {Glitter}, + colorlinks = {true}, + linkcolor = {black}, + urlcolor = {blue}, + citecolor = {black}, + filecolor = {black}, +} + +\hbadness=10000 % Ignore underfull boxes + +\begin{document} + +\title{Examples for using \textbf{xcookybooky}} +\author{Sven Harder\\ \href{mailto:sven\_one1@gmx.de}{sven\_one1@gmx.de}} +\maketitle + +\begin{abstract} + \noindent The examples in this document require at least 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{5em} + +\section{Recipes} +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} + +\include{tex/Mousse_au_Chocolat} + +\include{tex/Complete_Recipe} + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/xcookybooky/example/pic/background.pdf b/macros/latex/contrib/xcookybooky/example/pic/background.pdf Binary files differnew file mode 100644 index 0000000000..fb14c8c0e0 --- /dev/null +++ b/macros/latex/contrib/xcookybooky/example/pic/background.pdf diff --git a/macros/latex/contrib/xcookybooky/example/pic/glass.jpg b/macros/latex/contrib/xcookybooky/example/pic/glass.jpg Binary files differnew file mode 100644 index 0000000000..a45b9f79ba --- /dev/null +++ b/macros/latex/contrib/xcookybooky/example/pic/glass.jpg diff --git a/macros/latex/contrib/xcookybooky/example/pic/ingredients.jpg b/macros/latex/contrib/xcookybooky/example/pic/ingredients.jpg Binary files differnew file mode 100644 index 0000000000..9d9c490b21 --- /dev/null +++ b/macros/latex/contrib/xcookybooky/example/pic/ingredients.jpg diff --git a/macros/latex/contrib/xcookybooky/example/tex/Complete_Recipe.tex b/macros/latex/contrib/xcookybooky/example/tex/Complete_Recipe.tex new file mode 100644 index 0000000000..195b27d1be --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/xcookybooky/example/tex/Mousse_au_Chocolat.tex b/macros/latex/contrib/xcookybooky/example/tex/Mousse_au_Chocolat.tex new file mode 100644 index 0000000000..9feebabb1d --- /dev/null +++ b/macros/latex/contrib/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 |