diff --git a/Makefile b/Makefile index 8e7a08d..9fd6c1b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -dirs := breakfast grains +dirs := breakfast grains animals pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf) all: diff --git a/animals/0_title.tex b/animals/0_title.tex new file mode 100644 index 0000000..051ef88 --- /dev/null +++ b/animals/0_title.tex @@ -0,0 +1,7 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../titlepage} +\begin{document} +\setTitle{Animals} +\end{document} diff --git a/animals/Makefile b/animals/Makefile new file mode 100644 index 0000000..765d206 --- /dev/null +++ b/animals/Makefile @@ -0,0 +1,11 @@ + +SOURCES = $(sort $(wildcard *.tex)) +OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES)) + +all: + latexmk -pdf $(SOURCES) + pdfjoin -o animals.pdf $(OBJECTS) + +clean: + latexmk -C + rm animals.pdf diff --git a/animals/bbq_chicken_pizza.tex b/animals/bbq_chicken_pizza.tex new file mode 100644 index 0000000..73b3fe8 --- /dev/null +++ b/animals/bbq_chicken_pizza.tex @@ -0,0 +1,36 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../recipe} + +\recipeName{BBQ Chicken Pizza} +\recipeServes{6} +\recipeServingSize{1 wedge} +\recipeSourceBook{Cooking Light: The Essential Dinner Tonight Cookbook}{301} + +\begin{document} +\begin{ingredients} +\addIngredient{1 (10 ounce)}{pizza crust} +\addIngredient{\threequarters cup}{tomato chutney} +\addIngredient{2 cups (2 breasts)}{chicken, cooked and chopped} +\addIngredient{\twothirds cup}{plum tomatoes, chopped} +\addIngredient{3 ounces}{sharp cheddar cheese, shredded} +\addIngredient{\third cup}{green onions, chopped} +\addIngredient{4 -- 5 leaves}{arugula, chopped} +\end{ingredients} + +\begin{steps} +\addStep{Preheat oven to \textbf{\ftemp{450}}.} +\addStep{Place \ingredient{crust} on a baking sheet and bake for + \textbf{3 minutes}. Remove from oven.} +\addStep{Spread \ingredient{chutney} over \ingredient{crust}, leaving + \textbf{\half inch} border.} +\addStep{Top chutney with \ingredient{chicken}, \ingredient{tomato}, + \ingredient{cheese}, and \ingredient{onions}. Bake for + \textbf{9 minutes}, or until cheese melts.} +\addStep{Cut pizza into \textbf{6 wedges}.} +\end{steps} + +\addSuggestion{Sauce}{Quick Tomato Chutney.} +\addReheating{Microwave on \textbf{high} for \textbf{1 -- 2 minutes}.} +\end{document} diff --git a/recipe.cls b/recipe.cls index 9a31191..dd08d71 100644 --- a/recipe.cls +++ b/recipe.cls @@ -23,6 +23,7 @@ % Preformatted fractions \newcommand{\fraction}[2] {\(\mathbf{\frac{#1}{#2}}\)\ } +\newcommand{\third} {\fraction{1}{3}} \newcommand{\half} {\fraction{1}{2}} \newcommand{\twothirds} {\fraction{2}{3}} \newcommand{\quarter} {\fraction{1}{4}} @@ -82,11 +83,14 @@ \newcommand{\ingredient}[1] {\underline{\smash{#1}}} -% Add a command for reheating instructions -\newcommand{\addReheating}[1] +% Add a command for other recipe notes +\newcommand{\addNote}[2] { - \section{Reheating} + \section{#1} \begin{itemize} - \item[]\large{#1} + \item[]\large{#2} \end{itemize} } + +\newcommand{\addReheating}[1] {\addNote{Reheating}{#1}} +\newcommand{\addSuggestion}[2] {\addNote{Suggested #1}{#2}}