Convert Ginger Beer recipe to TeX
And add it to the Drinks section Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
6f1f71ae0b
commit
7f4e54728e
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
dirs := breakfast grains animals plants
|
dirs := breakfast grains animals plants drinks
|
||||||
pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf)
|
pdfs := $(foreach dir, $(dirs), $(dir)/$(dir).pdf)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
%
|
||||||
|
% Copyright 2016 (c) Anna Schumaker.
|
||||||
|
%
|
||||||
|
\documentclass{../titlepage}
|
||||||
|
\begin{document}
|
||||||
|
\setTitle{Drinks}
|
||||||
|
\end{document}
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
SOURCES = $(sort $(wildcard *.tex))
|
||||||
|
OBJECTS = $(patsubst %.tex, %.pdf, $(SOURCES))
|
||||||
|
|
||||||
|
all:
|
||||||
|
latexmk -pdf $(SOURCES)
|
||||||
|
pdfjoin -o drinks.pdf $(OBJECTS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
latexmk -C
|
||||||
|
rm drinks.pdf
|
|
@ -0,0 +1,36 @@
|
||||||
|
%
|
||||||
|
% Copyright 2016 (c) Anna Schumaker.
|
||||||
|
%
|
||||||
|
\documentclass{../recipe}
|
||||||
|
|
||||||
|
\recipeName{Ginger Beer}
|
||||||
|
\recipeSourceWeb{How to Make Alcoholic Ginger Beer from Scratch}{Food52.com}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\begin{ingredients}
|
||||||
|
\addIngredient{2\half cups}{warm water}
|
||||||
|
\addIngredient{1 packet}{champagne yeast}
|
||||||
|
\addIngredient{\half cup}{lemon juice}
|
||||||
|
\addIngredient{1}{jalapeno pepper, sliced (optional)}
|
||||||
|
\addIngredient{7 tablespoons}{ginger, peeled and grated (divided)}
|
||||||
|
\addIngredient{7 tablespoons and 3 cups}{sugar (divided)}
|
||||||
|
\end{ingredients}
|
||||||
|
|
||||||
|
\begin{steps}
|
||||||
|
\addStep{Pour \ingredient{water} into a large glass jar.
|
||||||
|
Add \ingredient{yeast} and stir until dissolved.
|
||||||
|
Stir in \ingredient{lemon juice}.
|
||||||
|
(Optional) Stir in \ingredient{jalapeno} slices.}
|
||||||
|
\addStep{Add \textbf{1 tablespoon} \ingredient{ginger} and
|
||||||
|
\textbf{1 tablespoon} \ingredient{sugar} to the jar, stirring to
|
||||||
|
combine. Cover jar with paper towel or a piece of cheesecloth.
|
||||||
|
Repeat every day for \textbf{1 week}.}
|
||||||
|
\addStep{Fill \textbf{three 2-liter} bottles with \ingredient{water} and add
|
||||||
|
\textbf{1 cup} of \ingredient{sugar} to each bottle.
|
||||||
|
Add \textbf{\third}of the \ingredient{ginger mixture} to each bottle.}
|
||||||
|
\addStep{Seal bottles and let sit until they become too difficult to squeeze.
|
||||||
|
Refrigerate.}
|
||||||
|
\addStep{For an alcoholic drink: let sit for a total of \textbf{1 -- 2 weeks},
|
||||||
|
releasing built up pressure daily.}
|
||||||
|
\end{steps}
|
||||||
|
\end{document}
|
14
recipe.cls
14
recipe.cls
|
@ -13,10 +13,15 @@
|
||||||
\pagestyle{empty}
|
\pagestyle{empty}
|
||||||
|
|
||||||
% Macros for setting recipe variables
|
% Macros for setting recipe variables
|
||||||
|
\def\recipe@serves{ }
|
||||||
|
\def\recipe@servingsize{ }
|
||||||
\def\recipe@source{ }
|
\def\recipe@source{ }
|
||||||
\newcommand{\recipeName}[1] {\def\recipe@name{#1}}
|
\newcommand{\recipeName}[1] {\def\recipe@name{#1}}
|
||||||
\newcommand{\recipeServes}[1] {\def\recipe@serves{#1}}
|
\newcommand{\recipeServes}[1] {\def\recipe@serves{Serves: \textbf{#1}}}
|
||||||
\newcommand{\recipeServingSize}[1] {\def\recipe@servingsize{#1}}
|
\newcommand{\recipeServingSize}[1]
|
||||||
|
{
|
||||||
|
\def\recipe@servingsize{, serving size: \textbf{#1}}
|
||||||
|
}
|
||||||
\newcommand{\recipeSource}[1] {\def\recipe@source{\footnote{#1}}}
|
\newcommand{\recipeSource}[1] {\def\recipe@source{\footnote{#1}}}
|
||||||
\newcommand{\recipeSourceBook}[2] {\recipeSource{{\em #1}. Page: #2.}}
|
\newcommand{\recipeSourceBook}[2] {\recipeSource{{\em #1}. Page: #2.}}
|
||||||
\newcommand{\recipeSourceWeb}[2] {\recipeSource{{\em #1}. Source: #2.}}
|
\newcommand{\recipeSourceWeb}[2] {\recipeSource{{\em #1}. Source: #2.}}
|
||||||
|
@ -45,9 +50,8 @@
|
||||||
\centering{
|
\centering{
|
||||||
\Huge{\textbf{\recipe@name}}\LARGE{\recipe@source} \\
|
\Huge{\textbf{\recipe@name}}\LARGE{\recipe@source} \\
|
||||||
\vspace{0.25em}
|
\vspace{0.25em}
|
||||||
\LARGE{\em{Serves: \textbf{\recipe@serves}, %
|
\LARGE{\em{\recipe@serves\recipe@servingsize}}
|
||||||
serving size: \textbf{\recipe@servingsize}}}
|
}
|
||||||
} \\
|
|
||||||
\vspace{1em}
|
\vspace{1em}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue