From bd17634e2972c429115c1a7add73bd368ea8bc47 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sun, 26 Jun 2016 09:53:51 -0400 Subject: [PATCH] Convert Baked Pepper Mac recipe to TeX Signed-off-by: Anna Schumaker --- grains/baked_pepper_mac.tex | 49 +++++++++++++++++++++++++++++++++++++ recipe.cls | 18 +++++++++++--- 2 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 grains/baked_pepper_mac.tex diff --git a/grains/baked_pepper_mac.tex b/grains/baked_pepper_mac.tex new file mode 100644 index 0000000..f8cf517 --- /dev/null +++ b/grains/baked_pepper_mac.tex @@ -0,0 +1,49 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../recipe} + +\recipeName{Baked Pepper Mac} +\recipeServes{6} +\recipeServingSize{1\twothirds cups} +\recipeSourceBook{Cooking Light: The Essential Dinner Tonight Cookbook}{290} + +\begin{document} +\begin{ingredients} +\addIngredientName{Cooking Spray} +\addIngredient{9 cups (4 cups dry)}{macaroni, cooked} +\addIngredient{\half cup}{onion, finely chopped} +\addIngredient{3 cups}{milk} +\addIngredient{\quarter teaspoon}{ground black pepper} +\addIngredient{\eighth teaspoon}{ground red pepper} +\addIngredient{3 tablespoons}{all-purpose flour} +\addIngredient{1}{jalapeno pepper, seeded and chopped} +\addIngredient{8 ounces}{cheddar cheese, shredded} +\addIngredient{6 ounces}{gouda cheese, shredded} +\addIngredient{1\half cups}{red bell pepper, seeded and chopped} +\addIngredient{1\half cups}{green bell pepper, seeded and chopped} +\addIngredient{1 cup}{breadcrumbs} +\end{ingredients} + +\begin{steps} +\addStep{Coat a \textbf{13 x 9 inch} baking dish and a \textbf{medium} + saucepan with \ingredient{cooking spray}. Preheat oven to + \textbf{\ftemp{400}}.} +\addStep{Heat saucepan over \textbf{medium} heat. Add \ingredient{onion} to + pan and cook \textbf{4 minutes}, stirring frequently.} +\addStep{Add \ingredient{milk}, \ingredient{black pepper}, and + \ingredient{red pepper} to pan. Whisk in \ingredient{flour} + \textbf{one tablespoon} at a time to prevent clumping. Bring to a + \textbf{simmer} and remove from heat. Stir in \ingredient{jalapenos}.} +\addStep{Gradually add \ingredient{cheddar} and \ingredient{gouda} by + \textbf{handfuls}, stirring until melted.} +\addStep{Combine \ingredient{macaroni}, \ingredient{bell peppers}, and + \ingredient{cheese sauce} in a \textbf{large} bowl, stirring to + combine.} +\addStep{Pour \ingredient{pasta mixure} into baking dish and sprinkle + \ingredient{breadcrumbs} on top.} +\addStep{Bake at \textbf{\ftemp{400}} for \textbf{20 minutes}} +\end{steps} + +\addReheating{Microwave on \textbf{70\%} power for \textbf{3 minutes}.} +\end{document} diff --git a/recipe.cls b/recipe.cls index 6baa5ac..9a31191 100644 --- a/recipe.cls +++ b/recipe.cls @@ -18,6 +18,7 @@ \newcommand{\recipeServes}[1] {\def\recipe@serves{#1}} \newcommand{\recipeServingSize}[1] {\def\recipe@servingsize{#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}} % Preformatted fractions @@ -33,7 +34,7 @@ \newcommand{\section}[1] { - \hfill\flushleft{\Large{\textbf{#1:}}} + \vspace{0.5em}\flushleft{\Large{\textbf{#1:}}} } @@ -42,10 +43,11 @@ { \centering{ \Huge{\textbf{\recipe@name}}\LARGE{\recipe@source} \\ - \vspace{5pt} + \vspace{0.25em} \LARGE{\em{Serves: \textbf{\recipe@serves}, % serving size: \textbf{\recipe@servingsize}}} } \\ + \vspace{1em} } @@ -70,7 +72,7 @@ { \section{Steps} \begin{enumerate} - \setlength\itemsep{1em} + \setlength\itemsep{0.75em} } { \end{enumerate} @@ -78,3 +80,13 @@ \newcommand{\addStep}[1] {\large{\item{#1}}} \newcommand{\ingredient}[1] {\underline{\smash{#1}}} + + +% Add a command for reheating instructions +\newcommand{\addReheating}[1] +{ + \section{Reheating} + \begin{itemize} + \item[]\large{#1} + \end{itemize} +}