Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git
recipe-book.cls
\RequirePackage{mathpazo}
\RequirePackage{avant}
+\RequirePackage{needspace}
\RequirePackage{ccicons}
%\fi
\RequirePackage{afterpage}
\RequirePackage{wallpaper}
-\RequirePackage{chemarrow}
\RequirePackage{filecontents}
\RequirePackage{microtype}
\newcommand{\equipmentstyle}{leftmargin=*}
\newcommand{\ingredientsstyle}{label=\textbullet,leftmargin=*}
+\newcommand{\preparationstyle}{label=\textbullet,leftmargin=*}
\newcommand{\instructionsstyle}{label={\arabic*. },leftmargin=*}
\newenvironment{equipment}[1][Equipment]{%
+ \needspace{3\baselineskip}
\subsection{#1}
\expandafter\setlist\expandafter{\equipmentstyle}%
}{%
\end{description}.
+ }
+}
+
+\newenvironment{preparation}[1][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][Ingredients]{%
+ \needspace{3\baselineskip}
\subsection{#1}%
\expandafter\setlist\expandafter{\ingredientsstyle}%
\newenvironment{instructions}[1][Cooking Instructions]{%
+ \needspace{3\baselineskip}
\subsection{#1}
\expandafter\setlist\expandafter{\instructionsstyle}%
theme/Modern.tex
}
+\renewcommand{\preparationstyle}{%
+ nosep,%
+ label=\itemmarker,%
+ leftmargin=*
+}
+
\renewcommand{\equipmentstyle}{%
mode=unboxed,%
theme/Notebook.tex
}
+\renewcommand{\preparationstyle}{%
+ nosep,%
+ label=\itemmarker,%
+ leftmargin=*
+}
+
\renewcommand\descriptionlabel[1]{%
\hspace\labelsep

Added a preparation section as an itemised list. Available customisations: \normalpreparation, \compactpreparation, \preparationstyle .

Author liantze <email>
Date 2013-02-22 16:44:42 GMT+0800
Commit 92c5e3f839d8d66437ab8e9307f6314e4536c72f
Parent d9d7251
Delta 49 lines added, 1 line removed, 48-line increase