Browse Source

Make some fixes to how recipes are typeset

Samuel W. Flint 4 years ago
parent
commit
6897aee8ce
1 changed files with 4 additions and 2 deletions
  1. 4 2
      recipe.sty

+ 4 - 2
recipe.sty

@@ -16,12 +16,15 @@
 \newcommand\recipe@ingredient[2]{#1 & #2 \\}
 \newcommand\recipe@serving[1]{\ifblank{#1}{}{\textit{#1 servings}}}
 \newcommand\recipe@contributor[1]{\ifblank{#1}{}{Courtesy of #1}}
+\newcommand\recipe@majorstep[1]{\par\smallskip\textbf{#1}\par}
 
 \newenvironment{recipe}[3]{%
   \bigskip%
   \begin{adjustwidth}{4em}{4em}%
+    \let\majorstep=\recipe@majorstep
     \centerline{\textbf{#1}}%
-    \recipe@contributor{#2}\hfill\recipe@servings{#3}\\
+    \recipe@contributor{#2}\hfill\recipe@serving{#3}\\
+    \smallskip%
     \newenvironment{note}{\textit{Note:}}{}
     \newenvironment{ingredients}{%
       \smallskip%
@@ -35,7 +38,6 @@
       \end{center}%
       \smallskip%
     }%
-    \smallskip
   }{%
   \end{adjustwidth}%
   \bigskip%