diff --git a/Makefile b/Makefile index 3d71212..b3af381 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -dirs := breakfast grains animals plants +dirs := breakfast grains animals plants drinks pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf) all: diff --git a/drinks/0_title.tex b/drinks/0_title.tex new file mode 100644 index 0000000..eac9c47 --- /dev/null +++ b/drinks/0_title.tex @@ -0,0 +1,7 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../titlepage} +\begin{document} +\setTitle{Drinks} +\end{document} diff --git a/drinks/Makefile b/drinks/Makefile new file mode 100644 index 0000000..921fd0d --- /dev/null +++ b/drinks/Makefile @@ -0,0 +1,11 @@ + +SOURCES = $(sort $(wildcard *.tex)) +OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES)) + +all: + latexmk -pdf $(SOURCES) + pdfjoin -o drinks.pdf $(OBJECTS) + +clean: + latexmk -C + rm drinks.pdf diff --git a/drinks/ginger_beer.tex b/drinks/ginger_beer.tex new file mode 100644 index 0000000..46dac1c --- /dev/null +++ b/drinks/ginger_beer.tex @@ -0,0 +1,36 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../recipe} + +\recipeName{Ginger Beer} +\recipeSourceWeb{How to Make Alcoholic Ginger Beer from Scratch}{Food52.com} + +\begin{document} +\begin{ingredients} +\addIngredient{2\half cups}{warm water} +\addIngredient{1 packet}{champagne yeast} +\addIngredient{\half cup}{lemon juice} +\addIngredient{1}{jalapeno pepper, sliced (optional)} +\addIngredient{7 tablespoons}{ginger, peeled and grated (divided)} +\addIngredient{7 tablespoons and 3 cups}{sugar (divided)} +\end{ingredients} + +\begin{steps} +\addStep{Pour \ingredient{water} into a large glass jar. + Add \ingredient{yeast} and stir until dissolved. + Stir in \ingredient{lemon juice}. + (Optional) Stir in \ingredient{jalapeno} slices.} +\addStep{Add \textbf{1 tablespoon} \ingredient{ginger} and + \textbf{1 tablespoon} \ingredient{sugar} to the jar, stirring to + combine. Cover jar with paper towel or a piece of cheesecloth. + Repeat every day for \textbf{1 week}.} +\addStep{Fill \textbf{three 2-liter} bottles with \ingredient{water} and add + \textbf{1 cup} of \ingredient{sugar} to each bottle. + Add \textbf{\third}of the \ingredient{ginger mixture} to each bottle.} +\addStep{Seal bottles and let sit until they become too difficult to squeeze. + Refrigerate.} +\addStep{For an alcoholic drink: let sit for a total of \textbf{1 -- 2 weeks}, + releasing built up pressure daily.} +\end{steps} +\end{document} diff --git a/recipe.cls b/recipe.cls index 6f4acb3..98194f4 100644 --- a/recipe.cls +++ b/recipe.cls @@ -13,10 +13,15 @@ \pagestyle{empty} % Macros for setting recipe variables +\def\recipe@serves{ } +\def\recipe@servingsize{ } \def\recipe@source{ } \newcommand{\recipeName}[1] {\def\recipe@name{#1}} -\newcommand{\recipeServes}[1] {\def\recipe@serves{#1}} -\newcommand{\recipeServingSize}[1] {\def\recipe@servingsize{#1}} +\newcommand{\recipeServes}[1] {\def\recipe@serves{Serves: \textbf{#1}}} +\newcommand{\recipeServingSize}[1] +{ + \def\recipe@servingsize{, serving size: \textbf{#1}} +} \newcommand{\recipeSource}[1] {\def\recipe@source{\footnote{#1}}} \newcommand{\recipeSourceBook}[2] {\recipeSource{{\em #1}. Page: #2.}} \newcommand{\recipeSourceWeb}[2] {\recipeSource{{\em #1}. Source: #2.}} @@ -45,9 +50,8 @@ \centering{ \Huge{\textbf{\recipe@name}}\LARGE{\recipe@source} \\ \vspace{0.25em} - \LARGE{\em{Serves: \textbf{\recipe@serves}, % - serving size: \textbf{\recipe@servingsize}}} - } \\ + \LARGE{\em{\recipe@serves\recipe@servingsize}} + } \vspace{1em} }