add booklet version, some formatting
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user