Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git
layout/onecolumn-spread-rev.tex
\renewenvironment{recipe}[1]{%
\clearpage%
+ \checkoddpage\strictpagecheck\ifoddpage\ThisCenterWallPaper{1}{photo/filler1}\mbox{}\clearpage\fi
\renewcommand{\recipetitle}{#1}
\color{\maintextcolor}%
layout/onecolumn-spread.tex
+%% Filler photo "Red Onion" from http://www.sxc.hu/photo/1412795 by MeiTeng
+
\renewenvironment{recipe}[1]{%
\clearpage%
+ \checkoddpage\strictpagecheck\ifoddpage\ThisCenterWallPaper{1}{photo/filler1}\mbox{}\clearpage\fi
\section{#1}
\color{\maintextcolor}%
layout/twoonecolumn-spread-rev.tex
\renewenvironment{recipe}[1]{%
\clearpage%
+ \checkoddpage\strictpagecheck\ifoddpage\ThisCenterWallPaper{1}{photo/filler1}\mbox{}\clearpage\fi
\renewcommand{\recipetitle}{#1}
}{%
layout/twoonecolumn-spread.tex
\renewenvironment{recipe}[1]{%
\clearpage%
+ \checkoddpage\strictpagecheck\ifoddpage\ThisCenterWallPaper{1}{photo/filler1}\mbox{}\clearpage\fi
\section{#1}
\color{\maintextcolor}%
photo/filler1.jpg
Binary files differ

The "2 page spread" type recipes now check if the next recipe does indeed have a facing page on which to put the photo. If no, a filler photo is inserted, then start typesetting the next recipe + its photo on facing page. (The mechanism for triggering this code will most probably change with the recipe-inset and recipe-page XML attributes.)

Author liantze <email>
Date 2013-02-05 22:23:11 GMT+0800
Commit ede06043bbfa32c1e1b46b593b1765856e38cdae
Parent 216faab
Delta 6 lines added, 0 lines removed, 6-line increase