commit 9ffdfabf6f8508dd1cefcdc7937a8deec180d5db Author: Kenneth Odle Date: Fri Jun 21 13:14:43 2024 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f401a7c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/build/* +*.bak + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/images/food_001.jpg b/images/food_001.jpg new file mode 100644 index 0000000..4251ee8 Binary files /dev/null and b/images/food_001.jpg differ diff --git a/recipes-001.tex b/recipes-001.tex new file mode 100644 index 0000000..7d473fe --- /dev/null +++ b/recipes-001.tex @@ -0,0 +1,152 @@ +\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}