Convert Nutty Bran Flakes recipe to TeX

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2016-06-25 14:07:18 -04:00
parent 1ef0278c24
commit fc8762a020
2 changed files with 56 additions and 4 deletions

44
nutty_bran_flakes.tex Normal file
View File

@ -0,0 +1,44 @@
%
% Copyright 2016 (c) Anna Schumaker.
%
\documentclass{recipe}
\recipeName{Nutty Bran Flakes}
\recipeServes{6}
\recipeServingSize{\half cup}
\recipeSourceWeb{Homemade Bran Flakes}{Macheesmo.com}
\begin{document}
\begin{ingredients}
\addIngredient{1 cup}{bran}
\addIngredient{1 cup}{oat flour}
\addIngredient{\quarter cup}{whole wheat flour}
\addIngredient{\quarter cup}{sugar}
\addIngredient{\half teaspoon}{baking powder}
\addIngredient{\half teaspoon}{salt}
\addIngredient{\twothirds cup}{nut butter (such as almond or peanut)}
\addIngredient{\twothirds cup}{milk}
\addIngredient{\half cup}{water}
\end{ingredients}
\begin{steps}
\addStep{Preheat oven to \textbf{\ftemp{350}}}
\addStep{Combine \ingredient{bran}, \ingredient{flours}, \ingredient{sugar},
\ingredient{baking powder}, and \ingredient{salt} in a medium mixing
bowl.}
\addStep{Add \ingredient{nut butter}, \ingredient{milk}, and
\ingredient{water}. Mix well.}
\addStep{Let batter sit \textbf{5 minutes}.}
\addStep{Scoop about \textbf{\twothirds cup} of the batter onto a large baking
sheet covered with parchment paper. Top with plastic wrap and flatten
using a rolling pin until batter is very thin, almost transparent.}
\addStep{Bake for \textbf{10 minutes} at \textbf{\ftemp{350}}. Remove bran
from the oven and let cool for \textbf{2 minutes}.}
\addStep{Cut bran into small squares and remove from parchment paper.
Set aside.}
\addStep{Repeat steps \textbf{5 -- 7} until all batter has been used. Reduce
oven temperature to \textbf{\ftemp{250}}.}
\addStep{Put bran squares into a sheet pan and bake at \textbf{\ftemp{250}} for
\textbf{20 - 30 minutes}, stirring every \textbf{10 minutes}.}
\end{steps}
\end{document}

View File

@ -4,6 +4,7 @@
\ProvidesClass{recipe}
\LoadClass[letterpaper]{letter}
\RequirePackage{gensymb}
\RequirePackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
\RequirePackage{multicol}
\RequirePackage{newcent}
@ -12,14 +13,21 @@
\pagestyle{empty}
% Macros for setting recipe variables
\def\recipe@source{ }
\newcommand{\recipeName}[1] {\def\recipe@name{#1}}
\newcommand{\recipeServes}[1] {\def\recipe@serves{#1}}
\newcommand{\recipeServingSize}[1] {\def\recipe@servingsize{#1}}
\newcommand{\recipeSource}[1] {\def\recipe@source{\footnote{#1}}}
\newcommand{\recipeSourceWeb}[2] {\recipeSource{{\em #1}. Source: #2}}
% Preformatted fractions
\newcommand{\half} {\(\mathbf{\frac{1}{2}}\)\ }
\newcommand{\quarter} {\(\mathbf{\frac{1}{4}}\)\ }
\newcommand{\eighth} {\(\mathbf{\frac{1}{8}}\)\ }
\newcommand{\half} {\(\mathbf{\frac{1}{2}}\)\ }
\newcommand{\twothirds} {\(\mathbf{\frac{2}{3}}\)\ }
\newcommand{\quarter} {\(\mathbf{\frac{1}{4}}\)\ }
\newcommand{\eighth} {\(\mathbf{\frac{1}{8}}\)\ }
% Format a Fahrenheit temperature
\newcommand{\ftemp}[1] {#1\degree F}
\newcommand{\section}[1]
{
@ -31,7 +39,7 @@
\AtBeginDocument
{
\centering{
\Huge{\textbf{\recipe@name}} \\
\Huge{\textbf{\recipe@name}}\LARGE{\recipe@source} \\
\LARGE{\em{Serves: \textbf{\recipe@serves}, %
serving size: \textbf{\recipe@servingsize}}}
} \\