From ab01acdc48c98eadc5e1637c54a747e8c65d023b Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 28 Jun 2016 08:25:05 -0400 Subject: [PATCH] Convert Peanut Butter Cookies recipe to TeX And place it under the Snacks section. Signed-off-by: Anna Schumaker --- Makefile | 2 +- snacks/0_title.tex | 7 ++++++ snacks/Makefile | 11 +++++++++ snacks/peanut_butter_cookies.tex | 38 ++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 snacks/0_title.tex create mode 100644 snacks/Makefile create mode 100644 snacks/peanut_butter_cookies.tex diff --git a/Makefile b/Makefile index 35eb7e4..f317e95 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -dirs := breakfast grains animals plants sauces drinks +dirs := breakfast grains animals plants snacks sauces drinks pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf) all: diff --git a/snacks/0_title.tex b/snacks/0_title.tex new file mode 100644 index 0000000..c7f1cce --- /dev/null +++ b/snacks/0_title.tex @@ -0,0 +1,7 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../titlepage} +\begin{document} +\setTitle{Snacks} +\end{document} diff --git a/snacks/Makefile b/snacks/Makefile new file mode 100644 index 0000000..f993fb7 --- /dev/null +++ b/snacks/Makefile @@ -0,0 +1,11 @@ + +SOURCES = $(sort $(wildcard *.tex)) +OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES)) + +all: + latexmk -pdf $(SOURCES) + pdfjoin -o snacks.pdf $(OBJECTS) + +clean: + latexmk -C + rm snacks.pdf diff --git a/snacks/peanut_butter_cookies.tex b/snacks/peanut_butter_cookies.tex new file mode 100644 index 0000000..8d7a4c4 --- /dev/null +++ b/snacks/peanut_butter_cookies.tex @@ -0,0 +1,38 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../recipe} + +\recipeName{Peanut Butter Cookies} +\recipeMakes{4 dozen}{cookies} +\recipeSourceWeb{Classic Peanut Butter Cookies}{AllRecipes.com} + +\begin{document} +\begin{ingredients} +\addIngredient{1 cup}{unsalted butter} +\addIngredient{1\half cups}{peanut butter} +\addIngredient{1 teaspoon}{vanilla} +\addIngredient{1 cup}{white sugar} +\addIngredient{1 cup}{packed brown sugar} +\addIngredient{2}{eggs} +\addIngredient{3 cups}{all-purpose flour} +\addIngredient{1 teaspoon}{baking powder} +\addIngredient{1\half teaspoons}{baking soda} +\addIngredient{\half teaspoon}{salt} +\end{ingredients} + +\begin{steps} +\addStep{Cream \ingredient{butter}, \ingredient{peanut butter}, + \ingredient{vanilla}, and \ingredient{sugars} together in + a \textbf{large bowl}. Beat in \ingredient{eggs}.} +\addStep{Sift \ingredient{flour}, \ingredient{baking powder}, + \ingredient{baking soda}, and \ingredient{salt} together + in a medium bowl.} +\addStep{Add \ingredient{flour mixture} to \ingredient{butter mixture}, + mixing until smooth. Refrigerate \textbf{1 hour}.} +\addStep{Preheat oven to \textbf{\ftemp{375}}.} +\addStep{Roll \ingredient{dough} into \textbf{1 inch} balls. + Place on baking sheets and flatten with a fork, + making a crisscross pattern. Bake \textbf{10 minutes}, or until brown.} +\end{steps} +\end{document}