| Author | liantze <email> |
|---|---|
| Date | 2013-01-16 00:00:15 GMT+0800 |
| Commit | 724dc15997a9549964a91bef4ae7bbd50f88941d |
| Parent | 17c7899 |
| -example-recipe.pdf | ||
| +% from http://www.colourlovers.com/palette/2634294/APC393_%C4%8Ciurlionis | ||
| +\definecolor[named]{skin}{HTML}{F2B166} | ||
| +\definecolor[named]{nectar}{HTML}{EDE2C2} | ||
| +\definecolor[named]{ifiwerestronger}{HTML}{D2B490} | ||
| +\definecolor[named]{p}{HTML}{AB8369} | ||
| +\definecolor[named]{suspect}{HTML}{755348} | ||
| + | ||
| +\renewcommand{\primarycolor}{p} | ||
| +\renewcommand{\secondarycolor}{ifiwerestronger} | ||
| +\renewcommand{\tertiarycolor}{nectar} | ||
| +\renewcommand{\darkhighlight}{suspect} | ||
| +\renewcommand{\brighthighlight}{skin} | ||
| +%\renewcommand{\recipecolor}{\brighthighlight} | ||
| +% from http://www.colourlovers.com/palette/2634592/See_2 | ||
| +\definecolor[named]{foggy}{HTML}{F5F6CE} | ||
| +\definecolor[named]{RosyAlpaca}{HTML}{DBB9A1} | ||
| +\definecolor[named]{LoveMeFour}{HTML}{A45F62} | ||
| +\definecolor[named]{one}{HTML}{71574B} | ||
| +\definecolor[named]{PlataMate}{HTML}{9A957A} | ||
| + | ||
| +\renewcommand{\primarycolor}{PlataMate} | ||
| +\renewcommand{\secondarycolor}{RosyAlpaca!50} | ||
| +\renewcommand{\tertiarycolor}{foggy} | ||
| +\renewcommand{\darkhighlight}{one} | ||
| +\renewcommand{\brighthighlight}{LoveMeFour} | ||
| +\renewcommand{\highlightcolor}{\brighthighlight} | ||
| +% from http://www.colourlovers.com/palette/848743/(%E2%97%95_%E2%80%9D_%E2%97%95) | ||
| +\definecolor[named]{PartyConfetti}{HTML}{490A3D} | ||
| +\definecolor[named]{SugarHeartsYou}{HTML}{BD1550} | ||
| +\definecolor[named]{SugarCocktail}{HTML}{E97F02} | ||
| +\definecolor[named]{BurstsOfEuphoria}{HTML}{F8CA00} | ||
| +\definecolor[named]{HappyBalloon}{HTML}{8A9B0F} | ||
| + | ||
| +\renewcommand{\primarycolor}{SugarHeartsYou} | ||
| +\renewcommand{\secondarycolor}{SugarCocktail} | ||
| +\renewcommand{\tertiarycolor}{BurstsOfEuphoria} | ||
| +\renewcommand{\darkhighlight}{PartyConfetti} | ||
| +\renewcommand{\brighthighlight}{HappyBalloon} | ||
| +\renewcommand{\highlightcolor}{\brighthighlight} | ||
| \documentclass{recipe-book} | ||
| +%%% Customisations | ||
| +\input{color/See2} | ||
| +%\input{color/Sugar} | ||
| +\input{font/LinuxLibertine} | ||
| +%\input{font/PalatinoAvant} | ||
| +%\input{font/TimesHelv} | ||
| +\input{layout/ModernSquares} | ||
| \begin{document} | ||
| \tableofcontents* | ||
| -\begin{recipe}{Pizza Dough} | ||
| +\begin{recipe}{Pizza Dôugh} | ||
| + % from http://stockfresh.com/image/949544/preparing-pizza-dough-in-a-kitchen | ||
| + \illustration{stockfresh-pizzadough} | ||
| + | ||
| + \oven{350\,\textdegree F} | ||
| + | ||
| \begin{equipment} | ||
| \item[Bakeware] Bowl | ||
| \item[Electric] Mixer | ||
| \end{equipment} | ||
| + | ||
| \begin{ingredients}[Dry Ingredients] | ||
| \item 6.5 cups bread flour | ||
| \item 2 teaspoons yeast | ||
| \item 3.25 cups cold water | ||
| \item 6 tablespoons olive oil | ||
| \item 2--3 teaspoons salted sugar | ||
| \end{ingredients} | ||
| + | ||
| + \startinstructions | ||
| + | ||
| \begin{instructions}[Instructions] | ||
| \item Mix yeast, sugar and salt together with a cup of water. |
| +\usepackage[lf]{libertine} | ||
| +\usepackage{mathpazo} | ||
| +\usepackage{avant} | ||
| +\renewcommand{\recipefamily}{\sffamily} | ||
| +\renewcommand{\headingfamily}{\sffamily} | ||
| +\renewcommand{\familydefault}{\rmdefault} | ||
| +\renewcommand{\recipefamily}{\rmfamily} | ||
| +\renewcommand{\headingfamily}{\rmfamily} | ||
| +\renewcommand{\familydefault}{\sfdefault} | ||
| +\usepackage{mathptmx} | ||
| +\usepackage[scaled]{helvet} | ||
| +\usepackage{amssymb} | ||
| +\usepackage{tikz} | ||
| +\usetikzlibrary{shapes} | ||
| +\usepackage{multicol} | ||
| + | ||
| +\input{font/Sans+Serif} | ||
| + | ||
| +\setlength{\columnsep}{3em} | ||
| +\renewcommand{\columnseprule}{6pt} | ||
| +\renewcommand{\columnseprulecolor}{\color{\tertiarycolor}} | ||
| + | ||
| +\newcommand{\fullruled}[1]{#1\vskip-3pt\rule{\linewidth}{1pt}} | ||
| +\newcommand{\halfruled}[1]{\tikz\node[diamond,draw=none,inner sep=2.25pt,fill=\headingcolor]{}; #1\vskip-6pt\rule{.5\linewidth}{.4pt}\vskip-3pt} | ||
| +\makeatother | ||
| +\renewcommand{\recipesize}{\Huge} | ||
| +\renewcommand{\recipestyle}{\bfseries\itshape\raggedleft\fullruled} | ||
| +\renewcommand{\headingstyle}{\halfruled} | ||
| +\renewenvironment{recipe}[1]{% | ||
| + \clearpage% | ||
| + \color{\maintextcolor}% | ||
| + \raggedcolumns | ||
| + \begin{multicols*}{2}[\section{#1}]% | ||
| +}{% | ||
| + \end{multicols*}% | ||
| +} | ||
| +\renewenvironment{instructions}[1][Cooking Instructions]{% | ||
| + \subsection{#1} | ||
| + \expandafter\setlist\expandafter{\instructionsstyle}% | ||
| + \begin{enumerate} | ||
| +}{ | ||
| + \end{enumerate} | ||
| +} | ||
| + | ||
| +\renewcommand{\illustration}[1]{% | ||
| + \includegraphics[width=\linewidth]{#1}\par\bigskip | ||
| +} | ||
| + | ||
| +\renewcommand{\startinstructions}{\columnbreak} | ||
| + | ||
| +\renewcommand{\ovenstyle}{\itshape\par} | ||
| + | ||
| +\renewcommand{\ingredientsstyle}{% | ||
| + nosep,% | ||
| + label={\textcolor{\secondarycolor}{\scriptsize$\blacksquare$}},% | ||
| + leftmargin=* | ||
| +} | ||
| +%\renewenvironment{ingredients}[1][Ingredients]{% | ||
| +% \subsection{#1}% | ||
| +% \expandafter\setlist\expandafter{\ingredientsstyle}% | ||
| +% \hfill\begin{minipage}{.7\linewidth}\begin{itemize}\raggedright | ||
| +%}{% | ||
| +% \end{itemize}\end{minipage} | ||
| +%} | ||
| + | ||
| + | ||
| +\renewenvironment{equipment}[1][Equipment]{% | ||
| + \subsection{#1} | ||
| + \expandafter\setlist\expandafter{\equipmentstyle}% | ||
| + \begin{description*} | ||
| +}{% | ||
| + \end{description*} | ||
| +} | ||
| +\renewcommand{\equipmentstyle}{% | ||
| + mode=unboxed,% | ||
| + leftmargin=*,% | ||
| + itemjoin=\makebox[1.5em][c]{\color{\secondarycolor}\tiny$\blacksquare$} | ||
| +} | ||
| + | ||
| +\newcommand{\framedNum}[1]{\protect\tikz[baseline=-3.5pt]\protect\node[draw=none,fill=\secondarycolor,rectangle,aspect=1,minimum width=1.5em,font=\scriptsize]{#1};} | ||
| +\renewcommand{\instructionsstyle}{% | ||
| + leftmargin=*,% | ||
| + itemsep=1pt,% | ||
| + label={\framedNum{\arabic*}} | ||
| +} | ||
| + | ||
| +\newcommand{\framedPage}{\tikz[overlay]\node[fill=\tertiarycolor,text depth=.2in,minimum height=.5in,minimum width=2em,font=\sffamily]{\thepage};} | ||
| +\makeevenfoot{plain}{\framedPage}{}{} | ||
| +\makeoddfoot{plain}{}{}{\framedPage} | ||
| + | ||
| + | ||
| \ProvidesClass{recipe-book}[2013/01/14] | ||
| -\LoadClass[twoside,article]{memoir} | ||
| +\LoadClass[twoside,article,11pt]{memoir} | ||
| \setstocksize{10in}{8in} | ||
| +\settrimmedsize{\stockheight}{\stockwidth}{*} | ||
| +\setlrmarginsandblock{1.25in}{.75in}{*} | ||
| +\setulmarginsandblock{.75in}{1in}{*} | ||
| +\setlength{\footskip}{5em} | ||
| +\setlength{\parindent}{0pt} | ||
| +\checkandfixthelayout | ||
| %%%% We'll need these packages most probably | ||
| +\RequirePackage{graphicx} | ||
| \RequirePackage[xcolornames,svgnames,dvipsnames]{xcolor} | ||
| -\RequirePackage{enumitem} | ||
| +\RequirePackage[inline]{enumitem} | ||
| \RequirePackage{etoolbox} | ||
| -%%%% Will we allow xetex? Beautiful OTF fonts are all very well and fine, but licensing concerns? | ||
| +% haven't really figured out the xetex part yet. pdflatex only for now. | ||
| \RequirePackage{ifxetex,ifpdf} | ||
| +% at least textcomp is needed (for the degree symbol); load other | ||
| +% packages for symbols as needed in the theme files. | ||
| +\RequirePackage{textcomp} | ||
| %\setlist{leftmargin=*} | ||
| \setcounter{secnumdepth}{0} | ||
| \setcounter{tocdepth}{1} | ||
| %%%% TODO cooking time, preparation time, portion... "atomic" fields | ||
| +\newcommand{\ovenstyle}{} | ||
| +\newcommand{\oven}[1]{\makebox{\ovenstyle Preheat oven to #1}\par} | ||
| \newcommand{\maintextcolor}{black} | ||
| \section{#1} | ||
| }{} | ||
| + | ||
| +\newcommand{\illustration}[1]{% | ||
| +\includegraphics[width=.4\textwidth]{#1}\par | ||
| +} | ||
| \newenvironment{equipment}[1][Equipment]{% | ||
| } | ||
| +\newcommand{\startinstructions}{} | ||
| Delta | 167 lines added, 5 lines removed, 162-line increase |
|---|