2 个食谱 1 页 xcookybooky

2 个食谱 1 页 xcookybooky

我正在使用出色的 xcookybooky 包 (https://github.com/SvenHarder/xcookybooky) 来编写食谱;但是,我的一些食谱相当短,我希望它们都放在一页上。例如,这两个食谱应该在同一页上

% Complete recipe 1
\label{sourcream_dip}
\begin{recipe}
[% 
    preparationtime = {\unit[10]{min}},
]
{Sour Cream Dip}
    
    \introduction{%
        A guise under which to sneak a commoner into a fancy ball.  Adjust flavors to taste before moving to a clean bowl for presentation.
    }
    
    \ingredients{%
        \unit[1]{c}&Sour Cream\\
        \unit[2]{Tbsp}&Olive Oil (divided)\\
        \unit[\half]{c}&Grated Parmesan\\
        \unit[1]{tsp}&Smoke Flavoring\\
        Spices:&Paprika, Salt, \& Pepper
    }
    
    \preparation{%
        \step Mix sour cream, \unit[1]{Tbsp} olive oil, Parmesan, and smoke flavoring in a bowl.  Season with salt and pepper to taste.  Move to clean bowl and sprinkle with paprika and drizzle remaining olive oil.
    }
    
\end{recipe}

% Complete recipe 2
\label{rec:roasted_brusselssprouts}
\begin{recipe}
[% 
    preparationtime = {\unit[10]{min}},
    bakingtime={\unit[15-20]{min}},
    bakingtemperature={\protect\bakingtemperature{
        topbottomheat=\unit[425]{\textfahrenheit}}},
    source = {Mark Bittman}
]
{Roasted Brussels Sprouts}
    
    
    \introduction{%
        Thanks Mark for showing me what Brussels Sprouts can be.
    }
    
    \ingredients{%
        \unit[\half]{lbs}&Brussels Sprouts\\
        \unit[1]{Tbsp}&Olive Oil\\
        2&Garlic Cloves\\
        Spices:&Salt
    }
    
    \preparation{%
        \step Prep work: Preheat oven to 425\textfahrenheit with \unit[8]{in} cast iron on the middle rack.  Rinse sprouts.  Cut off the bottom stem and then halve.  Mince garlic and toss with sprouts.
        \step Remove pan from oven, and add olive oil and salt to pan.  Swirl to coat pan.  Arrange all the Brussels sprouts, cut face down in the pan and return to oven for 15-20 minutes until starting to brown on bottom.  Stir and drizzle additional olive oil to serve.
    }
    \suggestion[Variations]{
    \begin{enumerate}
        \item Add \unit[1]{tsp} of balsamic or apple cider vinegar at the end
        \item Add \unit[\half]{Tbsp} of lemon juice at the end
        \item Dice a sweet apple (\textit{e.g.} honeycrisp) and add half way through roasting to potatoes.  Top with Parmesan
        \item Top with grated Parmesan or Asiago.
        \item Toss with \unit[\quarter]{c} tart dried fruit (\textit{e.g.} craisins) and feta at end.
    \end{enumerate}}
\end{recipe}


软件包中的哪些设置可以实现这一点?谢谢!

答案1

只需将食谱做得足够小(或将页面做得足够大),使两个食谱可以放在同一页上即可。除非必要,否则包装不会将食谱单独放在单独的页面上。如下所示,它们Roasted Brussels Sprouts没有为食谱留出足够的空间Sour Cream Dip

在此处输入图片描述

\documentclass{article}
\usepackage{xcookybooky}
\usepackage{textcomp}
\let\half\textonehalf
\let\quarter\textonequarter
\newcommand\textfahrenheit{\textdegree F}
\begin{document}

\begin{recipe}[preparationtime = {\unit[10]{min}}]{Sour Cream Dip}
  \introduction{%
    A guise under which to sneak a commoner into a fancy ball.  Adjust
    flavors to taste before moving to a clean bowl for presentation.
  }
  \ingredients{%
    \unit[1]{c}&Sour Cream\\
    \unit[2]{Tbsp}&Olive Oil (divided)\\
    \unit[\half]{c}&Grated Parmesan\\
    \unit[1]{tsp}&Smoke Flavoring\\
    Spices:&Paprika, Salt, \& Pepper
  }
  \preparation{%
    \begin{enumerate}
    \item Mix sour cream, \unit[1]{Tbsp} olive oil, Parmesan, and
      smoke flavoring in a bowl.  Season with salt and pepper to
      taste.  Move to clean bowl and sprinkle with paprika and drizzle
      remaining olive oil.
    \end{enumerate}
  }
\end{recipe}
\begin{recipe}[preparationtime = {\unit[10]{min}}]{Sour Cream Dip}
  \introduction{%
    A guise under which to sneak a commoner into a fancy ball.  Adjust
    flavors to taste before moving to a clean bowl for presentation.
  }
  \ingredients{%
    \unit[1]{c}&Sour Cream\\
    \unit[2]{Tbsp}&Olive Oil (divided)\\
    \unit[0.5]{c}&Grated Parmesan\\
    \unit[1]{tsp}&Smoke Flavoring\\
    Spices:&Paprika, Salt, \& Pepper
  }
  \preparation{%
    \begin{enumerate}
    \item Mix sour cream, \unit[1]{Tbsp} olive oil, Parmesan, and
      smoke flavoring in a bowl.  Season with salt and pepper to
      taste.  Move to clean bowl and sprinkle with paprika and drizzle
      remaining olive oil.
    \end{enumerate}
  }
\end{recipe}

\begin{recipe}
[% 
    preparationtime = {\unit[10]{min}},
    bakingtime={\unit[15-20]{min}},
    bakingtemperature={\protect\bakingtemperature{topbottomheat=\unit[425]{\textfahrenheit}}},
    source = {Mark Bittman}
]
{Roasted Brussels Sprouts}
    
    
    \introduction{%
        Thanks Mark for showing me what Brussels Sprouts can be.
    }
    
    \ingredients{%
        \unit[0.5]{lbs}&Brussels Sprouts\\
        \unit[1]{Tbsp}&Olive Oil\\
        2&Garlic Cloves\\
        Spices:&Salt
    }
    
    \preparation{%
      \begin{enumerate}
        \item Prep work: Preheat oven to 425\textfahrenheit with \unit[8]{in} cast iron on the middle rack.  Rinse sprouts.  Cut off the bottom stem and then halve.  Mince garlic and toss with sprouts.
        \item Remove pan from oven, and add olive oil and salt to pan.  Swirl to coat pan.  Arrange all the Brussels sprouts, cut face down in the pan and return to oven for 15-20 minutes until starting to brown on bottom.  Stir and drizzle additional olive oil to serve.
        \end{enumerate}
      }
    \suggestion[Variations]{
    \begin{enumerate}
        \item Add \unit[1]{tsp} of balsamic or apple cider vinegar at the end
        \item Add \unit[\half]{Tbsp} of lemon juice at the end
        \item Dice a sweet apple (\textit{e.g.} honeycrisp) and add half way through roasting to potatoes.  Top with Parmesan
        \item Top with grated Parmesan or Asiago.
        \item Toss with \unit[\quarter]{c} tart dried fruit (\textit{e.g.} craisins) and feta at end.
    \end{enumerate}}
\end{recipe}
\end{document}

相关内容