Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git
recipe-book.cls
\def\citationtext{}
\newcommand{\recipecredit}[2][]{%
+ \gdef\@recipecredittext{%
+ \ifblank{#1}{#2}{\href{#1}{#2}}}
}
\newcommand{\recipelicense}[2][]{%
+ \gdef\@recipelicensetext{, %
+ \ifblank{#1}{#2}{\href{#1}{#2}}}
}
\newcommand{\photocredit}[2][]{%
\AtEndEnvironment{recipe}{%
- \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.}{}{}}
+ \ifdefempty{\@recipecredittext}{}{\apptocmd{\citationtext}{By \@recipecredittext\ifdefempty{\@recipelicensetext}{}{\@recipelicensetext}.}{}{}}
+ \ifdefempty{\@photocredittext}{}{\apptocmd{\citationtext}{ Photo courtesy \@photocredittext\ifdefempty{\@photolicensetext}{}{\@photolicensetext}.}{}{}}
\iftoggle{footercitations}{%
\ifdefempty{\citationtext}{}{\blfootnote{\citationtext}}

Filled in \recipeauthor and \recipelicense.

Author liantze <email>
Date 2013-03-05 23:16:10 GMT+0800
Commit 3a9c6830d1770fa8ee2322f759ad4a264a3c9b97
Parent 69a7120
Delta 6 lines added, 1 line removed, 5-line increase