Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git

In two columns layout, if the ingredients/preparations section spills over to the 2nd column, do not insert \columnbreak before starting the cooking instructions.

Author liantze <email>
Date 2013-07-07 10:10:48 GMT+0800
Commit be380c555fc639ee31aac40b5a36d77be5e790ef
Parent 84e7f5b
layout/twocolumn-twoside.tex
}
-\renewcommand{\startinstructions}{\columnbreak}
+\renewcommand{\startinstructions}{\columnbreakunlesslast}
%\renewcommand{\photo}[1]{\insetphoto{#1}}
recipe-book.cls
\usetikzlibrary{shadows.blur}
\RequirePackage{multicol}
+\RequirePackage{mccolaction}
+\newif\ifinlast
+\def\columnbreakunlesslast{%
+ \docolaction{\typeout{in first column}\inlastfalse}%
+ {\typeout{in middle column}\inlasttrue}%
+ {\typeout{in last column}\inlasttrue}%
+ \unless \ifinlast \columnbreak \fi
+}
\RequirePackage{endnotes}
\RequirePackage{afterpage}
Delta 9 lines added, 1 line removed, 8-line increase