%% Oven Icon %% \begin{filecontents*}{oven.svg} Svg Vector Icons : http://www.onlinewebfonts.com/icon \end{filecontents*} %++++++++++++++++++++++++++++++++++++++++ \documentclass[a4paper,12pt]{memoir} \usepackage{newfloat,parskip,tabularx,amsmath,graphicx} \usepackage[dvipsnames]{xcolor} \usepackage[margin=2.5cm,a4paper]{geometry} \usepackage[sfdefault]{noto} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[fixed]{fontawesome5} \usepackage{svg} \makeatletter \newcommand\BIG{\@setfontsize\Huge{32}{36}} \makeatother \pagestyle{empty} % Create commands \makeatletter \newcommand\persons[1]{\renewcommand\@persons{#1}} \newcommand\@persons{} \newcommand\preptime[1]{\renewcommand\@preptime{#1}} \newcommand\@preptime{} \newcommand\cooktime[1]{\renewcommand\@cooktime{#1}} \newcommand\@cooktime{} \makeatother \makeatletter \renewcommand{\maketitle}{ \vspace*{-0.7cm} \begin{center} {\BIG\bfseries \@title \par} \vspace{0.4cm} \if\relax\@cooktime\relax \begin{tabular}{ r|l } \textbf{\large{\@persons}}~pers~ & \raisebox{-0.5pt}{\faClock[regular]}~\textbf{\@preptime} \end{tabular} \else \begin{tabular}{ r|c|l } \textbf{\large{\@persons}}~pers~ & \raisebox{-0.5pt}{\faClock[regular]}~\textbf{\@preptime}~ & ~\raisebox{-2pt}{\includesvg[height=1em]{oven.svg}}~ \textbf{\@cooktime} \end{tabular} \fi \end{center} \vspace*{1cm} } \makeatother \newcommand{\step}[2]{ \renewcommand{\arraystretch}{1.2} \begin{tabular}{@{}p{0.46\textwidth}cp{0.46\textwidth}} #1 & & #2 \end{tabular} \renewcommand{\arraystretch}{1} \vspace{5mm} } \setlength{\parindent}{0pt} % Remove alinea %++++++++++++++++++++++++++++++++++++++++ %++++++++++++++++++++++++++++++++++++++++ \title{Exemple de recette} \persons{4} \preptime{30 min} \cooktime{50 min} \begin{document} \maketitle %% Recipe %% \subsection{Pâte} \step{ 3 jaunes d'œufs\\ 40g de sucre\\ 1 cc de sel }{Voila un exemple d'étape avec plusieurs petits ingrédients qui doivent etre utilisé en meme temps.} \step{ 150g de chocolat}{Voila un exemple avec un seul ingrédient.} \step{}{Voici une dernière étape à faire sans aucun ingrédient, genre y garder au frais.} \subsection{Façonnage} Voila un exemple de section qui ne prend aucun ingrédient mais donne des instructions sur le façonnage ou la cuisson par exemple. \end{document}