add booklet version, some formatting
This commit is contained in:
parent
e540250aec
commit
88ce8bbdf9
30
main.tex
30
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
|
||||
|
@ -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 ¯\_(ツ)_/¯
|
7
recipes/DatePinwheels.tex
Normal file
7
recipes/DatePinwheels.tex
Normal file
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
\drink[Alissa's favourite drink]{Moscow Mule}
|
||||
\drink[Alissa's favourite]{Moscow Mule}
|
||||
|
||||
\begin{drstep}
|
||||
Cracked ice
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user