diff --git a/.gitignore b/.gitignore index b7cc26e..1acfd6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,7 @@ .~lock.cookbook.odt# +*.sw* +*.pdf +*.aux +*.fls +*.log +*.fdb_latexmk diff --git a/breakfast_quesadillas.tex b/breakfast_quesadillas.tex new file mode 100644 index 0000000..6cd094a --- /dev/null +++ b/breakfast_quesadillas.tex @@ -0,0 +1,43 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{recipe} + +\recipeName{Breakfast Quesadillas} +\recipeServes{1} +\recipeServingSize{1 quesadilla} + +\begin{document} +\begin{ingredients} +\addIngredient{2}{eggs} +\addIngredient{\eighth cup}{milk} +\addIngredient{\eighth teaspoon}{ground black pepper} +\addIngredient{10 - 15 drops}{Tabasco sauce} +\addIngredient{1\quarter teaspoons}{olive oil} +\addIngredient{1 clove}{garlic, minced} +\addIngredient{2}{green onions, finely chopped} +\addIngredient{\quarter cup}{red bell pepper, chopped} +\addIngredient{1 large}{tortilla} +\addIngredientName{Cooking spray} +\addIngredient{\quarter cup}{pepper jack cheese, shredded and divided} +\end{ingredients} + +\begin{steps} +\addStep{Beat \ingredient{eggs}, \ingredient{milk}, \ingredient{black pepper}, + and \ingredient{Tobasco sauce} in a small bowl until smooth.} +\addStep{Heat \ingredient{oil}, in a large nonstick skillet over + \textbf{medium-high} heat. Add \ingredient{garlic}, + \ingredient{onions}, and \ingredient{bell peppers}. Saute + \textbf{3 minutes}. Reduce heat to \textbf{low} and pour + \ingredient{egg mixture} into pan. Stir until eggs are cooked + through, then remove from pan.} +\addStep{Increase heat to \textbf{medium-high}. Spray one side of the + \ingredient{tortilla} with \ingredient{cooking spray} and place on + skillet coated side down. Spread \textbf{\eighth cup} + \ingredient{cheese} over \textbf{half} of the tortilla, add + \ingredient{egg mixture}, and top with + \ingredient{remaining cheese}.} +\addStep{Fold tortilla in half and cook \textbf{3 - 5 minutes} on each side, + until golden. Remove from heat and cut into wedges before serving.} +\end{steps} +\end{document} diff --git a/recipe.cls b/recipe.cls new file mode 100644 index 0000000..1dd28bc --- /dev/null +++ b/recipe.cls @@ -0,0 +1,69 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\ProvidesClass{recipe} +\LoadClass[letterpaper]{letter} + +\RequirePackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} +\RequirePackage{multicol} +\RequirePackage{newcent} +\RequirePackage{ragged2e} + +\pagestyle{empty} + +% Macros for setting recipe variables +\newcommand{\recipeName}[1] {\def\recipe@name{#1}} +\newcommand{\recipeServes}[1] {\def\recipe@serves{#1}} +\newcommand{\recipeServingSize}[1] {\def\recipe@servingsize{#1}} + +% Preformatted fractions +\newcommand{\half} {\(\mathbf{\frac{1}{2}}\)\ } +\newcommand{\quarter} {\(\mathbf{\frac{1}{4}}\)\ } +\newcommand{\eighth} {\(\mathbf{\frac{1}{8}}\)\ } + +\newcommand{\section}[1] +{ + \hfill\flushleft{\Large{\textbf{#1:}}} +} + + +% Extend the \begin{document} command +\AtBeginDocument +{ + \centering{ + \Huge{\textbf{\recipe@name}} \\ + \LARGE{\em{Serves: \textbf{\recipe@serves}, % + serving size: \textbf{\recipe@servingsize}}} + } \\ +} + + +% Add an environment and commands for ingredients +\newenvironment{ingredients} +{ + \section{Ingredients} + \begin{multicols}{2} + \begin{itemize} +} +{ + \end{itemize} + \end{multicols} +} + +\newcommand{\addIngredient}[2] {\large{\item{\textbf{#1} #2}}} +\newcommand{\addIngredientName}[1] {\large{\item{#1}}} + + +% Add an environment and commands for steps +\newenvironment{steps} +{ + \section{Steps} + \begin{enumerate} + \setlength\itemsep{1em} +} +{ + \end{enumerate} +} + +\newcommand{\addStep}[1] {\large{\item{#1}}} +\newcommand{\ingredient}[1] {\underline{\smash{#1}}}