diff --git a/main.tex b/main.tex index 4fe0ff5..d9949ca 100644 --- a/main.tex +++ b/main.tex @@ -17,17 +17,14 @@ pdfborder={0 0 1}, backref=section, colorlinks=false - ]{hyperref} % PDF meta-information specification - - -% https://tex.stackexchange.com/questions/366229/an-aesthetically-pleasing-recipe-book-template + ]{hyperref} % have to define a cup cause the cooking-units writer is german and doesn't understand the flawed american way to measure ingredients. \declarecookingunit{cup} \cudefinename {English} { {cup} {cup}[cups] - {oz} {ounce}[ounces] + {oz} {ounce}[ounces] % lol, the plural isn't right } \cusetup{use-phrases=true} \cusetoptionfor{g}{round-precision=0} % rounds grams to whole numbers, I don't care *that* much @@ -74,14 +71,26 @@ \fi } -\newif\if@mainmatter \@mainmattertrue +\title{Daily Recipes} +\author{David Daily} +\date{\small{last updated \today}} %% Borrowed from book.cls +\newif\if@mainmatter \@mainmattertrue + \newcommand\frontmatter{% \cleardoublepage \@mainmatterfalse \pagenumbering{roman} - \tableofcontents} + \tableofcontents + \section*{Legend} + Vegetarian: \vegetarian \\ + Gluten Free: \glutenfree \\ + Freeze: \freeze \\ + Dessert: \dessert \\ + Make Ahead: \makeahead + } + \newcommand\mainmatter{% \cleardoublepage \@mainmattertrue @@ -133,8 +142,9 @@ {\large\color{dessertcolor}\textbf{D}}% } \newcommand{\makeahead}{% - {\large\color{makeaheadcolor}\textbf{M}}% + {\large\color{makeaheadcolor}\textbf{MA}}% } + %% Optional arguments for alternate names for these: \newcommand{\preptime}[2][Prep time]{% \lfoot{#1: #2}% @@ -194,6 +204,7 @@ \rhead{}% \lfoot{}% \rfoot{}% + \renewcommand{\headrulewidth}{0pt} \subsection{#2}% \IfNoValueF{#1}{\begin{center}\testoneline{#1}\end{center}} \IfNoValueF{#3}{\noindent\emph{#3}\par\medskip} @@ -236,6 +247,9 @@ \begin{document} \fontfamily{lmss}\selectfont +\pagenumbering{gobble} +\maketitle + \frontmatter \mainmatter diff --git a/orderedrecipes.tex b/orderedrecipes.tex index 60b886b..61bce72 100644 --- a/orderedrecipes.tex +++ b/orderedrecipes.tex @@ -1,11 +1,16 @@ -\section{Appetizers}\newpage +% optionally: replace \section with \part to add a level between (\chapter doesn't exist in the Article class) +\section{Appetizers} \input{recipes/TexasCaviar.tex} \input{recipes/ChickenSliders.tex} -\newpage\section{Desserts} % ¯\_(ツ)_/¯ won't do it automagically, whatever +\newpage +\section{Desserts} % ¯\_(ツ)_/¯ won't do it automagically, whatever \input{recipes/FudgyBrownies42.tex} +%\input{recipes/DatePinwheels.tex} -\section{Drinks}\newpage % This one's cause I don't have each drink recipe making its own page +\newpage +\section{Drinks} +\newpage % This one's cause I don't have each drink recipe making its own page \input{recipes/drinks/BerrySmoothies.tex}\drinkspace \input{recipes/drinks/MoscowMule.tex}\drinkspace \input{recipes/drinks/TomCollins.tex} % last one doesn't need it, can't think of a better or easier way to do it so ¯\_(ツ)_/¯ \ No newline at end of file diff --git a/recipes/DatePinwheels.tex b/recipes/DatePinwheels.tex new file mode 100644 index 0000000..1661b0a --- /dev/null +++ b/recipes/DatePinwheels.tex @@ -0,0 +1,7 @@ +\recipe[From great-grandma Vera Daily]{Date Pinwheels}[] +\serves{6-8} +\preptime{1 hour} +\cooktime{1 hour} +\dishtype{\dessert} +\dishother{\freeze} + diff --git a/recipes/FudgyBrownies42.tex b/recipes/FudgyBrownies42.tex index 8a295a4..fd1a95a 100644 --- a/recipes/FudgyBrownies42.tex +++ b/recipes/FudgyBrownies42.tex @@ -13,7 +13,7 @@ \end{step} \begin{step} - \cutext{3.5}{oz} / \cunum[oz=g]{3.5}{oz} Semisweet chocolate, chopped (chocolate chips work too) + \cunum{3.5}{oz} / \cunum[oz=g]{3.5}{oz} Semisweet chocolate, chopped (chocolate chips work too) 1 stick/\cutext{4}{EL} unsalted butter, cut into pieces \cutext{1}{EL} unsweetened cocoa powder \method diff --git a/recipes/TEMPLATE b/recipes/TEMPLATE index 61bb9c8..aecf7f5 100644 --- a/recipes/TEMPLATE +++ b/recipes/TEMPLATE @@ -5,7 +5,7 @@ \dishtype{\dessert} % options: dessert, vegetarian, glutenfree, freeze, makeahead \dishother{\glutenfree} % if you need more than one of the dish types? puts it in the other corner -\begin{step} % This used to be auto-formatted, but I removed that and am using the cooking-units package instead +\begin{step} Batter the dry: \cutext{1}{cup} AP (or GF) flour \cutext{0.5}{cup} almond flour diff --git a/recipes/drinks/MoscowMule.tex b/recipes/drinks/MoscowMule.tex index 5924185..4a88332 100644 --- a/recipes/drinks/MoscowMule.tex +++ b/recipes/drinks/MoscowMule.tex @@ -1,4 +1,4 @@ -\drink[Alissa's favourite drink]{Moscow Mule} +\drink[Alissa's favourite]{Moscow Mule} \begin{drstep} Cracked ice diff --git a/render.sh b/render.sh index 4a3ef9b..15ef248 100755 --- a/render.sh +++ b/render.sh @@ -8,5 +8,7 @@ cd "$(dirname "$0")" pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname=Recipes main.tex pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname=Recipes main.tex +pdfbook2 Recipes.pdf rm *.aux *.out *.log *.toc -mv Recipes.pdf /home/david/fileshare/LaTeX/ +mv Recipes.pdf /home/david/fileshare/LaTeX/Recipes +mv Recipes-book.pdf /home/david/fileshare/LaTeX/Recipes/Recipes-booklet.pdf \ No newline at end of file