001-sausage-recipes/recipes-001.tex

153 lines
3.8 KiB
TeX
Raw Normal View History

2024-06-21 17:14:43 +00:00
\documentclass[twoside, 9pt]{extreport}
%%%%%%%%%%%%%%%%%%%
% Packages %%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage{extsizes}
% \usepackage{amsmath}
% \usepackage{array}
\usepackage{amssymb}
\usepackage{graphicx}
% \usepackage{wrapfig} % Let's wrap some images
\usepackage[nott]{kpfonts}
\usepackage{float}
\usepackage{gensymb} % Just for the degree symbol
\usepackage{lettrine} % Drop caps
\usepackage{multicol} % Include two- or three-column sections
\usepackage{microtype} % Make things neater
\usepackage{enumitem} % Control spacing in lists
\usepackage{nicefrac} % Use nice fractions
\usepackage{setspace} % Better control over line-spacing
\usepackage{environ} % Create custom environments to make everything easy
\usepackage{quoting} % Intros to recipes
%%%%%%%%%%%%%%%%%%%
% Commands %%%%%%%%
\raggedbottom % Don't force text to fill page
\graphicspath{{images/}} % Where are our images?
\raggedright % Don't justify lines
%%%%%%%%%%%%%%%%%%%
% Page Set-up %%%%%
\usepackage{geometry}
\geometry{
paperheight=8.5in,
paperwidth=5.5in,
% heightrounded,
margin=0.5in
}
% Adjust the top and bottom margins
\addtolength{\topmargin}{0.4in}
\addtolength{\textheight}{-0.75in}
% Set the header style
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\textit{Dude With a Fork}}
\fancyhead[RE,LO]{Issue \#001}
\cfoot{Page \thepage}
\renewcommand{\footrulewidth}{0.5pt}
% Our custom environments
\NewEnviron{intro}
{
\noindent{}
\begin{quoting}[leftmargin=10mm, rightmargin=10mm]
\begin{small}
\BODY
\end{small}
\end{quoting}
}
\NewEnviron{ingredients}
{
\hrule
\vspace{4mm}
Ingredients:
\noindent{}
\begin{multicols}{2}
\ttfamily
\begin{itemize}[nosep, left=0pt]
\BODY
\end{itemize}
\rmfamily
\end{multicols}
}
\NewEnviron{instructions}
{
\hrule
\vspace{4mm}
Instructions:
\begin{enumerate}[itemsep=0mm]
\BODY
\end{enumerate}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust spacing before chapter titles
% See https://tex.stackexchange.com/a/488653/245702
% and https://tex.stackexchange.com/a/40001/245702
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\huge\centering}
{}
{20pt}
{\Huge}
\titlespacing*{\chapter}{0pt}{-40pt}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Document Information %%%%%
\author{Kenneth John Odle}
\title{
{\Huge Dude With a Fork} \\
{\footnotesize Cookbook \#1}
}
\date{\begin{small}\today{}\end{small}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Let's get started
\begin{document}
\maketitle
\section*{Impressum}
All contents \copyright2024 Kenneth John Odle
\tableofcontents
\chapter{\textsc{Recipe Title}}
\begin{center}
\includegraphics[scale=0.15]{food_001}
\end{center}
\begin{intro}
This is the intro. This is just a delightful little recipe that your entire family will enjoy.
\end{intro}
\begin{ingredients}
\item 1 cup water
\item \nicefrac{1}{2} cup flour
\item 1 cup water
\item \nicefrac{1}{2} cup flour
\item 1 cup water
\item \nicefrac{1}{2} cup flour
\item 1 cup water
\item \nicefrac{1}{2} cup flour
\end{ingredients}
\begin{instructions}
\item Do this first
\item Then do this.
\item Finally, do this. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again. And then do it over and over and over again.
\end{instructions}
\end{document}