Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git
color/Elegance.tex
+% http://www.colourlovers.com/palette/8007/Elegance
+% http://www.colourlovers.com/palette/399315/An_Elegant_Aire
+\definecolor[named]{ElegantLavendar}{HTML}{997788}
+\definecolor[named]{ElegantLilac}{HTML}{BB99AA}
+\definecolor[named]{SupremeSilver}{HTML}{ACB6BA}
+\definecolor[named]{Elegance}{HTML}{E0E3E2}
+\definecolor[named]{ChoiceSilver}{HTML}{E3E3E3}
+\definecolor[named]{controlblue}{HTML}{180410}
+\definecolor[named]{controldarkgreen}{HTML}{5C7D14}
+\definecolor[named]{controlbrightgreen}{HTML}{BFD63A}
+\definecolor[named]{controlpalegreen}{HTML}{D5E0CE}
+\definecolor[named]{controlred}{HTML}{75011C}
+
+\renewcommand{\primarycolor}{ElegantLavendar}
+\renewcommand{\secondarycolor}{ElegantLilac}
+\renewcommand{\tertiarycolor}{ChoiceSilver}
+\renewcommand{\darkhighlight}{controlred}
+\renewcommand{\brighthighlight}{SupremeSilver}
+\renewcommand{\primarycolorcomplement}{ChoiceSilver}
+\renewcommand{\secondarycolorcomplement}{ChoiceSilver}
+\renewcommand{\tertiarycolorcomplement}{black}
font/Script+Serif.tex
-
+\renewcommand{\recipefamily}{\scriptfamily}
+\renewcommand{\headingfamily}{\scriptfamily}
+\renewcommand{\familydefault}{\rmdefault}
list/orn-plant.tex
-
+\usepackage{adforn,fourier-orns}
+\renewcommand{\headingmarker}{\adfhangingleafright}
+\renewcommand{\itemmarker}{\color{\secondarycolor}{\adfhangingleafright}}
+\renewcommand{\inlinelistmarker}{\ {\color{\brighthighlight}\adfast3}\ }
+\renewcommand{\enumeratemarker}[1]{\textcolor{\brighthighlight}{\Large\scriptfamily#1.}\space}
recipe-book.cls
\ifdefempty{\@recipecredittext}{}{%
\vspace{-\aftersecskip}
- {\inlinecitationalignment\sffamily\relsize{-1}\itshape By \@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}.\par}
- \vspace{\aftersecskip}}
-}{}
-}
-
-\iftoggle{endcitations}{\makepagenote}{}
-\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
-\renewcommand{\notesname}{Recipe and Photo Sources}
-\newcommand{\xpagenote}[1]{%
- \unskip\begingroup\protected@edef\x{\endgroup\noexpand\pagenote{#1}}%
- \scantokens\expandafter{\x\relax}}
-\renewcommand*{\notenumintext}[1]{}
-\renewcommand*{\notenuminnotes}[1]{}
-\renewcommand{\prenoteinnotes}{\item }
-\renewcommand{\postnoteinnotes}{}
-
-% For Inserts.
-% \DeclareInserts{25}{ad1.jpg, ad2.jpg, ad3.jpg, ad4.jpg}
-% \InsertAd will cycle through ad1.jpg -> ad4.jpg everytime
-% it is called.
-% It'll be called after every 25 recipes.
-\newarray\Inserts
-\newcounter{advertTotal}
-\newcounter{advertIdx}
-\newcounter{recipeIdx}
-\newcommand{\advertTotal}{\theadvertTotal}
-\newcommand{\DeclareInserts}[2]{%
- \def\recipeAdCount{#1}
- \renewcommand*{\do}[1]{%
- \stepcounter{advertTotal}%
- \Inserts(\arabic{advertTotal})={##1}
- }
- \docsvlist{#2}
-}
-\newcommand{\InsertAd}{%
- \ifnumequal{\theadvertTotal}{0}{}{%
- \thispagestyle{empty}
- \stepcounter{advertIdx}%
- \pgfmathparse{mod(\theadvertIdx - 1,\advertTotal) + 1}
- \pgfmathtruncatemacro{\adIdx}{\pgfmathresult}%
- \checkInserts(\adIdx)
- \ThisTileWallPaper{\paperwidth}{\paperheight}{\cachedata}
- \mbox{}\clearpage
- }
-}
-
-
-%%% Hook for cover page etc
-% TODO: change this to use key options
-\newcommand{\makecover}[1][]{%
-\begin{titlingpage}
-\ifdefempty{\@frontcoverphoto}{%
- \maketitle
-}{%
- \ThisTileWallPaper{\paperwidth}{\paperheight}{\@frontcoverphoto}
- \mbox{}\clearpage
-}
-\thispagestyle{empty}
-\ifstrequal{#1}{copyrightpage}{\clearpage\makecrpage}{}
-\end{titlingpage}%
-}
-
-\newcommand{\makecrpage}{%
-%\begin{titlingpage}
-\mbox{}
-\vfill
-\relsize{-1}
-% TODO Do not produce author line if no author given!
-\ifdefempty{\theauthor}{}{%
-\translate{preCRAuthor}\theauthor\translate{postCRAuthor}%
-}
-\ifdefempty{\@frontcoverphoto}{}{%
- \ifdefempty{\@photocredittext}{}{%
- \\
- \translate{preCRCoverPhoto}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postCRCoverPhoto}
- }\\
-}
-\translate{designsBy}
-\\
-\\
-\translate{generatedWith}\\
-\translate{preCRBookLicense}\href{http://creativecommons.org/licenses/by-sa/3.0/}{\translate{CC-BY-SA}}\translate{postCRBookLicense}\\
-%\end{titlingpage}%
-}
-
-\patchcommand{\mainmatter}{}{%
-%%% turn off sectional numberings
-\setcounter{secnumdepth}{-1}
-\setcounter{tocdepth}{1}
-%% set end notes to be an itemised list
-\addtonotes{\protect\begin{itemize}[label=\itemmarker,nosep,leftmargin=*]}
-}
-
-%%% Overview as a bit of a chapter introduction
-\newenvironment{overview}[1]{%
-\chapter*{#1}
-\providelength{\oldparskip}
-\setlength{\oldparskip}{\parskip}
-\setlength{\parskip}{\onelineskip}
-}{%
-\setlength{\parskip}{\oldparskip}
-\clearpage
-}
-
-%%%% TODO cooking time, preparation time, portion... "atomic" fields
-\newcommand{\ovenstyle}{}
-\newcommand{\oven}[1]{\makebox{\ovenstyle \translate{prePreheatTemperature}#1\translate{postPreheatTemperature}}\par}
-
-\newcommand{\maintextcolor}{black}
-\newcommand{\primarycolor}{blue}
-\newcommand{\secondarycolor}{blue!80}
-\newcommand{\tertiarycolor}{blue!60}
-\newcommand{\primarycolorcomplement}{white}
-\newcommand{\secondarycolorcomplement}{white}
-\newcommand{\tertiarycolorcomplement}{white}
-\newcommand{\darkhighlight}{red!80!black}
-\newcommand{\brighthighlight}{red}
-\newcommand{\highlightcolor}{\darkhighlight}
-\newcommand{\externallinkcolor}{SteelBlue}
-
-\newcommand{\scriptdefault}{pzc}
-\newcommand{\scriptfamily}{\fontfamily{\scriptdefault}\selectfont}
-
-\newcommand{\recipecolor}{\highlightcolor}
-\newcommand{\recipefamily}{\sffamily}
-\newcommand{\recipesize}{\LARGE}
-\newcommand{\recipestyle}{\bfseries}
-\newcommand{\recipefont}{\recipefamily\recipesize\color{\recipecolor}\recipestyle}
-
-\newcommand{\headingcolor}{\primarycolor}
-\newcommand{\headingfamily}{\sffamily}
-\newcommand{\headingsize}{\large}
-\newcommand{\headingstyle}{\itshape}
-\newcommand{\headingfont}{\headingfamily\headingsize\color{\headingcolor}\headingstyle}
-
-\renewcommand{\chaptitlefont}{\recipefamily\color{\recipecolor}\bfseries\HUGE\centering}
-\setsecheadstyle{\recipefont}
-\setsubsecheadstyle{\headingfont}
-
-\newcommand{\headingmarker}{\textbullet}
-\newcommand{\itemmarker}{\textbullet}
-\newcommand{\enumeratemarker}[1]{#1.}
-\newcommand{\inlinelistmarker}{\makebox[1.5em][c]{\textbullet}}
-
-\newcommand{\equipmentstyle}{leftmargin=*}
-\newcommand{\ingredientsstyle}{label=\textbullet,leftmargin=*}
-\newcommand{\preparationstyle}{label=\textbullet,leftmargin=*}
-\newcommand{\substitutionstyle}{label=\textbullet,leftmargin=*}
-\newcommand{\instructionsstyle}{label={\arabic*. },leftmargin=*}
-
-
-%%%% Basic structures, redefine as needed in theme files using titlesec and enumitem.
-\newcommand{\recipecategory}[1]{%
-\clearforchapter
-\formatcategorypage{#1}
-\phantomsection\addcontentsline{toc}{chapter}{#1}
-\clearpage
-}
-
-\newcommand{\formatcategorypage}[1]{%
-\thispagestyle{empty}
-\vspace*{\stretch{1}}
-\begin{center}
-\fontsize{48pt}{50pt}\headingfamily\bfseries\selectfont\color{\recipecolor}#1
-\end{center}
-\vspace*{\stretch{2}}
-}
-
-\newenvironment{recipe}[2][]{%
- \clearpage%
- \parserecipecitation{#1}
- \color{\maintextcolor}%
- \section{#2}
- \checkinlinecitation
-}{}
-
-\renewcommand{\memsecinfo}[5]{%
- \ifstrequal{#1}{section}{\renewcommand{\recipetitle}{#3}}{}
-}
-
-\AtBeginEnvironment{recipe}{%
- \def\@recipecredittext{}
- \def\@recipelicensetext{}
- \def\@photocredittext{}
- \def\@photolicensetext{}
- \def\citationtext{}
-}
-
-\AtEndEnvironment{recipe}{%
- \ifdefempty{\@recipecredittext}{}{\apptocmd{\citationtext}{\translate{preRecipeCourtesy}\@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}\translate{postRecipeCourtesy}}{}{}}
- \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{ \translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}}{}{}}
- \iftoggle{footercitations}{%
- \ifdefempty{\citationtext}{}{\blfootnote{\citationtext}}
- }{}
- \iftoggle{endcitations}{%
- \ifdefempty{\citationtext}{}{\leavevmode\xpagenote{\textcolor{\darkhighlight}{\sffamily\bfseries\recipetitle,}\space\noexpand\hyperlink{page.\thepage}{\thepage}.\enspace\citationtext}}
- }{}
-}
-
-\AfterEndEnvironment{recipe}{%
- % Check if an ad should be inserted
- \ifdef{\recipeAdCount}{
- \ifnumgreater{\theadvertTotal}{0}{
- \stepcounter{recipeIdx}
- \pgfmathparse{mod(\therecipeIdx,\recipeAdCount)}
- \pgfmathtruncatemacro{\recIdx}{\pgfmathresult}
- \ifnumequal{\recIdx}{0}{\afterpage{\InsertAd}}{}
- }{}
- }{}
-}
-
-\newcommand{\insetphoto}[2][width=.4\textwidth]{%
- \parsephotocitation{#1}
- \includegraphics[width=\@photowidth]{#2}\par
-}
-
-\newcommand{\fullpagephoto}[2][]{%
- \iftoggle{inlinecitations}{}{\parsephotocitation{#1}}
- \afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}%
- \ThisTileWallPaper{\paperwidth}{\paperheight}{#2}
- \iftoggle{clearpn}{\thispagestyle{empty}}{}
- \iftoggle{inlinecitations}{%
- \ifdefempty{\@photocredittext}{}{%
- \begin{tikzpicture}[overlay,remember picture]
- \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\sffamily\itshape,
- anchor=north east,xshift=-.5in,yshift=-.5in]
- at (current page.north east)
- {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
- \end{tikzpicture}
- }
- }{}
- \mbox{}\clearpage}
-}
-
-\newcommand{\checkfiller}{%
- \iftoggle{print}{%
- \clearpage
- \checkoddpage\strictpagecheck
-% \ifoddpage\ThisTileWallPaper{\paperwidth}{\paperheight}{photo/filler1}\mbox{}\clearpage\fi
- \ifoddpage\InsertAd\fi
- }{}
-}
-
-
-\newcommand{\SpreadWallPaperLeft}[1]{%
- \sbox0{\includegraphics{#1}}%
- \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
- \parbox[b][\paperheight]{\paperwidth}{%
- \vfill
- \centering
- \includegraphics[width=\paperwidth,height=\paperheight,clip,trim=0 0 {.5\wd0} 0]{#1}%
- \vfill
- }}}
-% \iftoggle{clearpn}{\thispagestyle{empty}}{}
-}
-
-\newcommand{\SpreadWallPaperRight}[1]{%
- \sbox0{\includegraphics{#1}}%
- \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
- \parbox[b][\paperheight]{\paperwidth}{%
- \vfill
- \centering
- \includegraphics[width=\paperwidth,height=\paperheight,clip,trim={.5\wd0} 0 0 0]{#1}%
- \vfill
- }}}
- \iftoggle{clearpn}{\thispagestyle{empty}}{}
- \iftoggle{inlinecitations}{%
- \ifdefempty{\@photocredittext}{no}{%
- \begin{tikzpicture}[overlay,remember picture]
- \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\sffamily\itshape,
- anchor=north east,xshift=-.5in,yshift=-.5in]
- at (current page.north east)
- {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
- \end{tikzpicture}
- }
- }{}
-
-}
-
-\newcommand{\landscapedphoto}[2][]{%
- \parsephotocitation{#1}
- \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
- \parbox[b][\paperheight]{\paperwidth}{%
- \vfill
- \centering
- \includegraphics[width=\paperheight,height=\paperwidth,angle=90]{#2}%
- \vfill
- }}}
- \iftoggle{inlinecitations}{%
- \ifdefempty{\@photocredittext}{}{%
- \begin{tikzpicture}%[overlay,remember picture]
- \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\sffamily\itshape,
- %anchor=north west,%xshift=.5in,yshift=-.5in
- ]
- %at (current page.north)
- {Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.};
- \end{tikzpicture}
- }
- }{}
-}
-
-\newcommand{\preparespread}{%
-\iftoggle{print}{}{%
- \setlength{\paperwidth}{2\paperwidth}
- \eject \pdfpagewidth=\paperwidth
-}
-}
-\newcommand{\cancelspread}{%
-\iftoggle{print}{}{%
- \setlength{\paperwidth}{0.5\paperwidth}
- \eject \pdfpagewidth=\paperwidth
- }
-}
-
-\newcommand{\twopagespreadphoto}[2][]{%
- \iftoggle{inlinecitations}{}{\parsephotocitation{#1}}%
- \iftoggle{print}{%
- \SpreadWallPaperLeft{#2}
- \afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}
- \SpreadWallPaperRight{#2}
- \mbox{}\clearpage}
- }{%
- \addtolength{\wpXoffset}{.5\paperwidth}
- \ThisTileWallPaper{\paperwidth}{\paperheight}{#2}%
- \iftoggle{inlinecitations}{%
- \ifdefempty{\@photocredittext}{no}{%
- \begin{tikzpicture}[overlay,remember picture]
- \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\sffamily\itshape,
- anchor=north east,xshift=-.5in,yshift=-.5in]
- at (current page.north east)
- {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
- \end{tikzpicture}
- }
- }{}
- }
-%%%%%%%%%%% landscaped version %%
-%{\afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}
-% \begin{landscape}
-% \thispagestyle{empty}
-% \landscapedphoto[#1]{#2}\mbox{}\clearpage
-% \end{landscape}
-% }}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-}
-
-\newcommand{\photo}[2][]{%
-\parsephotocitation{#1}
-\ifdefstring{\p@embed}{inset}{\insetphoto[#1]{#2}}{}
-\ifdefstring{\p@embed}{fullpage}{\fullpagephoto[#1]{#2}}{}
-\ifdefstring{\p@embed}{twopagespread}{\twopagespreadphoto[#1]{#2}}{}
-}
-
-\AtBeginDocument{%
- \iftoggle{inlinecitations}{%
- % See http://tex.stackexchange.com/a/68741/226
- \expandafter\apptocmd\csname\string\insetphoto\endcsname{%
- \ifdefempty{\@photocredittext}{}{\vskip-\afterinsetphotoskip
- {\centering\relsize{-1}\sffamily\itshape\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}\par}
- \vskip\afterinsetphotoskip
- }%
- }{}{}
- }{}
-}
-
-\newenvironment{equipment}[1][\translate{Equipment}]{%
- \needspace{3\baselineskip}
- \subsection{#1}
- \expandafter\setlist\expandafter{\equipmentstyle}%
- \begin{equipmentlist}
-}{%
- \end{equipmentlist}
-}
-
-\newenvironment{equipmentlist}{%
- \begin{description}
-}{%
- \end{description}
-}
-
-\newcommand{\compactequipment}{%
- \renewenvironment{equipmentlist}{%
- \begin{description*}[mode=unboxed,leftmargin=*,itemjoin=\inlinelistmarker]
- }{%
- \end{description*}.
- }
-}
-
-\newcommand{\normalequipment}{%
- \renewenvironment{equipmentlist}{%
- \begin{description}
- }{%
- \end{description}
- }
-}
-
-\newenvironment{preparation}[1][\translate{Preparation}]{%
- \needspace{3\baselineskip}
- \subsection{#1}
- \expandafter\setlist\expandafter{\preparationstyle}%
- \begin{preparationlist}
-}{%
- \end{preparationlist}
-}
-
-\newenvironment{preparationlist}{%
- \begin{itemize}
-}{%
- \end{itemize}
-}
-
-\newcommand{\normalpreparation}{%
- \renewenvironment{preparationlist}{%
- \begin{itemize}
- }{%
- \end{itemize}
- }
-}
-
-\newcommand{\compactpreparation}{%
- \renewenvironment{preparationlist}{%
- \begin{itemize*}[label={},afterlabel={},itemjoin=\inlinelistmarker]
- }{%
- \end{itemize*}
- }
-}
-
-
-\newenvironment{ingredients}[1][\translate{Ingredients}]{%
- \needspace{3\baselineskip}
- \subsection{#1}%
- \expandafter\setlist\expandafter{\ingredientsstyle}%
- \begin{ingredientlist}
-}{%
- \end{ingredientlist}
-}
-
-\newcommand{\ingred}[3]{%
-\item {#1}\space\notblank{#2}{#2\space}{}{#3}
-}
-
-\newenvironment{ingredientlist}{%
- \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
- \begin{itemize}
-}{%
- \end{itemize}
-}
-
-\newcommand{\tabularingredients}{%
- \renewcommand{\ingred}[3]{{##1}\space\notblank{##2}{##2}{} & {##3}\\}
- \renewenvironment{ingredientlist}{%
- \begin{tabular}{r l}
- }{%
- \end{tabular}
- }
-}
-
-\newcommand{\compactingredients}{%
- \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
- \renewenvironment{ingredientlist}{%
- \begin{itemize*}[label={},afterlabel={},itemjoin={;\space},noitemsep]
- }{%
- \end{itemize*}.
- }
-}
-
-\newcommand{\normalingredients}{%
- \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
- \renewenvironment{ingredientlist}{%
- \begin{itemize}
- }{%
- \end{itemize}
- }
-}
-
-\newenvironment{substitution}[1][\translate{Substitutes}]{%
- \needspace{3\baselineskip}
- \subsection{#1}%
- \expandafter\setlist\expandafter{\substitutionstyle}%
- \begin{substitutionlist}
-}{%
- \end{substitutionlist}
-}
-
-\newenvironment{substitutionlist}{%
- \begin{itemize}
-}{%
- \end{itemize}
-}
-
-\newcommand{\normalinsubstitutions}{%
- \renewenvironment{substitutionlist}{%
- \begin{itemize}
- }{%
- \end{itemize}
- }
-}
-
-\newcommand{\compactinsubstitutions}{%
- \renewenvironment{substitutionlist}{%
- \begin{itemize*}[label={},afterlabel={},itemjoin={;\space},noitemsep]
- }{%
- \end{itemize*}.
- }
-}
-
-
-\newenvironment{instructions}[1][\translate{CookingInstructions}]{%
- \needspace{3\baselineskip}
- \subsection{#1}
- \expandafter\setlist\expandafter{\instructionsstyle}%
- \begin{instructionlist}
-}{
- \end{instructionlist}
-}
-
-\newenvironment{instructionlist}{%
- \begin{enumerate}
-}{%
- \end{enumerate}
-}
-
-\newcommand{\normalinstructions}{%
- \renewenvironment{instructionlist}{%
- \begin{enumerate}
- }{%
- \end{enumerate}
- }
-}
-
-\newcommand{\compactinstructions}{%
- \renewenvironment{instructionlist}{%
- \begin{enumerate*}[label={},afterlabel={},itemjoin=\inlinelistmarker]
- }{%
- \end{enumerate*}
- }
-}
-
-
-\newcommand{\startinstructions}{}
-
-\setlength{\footmarkwidth}{0pt}
-\setlength{\footmarksep}{0pt}
-\setlength{\footparindent}{0pt}
-\renewcommand{\foottextfont}{\sffamily\itshape\color{\darkhighlight}}
-\renewcommand*{\footnoterule}{}
-
-\apptocmd{\backmatter}{%
- \addtonotes{\protect\end{itemize}}
- \iftoggle{endcitations}{\printpagenotes}{}
-}{}{}
-
-%%% Some useful commands
-
-\newcommand{\framedNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[draw=none,fill=\secondarycolor,text=\secondarycolorcomplement,rectangle,aspect=1,minimum width=1.3em,inner xsep=1pt,font=\scriptsize]{#1};}
-
-\newcommand{\circledNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[draw=none,fill=\secondarycolor,text=\secondarycolorcomplement,circle,minimum width=1.25em,inner sep=1pt,font=\scriptsize]{#1};}
-
-\newcommand{\triangledNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[isosceles triangle,isosceles triangle apex angle=75,shape border rotate=90,draw=none,minimum width=1.5em,inner xsep=1pt,fill=\secondarycolor,font=\scriptsize]{#1};}
-
-\newcommand{\framedPage}{\tikz[overlay]\node[fill=\tertiarycolor,text=\tertiarycolorcomplement,text depth=.2in,minimum height=.5in,minimum width=2em,font=\sffamily]{\thepage};}
+ {\inlinecitationalignment\headingfamily\relsize{-1}\itshape By \@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}.\par}
+ \vspace{\aftersecskip}}
+}{}
+}
+
+\iftoggle{endcitations}{\makepagenote}{}
+\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}
+\renewcommand{\notesname}{Recipe and Photo Sources}
+\newcommand{\xpagenote}[1]{%
+ \unskip\begingroup\protected@edef\x{\endgroup\noexpand\pagenote{#1}}%
+ \scantokens\expandafter{\x\relax}}
+\renewcommand*{\notenumintext}[1]{}
+\renewcommand*{\notenuminnotes}[1]{}
+\renewcommand{\prenoteinnotes}{\item }
+\renewcommand{\postnoteinnotes}{}
+
+% For Inserts.
+% \DeclareInserts{25}{ad1.jpg, ad2.jpg, ad3.jpg, ad4.jpg}
+% \InsertAd will cycle through ad1.jpg -> ad4.jpg everytime
+% it is called.
+% It'll be called after every 25 recipes.
+\newarray\Inserts
+\newcounter{advertTotal}
+\newcounter{advertIdx}
+\newcounter{recipeIdx}
+\newcommand{\advertTotal}{\theadvertTotal}
+\newcommand{\DeclareInserts}[2]{%
+ \def\recipeAdCount{#1}
+ \renewcommand*{\do}[1]{%
+ \stepcounter{advertTotal}%
+ \Inserts(\arabic{advertTotal})={##1}
+ }
+ \docsvlist{#2}
+}
+\newcommand{\InsertAd}{%
+ \ifnumequal{\theadvertTotal}{0}{}{%
+ \thispagestyle{empty}
+ \stepcounter{advertIdx}%
+ \pgfmathparse{mod(\theadvertIdx - 1,\advertTotal) + 1}
+ \pgfmathtruncatemacro{\adIdx}{\pgfmathresult}%
+ \checkInserts(\adIdx)
+ \ThisTileWallPaper{\paperwidth}{\paperheight}{\cachedata}
+ \mbox{}\clearpage
+ }
+}
+
+
+%%% Hook for cover page etc
+% TODO: change this to use key options
+\newcommand{\makecover}[1][]{%
+\begin{titlingpage}
+\ifdefempty{\@frontcoverphoto}{%
+ \maketitle
+}{%
+ \ThisTileWallPaper{\paperwidth}{\paperheight}{\@frontcoverphoto}
+ \mbox{}\clearpage
+}
+\thispagestyle{empty}
+\ifstrequal{#1}{copyrightpage}{\clearpage\makecrpage}{}
+\end{titlingpage}%
+}
+
+\newcommand{\makecrpage}{%
+%\begin{titlingpage}
+\mbox{}
+\vfill
+\relsize{-1}
+% TODO Do not produce author line if no author given!
+\ifdefempty{\theauthor}{}{%
+\translate{preCRAuthor}\theauthor\translate{postCRAuthor}%
+}
+\ifdefempty{\@frontcoverphoto}{}{%
+ \ifdefempty{\@photocredittext}{}{%
+ \\
+ \translate{preCRCoverPhoto}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postCRCoverPhoto}
+ }\\
+}
+\translate{designsBy}
+\\
+\\
+\translate{generatedWith}\\
+\translate{preCRBookLicense}\href{http://creativecommons.org/licenses/by-sa/3.0/}{\translate{CC-BY-SA}}\translate{postCRBookLicense}\\
+%\end{titlingpage}%
+}
+
+\patchcommand{\mainmatter}{}{%
+%%% turn off sectional numberings
+\setcounter{secnumdepth}{-1}
+\setcounter{tocdepth}{1}
+%% set end notes to be an itemised list
+\addtonotes{\protect\begin{itemize}[label=\itemmarker,nosep,leftmargin=*]}
+}
+
+%%% Overview as a bit of a chapter introduction
+\newenvironment{overview}[1]{%
+\chapter*{#1}
+\providelength{\oldparskip}
+\setlength{\oldparskip}{\parskip}
+\setlength{\parskip}{\onelineskip}
+}{%
+\setlength{\parskip}{\oldparskip}
+\clearpage
+}
+
+%%%% TODO cooking time, preparation time, portion... "atomic" fields
+\newcommand{\ovenstyle}{}
+\newcommand{\oven}[1]{\makebox{\ovenstyle \translate{prePreheatTemperature}#1\translate{postPreheatTemperature}}\par}
+
+\newcommand{\maintextcolor}{black}
+\newcommand{\primarycolor}{blue}
+\newcommand{\secondarycolor}{blue!80}
+\newcommand{\tertiarycolor}{blue!60}
+\newcommand{\primarycolorcomplement}{white}
+\newcommand{\secondarycolorcomplement}{white}
+\newcommand{\tertiarycolorcomplement}{white}
+\newcommand{\darkhighlight}{red!80!black}
+\newcommand{\brighthighlight}{red}
+\newcommand{\highlightcolor}{\darkhighlight}
+\newcommand{\externallinkcolor}{SteelBlue}
+
+\newcommand{\scriptdefault}{pzc}
+\newcommand{\scriptfamily}{\fontfamily{\scriptdefault}\selectfont}
+
+\newcommand{\recipecolor}{\highlightcolor}
+\newcommand{\recipefamily}{\headingfamily}
+\newcommand{\recipesize}{\LARGE}
+\newcommand{\recipestyle}{\bfseries}
+\newcommand{\recipefont}{\recipefamily\recipesize\color{\recipecolor}\recipestyle}
+
+\newcommand{\headingcolor}{\primarycolor}
+\newcommand{\headingfamily}{\headingfamily}
+\newcommand{\headingsize}{\large}
+\newcommand{\headingstyle}{\itshape}
+\newcommand{\headingfont}{\headingfamily\headingsize\color{\headingcolor}\headingstyle}
+
+\renewcommand{\chaptitlefont}{\recipefamily\color{\recipecolor}\bfseries\HUGE\centering}
+\setsecheadstyle{\recipefont}
+\setsubsecheadstyle{\headingfont}
+
+\newcommand{\headingmarker}{\textbullet}
+\newcommand{\itemmarker}{\textbullet}
+\newcommand{\enumeratemarker}[1]{#1.}
+\newcommand{\inlinelistmarker}{\makebox[1.5em][c]{\textbullet}}
+
+\newcommand{\equipmentstyle}{leftmargin=*}
+\newcommand{\ingredientsstyle}{label=\textbullet,leftmargin=*}
+\newcommand{\preparationstyle}{label=\textbullet,leftmargin=*}
+\newcommand{\substitutionstyle}{label=\textbullet,leftmargin=*}
+\newcommand{\instructionsstyle}{label={\arabic*. },leftmargin=*}
+
+
+%%%% Basic structures, redefine as needed in theme files using titlesec and enumitem.
+\newcommand{\recipecategory}[1]{%
+\clearforchapter
+\formatcategorypage{#1}
+\phantomsection\addcontentsline{toc}{chapter}{#1}
+\clearpage
+}
+
+\newcommand{\formatcategorypage}[1]{%
+\thispagestyle{empty}
+\vspace*{\stretch{1}}
+\begin{center}
+\fontsize{48pt}{50pt}\headingfamily\bfseries\selectfont\color{\recipecolor}#1
+\end{center}
+\vspace*{\stretch{2}}
+}
+
+\newenvironment{recipe}[2][]{%
+ \clearpage%
+ \parserecipecitation{#1}
+ \color{\maintextcolor}%
+ \section{#2}
+ \checkinlinecitation
+}{}
+
+\renewcommand{\memsecinfo}[5]{%
+ \ifstrequal{#1}{section}{\renewcommand{\recipetitle}{#3}}{}
+}
+
+\AtBeginEnvironment{recipe}{%
+ \def\@recipecredittext{}
+ \def\@recipelicensetext{}
+ \def\@photocredittext{}
+ \def\@photolicensetext{}
+ \def\citationtext{}
+}
+
+\AtEndEnvironment{recipe}{%
+ \ifdefempty{\@recipecredittext}{}{\apptocmd{\citationtext}{\translate{preRecipeCourtesy}\@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}\translate{postRecipeCourtesy}}{}{}}
+ \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{ \translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}}{}{}}
+ \iftoggle{footercitations}{%
+ \ifdefempty{\citationtext}{}{\blfootnote{\citationtext}}
+ }{}
+ \iftoggle{endcitations}{%
+ \ifdefempty{\citationtext}{}{\leavevmode\xpagenote{\textcolor{\darkhighlight}{\headingfamily\bfseries\recipetitle,}\space\noexpand\hyperlink{page.\thepage}{\thepage}.\enspace\citationtext}}
+ }{}
+}
+
+\AfterEndEnvironment{recipe}{%
+ % Check if an ad should be inserted
+ \ifdef{\recipeAdCount}{
+ \ifnumgreater{\theadvertTotal}{0}{
+ \stepcounter{recipeIdx}
+ \pgfmathparse{mod(\therecipeIdx,\recipeAdCount)}
+ \pgfmathtruncatemacro{\recIdx}{\pgfmathresult}
+ \ifnumequal{\recIdx}{0}{\afterpage{\InsertAd}}{}
+ }{}
+ }{}
+}
+
+\newcommand{\insetphoto}[2][width=.4\textwidth]{%
+ \parsephotocitation{#1}
+ \includegraphics[width=\@photowidth]{#2}\par
+}
+
+\newcommand{\fullpagephoto}[2][]{%
+ \iftoggle{inlinecitations}{}{\parsephotocitation{#1}}
+ \afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}%
+ \ThisTileWallPaper{\paperwidth}{\paperheight}{#2}
+ \iftoggle{clearpn}{\thispagestyle{empty}}{}
+ \iftoggle{inlinecitations}{%
+ \ifdefempty{\@photocredittext}{}{%
+ \begin{tikzpicture}[overlay,remember picture]
+ \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\headingfamily\itshape,
+ anchor=north east,xshift=-.5in,yshift=-.5in]
+ at (current page.north east)
+ {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
+ \end{tikzpicture}
+ }
+ }{}
+ \mbox{}\clearpage}
+}
+
+\newcommand{\checkfiller}{%
+ \iftoggle{print}{%
+ \clearpage
+ \checkoddpage\strictpagecheck
+% \ifoddpage\ThisTileWallPaper{\paperwidth}{\paperheight}{photo/filler1}\mbox{}\clearpage\fi
+ \ifoddpage\InsertAd\fi
+ }{}
+}
+
+
+\newcommand{\SpreadWallPaperLeft}[1]{%
+ \sbox0{\includegraphics{#1}}%
+ \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
+ \parbox[b][\paperheight]{\paperwidth}{%
+ \vfill
+ \centering
+ \includegraphics[width=\paperwidth,height=\paperheight,clip,trim=0 0 {.5\wd0} 0]{#1}%
+ \vfill
+ }}}
+% \iftoggle{clearpn}{\thispagestyle{empty}}{}
+}
+
+\newcommand{\SpreadWallPaperRight}[1]{%
+ \sbox0{\includegraphics{#1}}%
+ \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
+ \parbox[b][\paperheight]{\paperwidth}{%
+ \vfill
+ \centering
+ \includegraphics[width=\paperwidth,height=\paperheight,clip,trim={.5\wd0} 0 0 0]{#1}%
+ \vfill
+ }}}
+ \iftoggle{clearpn}{\thispagestyle{empty}}{}
+ \iftoggle{inlinecitations}{%
+ \ifdefempty{\@photocredittext}{no}{%
+ \begin{tikzpicture}[overlay,remember picture]
+ \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\headingfamily\itshape,
+ anchor=north east,xshift=-.5in,yshift=-.5in]
+ at (current page.north east)
+ {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
+ \end{tikzpicture}
+ }
+ }{}
+
+}
+
+\newcommand{\landscapedphoto}[2][]{%
+ \parsephotocitation{#1}
+ \AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){%
+ \parbox[b][\paperheight]{\paperwidth}{%
+ \vfill
+ \centering
+ \includegraphics[width=\paperheight,height=\paperwidth,angle=90]{#2}%
+ \vfill
+ }}}
+ \iftoggle{inlinecitations}{%
+ \ifdefempty{\@photocredittext}{}{%
+ \begin{tikzpicture}%[overlay,remember picture]
+ \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\headingfamily\itshape,
+ %anchor=north west,%xshift=.5in,yshift=-.5in
+ ]
+ %at (current page.north)
+ {Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.};
+ \end{tikzpicture}
+ }
+ }{}
+}
+
+\newcommand{\preparespread}{%
+\iftoggle{print}{}{%
+ \setlength{\paperwidth}{2\paperwidth}
+ \eject \pdfpagewidth=\paperwidth
+}
+}
+\newcommand{\cancelspread}{%
+\iftoggle{print}{}{%
+ \setlength{\paperwidth}{0.5\paperwidth}
+ \eject \pdfpagewidth=\paperwidth
+ }
+}
+
+\newcommand{\twopagespreadphoto}[2][]{%
+ \iftoggle{inlinecitations}{}{\parsephotocitation{#1}}%
+ \iftoggle{print}{%
+ \SpreadWallPaperLeft{#2}
+ \afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}
+ \SpreadWallPaperRight{#2}
+ \mbox{}\clearpage}
+ }{%
+ \addtolength{\wpXoffset}{.5\paperwidth}
+ \ThisTileWallPaper{\paperwidth}{\paperheight}{#2}%
+ \iftoggle{inlinecitations}{%
+ \ifdefempty{\@photocredittext}{no}{%
+ \begin{tikzpicture}[overlay,remember picture]
+ \node[fill=white,fill opacity=.8,text opacity=1,font=\relsize{-1}\headingfamily\itshape,
+ anchor=north east,xshift=-.5in,yshift=-.5in]
+ at (current page.north east)
+ {\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}};
+ \end{tikzpicture}
+ }
+ }{}
+ }
+%%%%%%%%%%% landscaped version %%
+%{\afterpage{\iftoggle{inlinecitations}{\parsephotocitation{#1}}{}
+% \begin{landscape}
+% \thispagestyle{empty}
+% \landscapedphoto[#1]{#2}\mbox{}\clearpage
+% \end{landscape}
+% }}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+}
+
+\newcommand{\photo}[2][]{%
+\parsephotocitation{#1}
+\ifdefstring{\p@embed}{inset}{\insetphoto[#1]{#2}}{}
+\ifdefstring{\p@embed}{fullpage}{\fullpagephoto[#1]{#2}}{}
+\ifdefstring{\p@embed}{twopagespread}{\twopagespreadphoto[#1]{#2}}{}
+}
+
+\AtBeginDocument{%
+ \iftoggle{inlinecitations}{%
+ % See http://tex.stackexchange.com/a/68741/226
+ \expandafter\apptocmd\csname\string\insetphoto\endcsname{%
+ \ifdefempty{\@photocredittext}{}{\vskip-\afterinsetphotoskip
+ {\centering\relsize{-1}\headingfamily\itshape\translate{prePhotoCourtesy}\@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}\translate{postPhotoCourtesy}\par}
+ \vskip\afterinsetphotoskip
+ }%
+ }{}{}
+ }{}
+}
+
+\newenvironment{equipment}[1][\translate{Equipment}]{%
+ \needspace{3\baselineskip}
+ \subsection{#1}
+ \expandafter\setlist\expandafter{\equipmentstyle}%
+ \begin{equipmentlist}
+}{%
+ \end{equipmentlist}
+}
+
+\newenvironment{equipmentlist}{%
+ \begin{description}
+}{%
+ \end{description}
+}
+
+\newcommand{\compactequipment}{%
+ \renewenvironment{equipmentlist}{%
+ \begin{description*}[mode=unboxed,leftmargin=*,itemjoin=\inlinelistmarker]
+ }{%
+ \end{description*}.
+ }
+}
+
+\newcommand{\normalequipment}{%
+ \renewenvironment{equipmentlist}{%
+ \begin{description}
+ }{%
+ \end{description}
+ }
+}
+
+\newenvironment{preparation}[1][\translate{Preparation}]{%
+ \needspace{3\baselineskip}
+ \subsection{#1}
+ \expandafter\setlist\expandafter{\preparationstyle}%
+ \begin{preparationlist}
+}{%
+ \end{preparationlist}
+}
+
+\newenvironment{preparationlist}{%
+ \begin{itemize}
+}{%
+ \end{itemize}
+}
+
+\newcommand{\normalpreparation}{%
+ \renewenvironment{preparationlist}{%
+ \begin{itemize}
+ }{%
+ \end{itemize}
+ }
+}
+
+\newcommand{\compactpreparation}{%
+ \renewenvironment{preparationlist}{%
+ \begin{itemize*}[label={},afterlabel={},itemjoin=\inlinelistmarker]
+ }{%
+ \end{itemize*}
+ }
+}
+
+
+\newenvironment{ingredients}[1][\translate{Ingredients}]{%
+ \needspace{3\baselineskip}
+ \subsection{#1}%
+ \expandafter\setlist\expandafter{\ingredientsstyle}%
+ \begin{ingredientlist}
+}{%
+ \end{ingredientlist}
+}
+
+\newcommand{\ingred}[3]{%
+\item {#1}\space\notblank{#2}{#2\space}{}{#3}
+}
+
+\newenvironment{ingredientlist}{%
+ \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
+ \begin{itemize}
+}{%
+ \end{itemize}
+}
+
+\newcommand{\tabularingredients}{%
+ \renewcommand{\ingred}[3]{{##1}\space\notblank{##2}{##2}{} & {##3}\\}
+ \renewenvironment{ingredientlist}{%
+ \begin{tabular}{r l}
+ }{%
+ \end{tabular}
+ }
+}
+
+\newcommand{\compactingredients}{%
+ \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
+ \renewenvironment{ingredientlist}{%
+ \begin{itemize*}[label={},afterlabel={},itemjoin={;\space},noitemsep]
+ }{%
+ \end{itemize*}.
+ }
+}
+
+\newcommand{\normalingredients}{%
+ \renewcommand{\ingred}[3]{\item {##1}\space\notblank{##2}{##2\space}{}{##3}}
+ \renewenvironment{ingredientlist}{%
+ \begin{itemize}
+ }{%
+ \end{itemize}
+ }
+}
+
+\newenvironment{substitution}[1][\translate{Substitutes}]{%
+ \needspace{3\baselineskip}
+ \subsection{#1}%
+ \expandafter\setlist\expandafter{\substitutionstyle}%
+ \begin{substitutionlist}
+}{%
+ \end{substitutionlist}
+}
+
+\newenvironment{substitutionlist}{%
+ \begin{itemize}
+}{%
+ \end{itemize}
+}
+
+\newcommand{\normalinsubstitutions}{%
+ \renewenvironment{substitutionlist}{%
+ \begin{itemize}
+ }{%
+ \end{itemize}
+ }
+}
+
+\newcommand{\compactinsubstitutions}{%
+ \renewenvironment{substitutionlist}{%
+ \begin{itemize*}[label={},afterlabel={},itemjoin={;\space},noitemsep]
+ }{%
+ \end{itemize*}.
+ }
+}
+
+
+\newenvironment{instructions}[1][\translate{CookingInstructions}]{%
+ \needspace{3\baselineskip}
+ \subsection{#1}
+ \expandafter\setlist\expandafter{\instructionsstyle}%
+ \begin{instructionlist}
+}{
+ \end{instructionlist}
+}
+
+\newenvironment{instructionlist}{%
+ \begin{enumerate}
+}{%
+ \end{enumerate}
+}
+
+\newcommand{\normalinstructions}{%
+ \renewenvironment{instructionlist}{%
+ \begin{enumerate}
+ }{%
+ \end{enumerate}
+ }
+}
+
+\newcommand{\compactinstructions}{%
+ \renewenvironment{instructionlist}{%
+ \begin{enumerate*}[label={},afterlabel={},itemjoin=\inlinelistmarker]
+ }{%
+ \end{enumerate*}
+ }
+}
+
+
+\newcommand{\startinstructions}{}
+
+\setlength{\footmarkwidth}{0pt}
+\setlength{\footmarksep}{0pt}
+\setlength{\footparindent}{0pt}
+\renewcommand{\foottextfont}{\headingfamily\itshape\color{\darkhighlight}}
+\renewcommand*{\footnoterule}{}
+
+\apptocmd{\backmatter}{%
+ \addtonotes{\protect\end{itemize}}
+ \iftoggle{endcitations}{\printpagenotes}{}
+}{}{}
+
+%%% Some useful commands
+
+\newcommand{\framedNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[draw=none,fill=\secondarycolor,text=\secondarycolorcomplement,rectangle,aspect=1,minimum width=1.3em,inner xsep=1pt,font=\scriptsize]{#1};}
+
+\newcommand{\circledNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[draw=none,fill=\secondarycolor,text=\secondarycolorcomplement,circle,minimum width=1.25em,inner sep=1pt,font=\scriptsize]{#1};}
+
+\newcommand{\triangledNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[isosceles triangle,isosceles triangle apex angle=75,shape border rotate=90,draw=none,minimum width=1.5em,inner xsep=1pt,fill=\secondarycolor,font=\scriptsize]{#1};}
+
+\newcommand{\framedPage}{\tikz[overlay]\node[fill=\tertiarycolor,text=\tertiarycolorcomplement,text depth=.2in,minimum height=.5in,minimum width=2em,font=\headingfamily]{\thepage};}
theme/Elegance.tex
+% Lian Tze LIM (liantze@gmail.com)
+% 21 April 2013
+% Swashes(?) theme
+
+\input{font/Script+Serif}
+\input{color/Elegance}
+\input{layout/twocolumn-twoside}
+\input{list/orn-plant}
+\input{headfoot/FramedPageNo}
+\input{catidx/topcateg}
+\input{flatidx/flatletter}
+\input{pdf/hyperlinks}
+\input{toc/rightaligned}
+
+%\usepackage{tgbonum}
+\usepackage{ragged2e}
+
+\providecommand{\semiornateHead}[1]{\raisebox{.5ex}{\makebox[\linewidth]{\hrulefill\ \raisebox{-.5ex}{\adfflowerleft~{\scriptfamily\LARGE\ #1}~\adfflowerright}\ \hrulefill}}}
+
+\providecommand{\sedateornateHead}[1]{%
+\centering{#1}\par
+{\Large\adftripleflourishleft\par}
+}
+
+\newcommand{\decoline}{%
+\par{\centering\large
+\textcolor{\headingcolor}{\adfflatleafoutlineleft\ \decotwo\ \adfflatleafoutlineright}\par}
+}
+
+
+\renewcommand{\recipesize}{\fontsize{38pt}{40pt}\selectfont}
+\renewcommand{\recipestyle}[1]{\sedateornateHead{#1}}
+\renewcommand{\headingstyle}{\semiornateHead}
+
+
+\setlength{\beforesubsecskip}{2em}
+
+\setcolsepandrule{4em}{1pt}
+\renewcommand{\columnseprulecolor}{\color{\tertiarycolor}}
+\compactequipment
+\compactingredients
+\compactinstructions
+\compactpreparation
+\renewenvironment{ingredientlist}{%
+ \begin{itemize*}[label={},afterlabel={},itemjoin={\ \inlinelistmarker\ },noitemsep]
+}{%
+ \end{itemize*}.
+}
+
+ \renewenvironment{instructionlist}{%
+ \begin{enumerate*}[label={\enumeratemarker{\arabic*}},afterlabel={\space}]
+ }{%
+ \end{enumerate*}
+ }
+
+\AfterEndEnvironment{ingredients}{\needspace{3em}\centering\decoline}
+\AfterEndEnvironment{equipment}{\needspace{3em}\centering\decoline}
+\AfterEndEnvironment{substitution}{\needspace{3em}\centering\decoline}
+\AfterEndEnvironment{preparation}{\needspace{3em}\centering\decoline}
+\AfterEndEnvironment{instructions}{\justifying\decoline}
+
+
+\providecommand{\ornatepic}[1]{%
+\noindent\raggedright%
+\begin{tikzpicture}
+\node[inner sep=1.5em,draw=gray!60,fill=white, blur shadow={shadow blur steps=5,shadow xshift=1ex,shadow yshift=-1ex,shadow opacity=20,shadow blur radius=1ex}] (photo) {\includegraphics[width=.8\linewidth]{#1}};
+\node[inner sep=0pt,font=\huge,anchor=north west,text=\darkhighlight,yshift=1.5em,xshift=-1.5em] (SE) at (photo.south east) {\adforn9};
+\node[inner sep=0pt,font=\large,anchor=east,text=\darkhighlight] at (SE.west) {\adfflourishleftdouble};
+\node[inner sep=0pt,font=\large,anchor=west,text=\darkhighlight,rotate=90] at (SE.north) {\adfflourishrightdouble};
+\end{tikzpicture}
+}
+
+\makeatletter
+\renewcommand{\insetphoto}[2][]{%
+\parsephotocitation{#1}
+\ornatepic{#2}\par\bigskip}
+\makeatother
+
+\renewcommand*{\beforechapskip}{-4em}
+\renewcommand*{\chapnamefont}{\normalfont\Huge\scriptfamily\selectfont}
+\renewcommand*{\chapnumfont}{\normalfont\huge\scriptfamily}
+\renewcommand*{\printchaptername}{%
+ \chapnamefont\centering\@chapapp}
+\renewcommand*{\printchapternum}{\chapnumfont\thechapter}
+\renewcommand*{\chaptitlefont}{\normalfont\fontsize{38pt}{40pt}\scriptfamily\selectfont}
+\renewcommand*{\printchaptertitle}[1]{%
+ \chaptitlefont\color{\recipecolor}\sedateornateHead{#1}}
+\renewcommand*{\printchapternonum}{%
+ \vphantom{\chapnumfont \textit{9}}\afterchapternum}
toc/leftaligned.tex
-\renewcommand\cftchapterfont{\sffamily\bfseries\itshape\color{\primarycolor}\LARGE}
+\renewcommand\cftchapterfont{\headingfamily\bfseries\itshape\color{\primarycolor}\LARGE}
\renewcommand\cftchapterleader{\quad\itemmarker}
\renewcommand\cftchapterpagefont{\mdseries}
toc/rightaligned.tex
-\renewcommand\cftchapterfont{\sffamily\bfseries\itshape\color{\primarycolor}\LARGE\hfill}
+\renewcommand\cftchapterfont{\headingfamily\bfseries\itshape\color{\primarycolor}\LARGE\hfill}
\renewcommand\cftchapterleader{\quad\itemmarker}
\renewcommand\cftchapterpagefont{\mdseries}

Initial check-in of Elegance theme.

Author liantze <email>
Date 2013-04-29 23:44:03 GMT+0800
Commit af152cc4272b6071fb4a376a8d4978dc6d78d75b
Parent d95ef91
Delta 680 lines added, 564 lines removed, 116-line increase