diff --git a/README.md b/README.md index 7094154..eb781df 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,19 @@ -cookbook -=============== +# Requirements +* latex distribution (e.g. texlive or miktex) +* the [xcookybooky](http://www.ctan.org/tex-archive/macros/latex/contrib/xcookybooky) package +* [emerald](http://www.ctan.org/tex-archive/fonts/emerald) font -a cookbook, written in latex using the xcookybooky package \ No newline at end of file +# Installation +## xcookybooky +Download the *xcookybooky.ins* and the *xcookybooky.dtx* file. + +After that simply run `latex xcookybooky.ins` and copy the generated *xcookybooky.sty* file into your latex distribution (e.g. */usr/share/texlive/texmf-dist*). You can copy the generated *xcookybooky.cfg* into the same folder or if you want a specific config file for every xcookybooky-project you can copy it in the projects root folder. + +The last thing you have to do is to update your package list. Otherwise your new *cookybooky.sty* file will not be recognized. To update your list you have to run `texhash` or use the miktex manager. + +##emerald +Download the *fonts*, *doc* and *tex* folder and extract them into your latex distribution (e.g. */usr/share/texlive/texmf-dist*). + +Now you have to update your package list (see xcookybooky installation). + +The last step is to enable the new font map. Open a terminal and navigate to the folder containing your *emerald.map* (e.g. */usr/share/texlive/texmf-dist/fonts/map/dvips*, *fonts/map/dvips* should be the same on all systems). Now run the following command: `updmap-sys --enable Map=emerald.map` (if you're using an unix-based OS, add `sudo`. diff --git a/graphics/background.pdf b/graphics/background.pdf new file mode 100644 index 0000000..fb14c8c --- /dev/null +++ b/graphics/background.pdf Binary files differ diff --git a/graphics/glass.jpg b/graphics/glass.jpg new file mode 100644 index 0000000..a45b9f7 --- /dev/null +++ b/graphics/glass.jpg Binary files differ diff --git a/graphics/ingredients.jpg b/graphics/ingredients.jpg new file mode 100644 index 0000000..9d9c490 --- /dev/null +++ b/graphics/ingredients.jpg Binary files differ diff --git a/graphics/kuppeltorte.jpg b/graphics/kuppeltorte.jpg new file mode 100644 index 0000000..eecc6c3 --- /dev/null +++ b/graphics/kuppeltorte.jpg Binary files differ diff --git a/koch-backbuch.pdf b/koch-backbuch.pdf new file mode 100644 index 0000000..2a2a671 --- /dev/null +++ b/koch-backbuch.pdf Binary files differ diff --git a/koch-backbuch.tex b/koch-backbuch.tex new file mode 100644 index 0000000..2b50495 --- /dev/null +++ b/koch-backbuch.tex @@ -0,0 +1,260 @@ +\documentclass[% +a4paper, +%twoside, +11pt +]{article} +% Comment it out and see the difference + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% FONTENCODING +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[T1]{fontenc} +\usepackage[utf8x]{inputenc} +\usepackage{lmodern} +\usepackage[ngerman]{babel} + +\usepackage{nicefrac} + +\usepackage[ + handwritten, + nowarnings, + %myconfig +] +{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} +} +\renewcommand{\subsectionmark}[1] +{% no implementation to display the section name instead +} + + +%%%%%%%%%% +% hyperref +\usepackage{hyperref} % must be the last package +\hypersetup{% + pdfauthor = {Vinzenz Rosenkranz}, + pdftitle = {Kochbuch}, + pdfsubject = {Rezepte}, + 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{Mein Kochbuch} +\author{Vinzenz Rosenkranz} +\maketitle + +\begin{center} + The examples in this document are using the version 1.2 of \texttt{xcookxbooky}. +\end{center} + +\newpage +\tableofcontents +\newpage + +\section{Vorspeisen} +\newpage + +\subsection{Suppen} +\newpage + +% END OF SUBSECTION +\newpage + +\subsection{Salate} +\newpage + +% END OF SUBSECTION +\newpage + +\section{Hauptgerichte} +\newpage + +\subsection{Fleischgerichte} +\newpage + +% END OF SUBSECTION +\newpage + +\subsection{Vegetarisches} +\newpage + +\begin{recipe} +[ % + preparationtime = {\unit[20]{min}}, + bakingtime = {\unit[15]{min}}, + bakingtemperature, + portion = {\portion{4}}, + calory, + source = Chefkoch.de +] +{Haferflocken-Burger} + + \graph + {% pictures + %big=graphics/kuppeltorte, + %small=graphics/ingredients + } + \ingredients + {% + 1 & Zwiebel\\ + \unit[200]{g} & Haferflocken\\ + \unit[375]{ml} & Gemüsebrühe\\ + 1 & Ei\\ + & Gewürze + } + + \preparation + {% + \step Die Zwiebel in kleine Würfel schneiden und in Butter/Öl leicht anbraten. Die Haferflocken dazu geben und mit der Gemüsebrühe ablöschen. + \step Die Masse etwa \unit[15]{min} ziehen lassen. Anschließend das Ei dazu geben und mit den Gewürzen vermischen. + \step Die Masse zu Buletten formen und von beiden Seiten anbraten. + } +\end{recipe} + +%%%%%%%%%%%%%%%%%% +% END OF SECTION % +%%%%%%%%%%%%%%%%%% + +\newpage + +%%%%%%%%%%%%%%%%%%%% +% BEGIN OF SECTION % +%%%%%%%%%%%%%%%%%%%% +\section{Nachspeisen} +\newpage + +\begin{recipe} +[ % + preparationtime = {\unit[15]{min}}, + portion = {\portion{8}}, + calory, + source = Internet +] +{Schneegestöber} + + \graph + {% pictures + %big=graphics/kuppeltorte, %TODO + %small=graphics/ingredients %TODO + } + \ingredients + {% + \unit[250]{g} & Mascarpone\\ + \unit[250]{g} & Quark (Magerquark)\\ + \unit[250]{g} & Quark Creme\\ + \unit[200]{g} & Sahne\\ + 1 Tafel & Schokolade (weiß)\\ + $\frac{1}{2}$ Packung & TK-Himbeeren\\ + \unit[150]{g} & Zucker\\ + } + + \preparation + {% + \step Zucker mit der Sahne in eine Schüssel geben und halbsteif schlagen. + \step Dann Quark, Quarkcreme und Mascarpone unterziehen. + \step Die Tafel Schokolade raspeln (vor dem Raspeln ins Gefrierfach legen, dann bricht Sie nicht und wird feiner) und unterziehen. + } + \hint + {% + Etwa 1 Stunde vor dem Servieren die tiefgekühlten Himbeeren dazugeben. Das macht die Speise dann richtig frisch und kühl. + } +\end{recipe} + +%%%%%%%%%%%%%%%%%% +% END OF SECTION % +%%%%%%%%%%%%%%%%%% + +\newpage + +%%%%%%%%%%%%%%%%%%%% +% BEGIN OF SECTION % +%%%%%%%%%%%%%%%%%%%% + +\section{Kuchen \& Torten} +\newpage + +% background graphic +\setBackgroundPicture[x, y=-2cm, width=\paperwidth-4cm, height, orientation = pagecenter] +{graphics/background} + +\begin{recipe} +[ % + preparationtime = {\unit[60]{min}}, + bakingtime, + bakingtemperature, + portion = {\portion{12}}, + calory, + source = Papa +] +{Kuppeltorte} + + \graph + {% pictures + big=graphics/kuppeltorte, + %small=graphics/ingredients + } + \ingredients + {% + \multicolumn{2}{c}{\textbf{Bisquit-Teig}}\\ + \unit[75]{g} & Mehl\\ + \unit[50]{g} & Kartoffelmehl\\ + 1 Päckchen & Vanillezucker\\ + \unit[3]{EL} & Wasser\\ + 4 & Eier\\ + \unit[125]{g} & Zucker\\ + \unit[100-200]{g} & Johannisbeergelee\\ + 1 Messerspitze & Backpulver\\ + \multicolumn{2}{c}{\textbf{Füllung}}\\ + 2 & Zitronen\\ + 1 Packung & Götterspeise (Zitrone)\\ + 1 Tasse & Wasser\\ + 1 Tasse & Zucker\\ + \unit[200]{g} & Frischkäse (Philadelphia)\\ + 1 Päckchen & Vanillezucker\\ + \unit[600]{g} & Sahne + } + + \preparation + {% + \step Zuerst werden Eigelb und Eiweiß getrennt. Das Eiweiß schaumig schlagen. Eigelb und Wasser ebenfalls schaumig schlagen. Danach den Zucker und das Mehl zugeben. Zum Schluss den Einschnee einrühren.\\ + Den Teig 20 Minuten bei 200°C backen. + \step Götterspeise 10 Minuten im Wasser quellen lassen, danach kurz aufkochen und abkühlen lassen.\\ + Den Frischkäse mit dem Zitronensaft verrühren. Zucker, Vanillezucker zugeben. Anschließend die Götterspeise dazugeben. Die Sahne schlagen und in die Creme unterheben. + \step Den fertigen Bisquit-Teig auf einem mit etwas Zucker bestreutem Geschirrtuch legen und mit dem Johannisbeergelee bestreichen. Anschließend zu einer Rolle zusammen rollen. Die Rolle in kleine Scheiben schneiden.\\ + Eine Schüssel mit Folie auslegen und mit den Bisquit-Scheiben auslegen.\\ + Die Creme eingießen und mit den restlichen Scheiben bedecken. Im Kühlschrank fest werden lassen. + } +\end{recipe} + +\end{document} \ No newline at end of file diff --git a/xcookybooky.cfg b/xcookybooky.cfg new file mode 100644 index 0000000..ab134ec --- /dev/null +++ b/xcookybooky.cfg @@ -0,0 +1,63 @@ +%% +%% This is file `xcookybooky.cfg', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xcookybooky.dtx (with options: `config') +%% +\ProvidesFile{xcookybooky.cfg} + [2011/12/29 v1.0 'xcookybooky' configuration] +%% Change Layout +\setRecipeColors +{% + recipename, + ing, + inghead, + prep, + prephead, + hint, + hinthead, + hintline, + numeration +} + +\setRecipeSizes +{% + recipename, + ing, + inghead, + prep, + prephead, + hint, + hinthead +} + +\setRecipeLengths +{% + preparationwidth, + ingredientswidth, + pictureheight +} + +\setRecipenameFont{fjd}{T1}{m}{n} + +%% Translation +\setHeadlines +{% + inghead, + prephead, + hinthead, + continuationhead, + continuationfoot, + preparationtime, + bakingtime, + bakingtemperature, + portion, + portionvalue, + calory, + source +} +\endinput +%% +%% End of file `xcookybooky.cfg'.