From 24d00ff8258296460f73c8103f15f9f9cf608a8b Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 27 Jun 2016 10:25:51 -0400 Subject: [PATCH] Convert Simple Horseradish Aioli to TeX And add to the Sauces section Signed-off-by: Anna Schumaker --- Makefile | 2 +- recipe.cls | 9 +++++++++ sauces/0_title.tex | 7 +++++++ sauces/Makefile | 11 +++++++++++ sauces/simple_horseradish_aioli.tex | 19 +++++++++++++++++++ 5 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 sauces/0_title.tex create mode 100644 sauces/Makefile create mode 100644 sauces/simple_horseradish_aioli.tex diff --git a/Makefile b/Makefile index b3af381..35eb7e4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -dirs := breakfast grains animals plants drinks +dirs := breakfast grains animals plants sauces drinks pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf) all: diff --git a/recipe.cls b/recipe.cls index 98194f4..be68263 100644 --- a/recipe.cls +++ b/recipe.cls @@ -68,6 +68,15 @@ \end{multicols} } +\newenvironment{ingredientsSmall} +{ + \section{Ingredients} + \begin{itemize} +} +{ + \end{itemize} +} + \newcommand{\addIngredient}[2] {\large{\item{\textbf{#1} #2}}} \newcommand{\addIngredientName}[1] {\large{\item{#1}}} diff --git a/sauces/0_title.tex b/sauces/0_title.tex new file mode 100644 index 0000000..860928f --- /dev/null +++ b/sauces/0_title.tex @@ -0,0 +1,7 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../titlepage} +\begin{document} +\setTitle{Sauces} +\end{document} diff --git a/sauces/Makefile b/sauces/Makefile new file mode 100644 index 0000000..46a0c33 --- /dev/null +++ b/sauces/Makefile @@ -0,0 +1,11 @@ + +SOURCES = $(sort $(wildcard *.tex)) +OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES)) + +all: + latexmk -pdf $(SOURCES) + pdfjoin -o sauces.pdf $(OBJECTS) + +clean: + latexmk -C + rm sauces.pdf diff --git a/sauces/simple_horseradish_aioli.tex b/sauces/simple_horseradish_aioli.tex new file mode 100644 index 0000000..b205d24 --- /dev/null +++ b/sauces/simple_horseradish_aioli.tex @@ -0,0 +1,19 @@ +% +% Copyright 2016 (c) Anna Schumaker. +% +\documentclass{../recipe} + +\recipeName{Simple Horseradish Aioli} +\recipeSourceBook{Cooking Light: The Essential Dinner Tonight Cookbook}{321} + +\begin{document} +\begin{ingredientsSmall} +\addIngredient{6 tablespoons}{mayonnaise} +\addIngredient{6 teaspoons}{prepared horseradish} +\addIngredient{3 teaspoons}{bottled minced garlic} +\end{ingredientsSmall} + +\begin{steps} +\addStep{Combine \ingredient{all ingredients} in a small bowl. Mix well.} +\end{steps} +\end{document}