Initial commit

This commit is contained in:
Kenneth John Odle 2024-06-21 13:14:43 -04:00
commit 9ffdfabf6f
4 changed files with 155 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/build/*
*.bak

0
README.md Normal file
View File

BIN
images/food_001.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

152
recipes-001.tex Normal file
View File

@ -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}