Numerous layout changes

This commit is contained in:
Kenneth John Odle 2024-06-21 18:52:30 -04:00
parent 9ffdfabf6f
commit 4ec0df9801

View File

@ -1,15 +1,13 @@
\documentclass[twoside, 9pt]{extreport} \documentclass[twoside, 9pt, openany]{extbook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%
% Packages %%%%%%%%
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{extsizes} \usepackage{extsizes}
% \usepackage{amsmath}
% \usepackage{array}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{graphicx} \usepackage{graphicx}
% \usepackage{wrapfig} % Let's wrap some images \usepackage[]{kpfonts}
\usepackage[nott]{kpfonts}
\usepackage{float} \usepackage{float}
\usepackage{gensymb} % Just for the degree symbol \usepackage{gensymb} % Just for the degree symbol
\usepackage{lettrine} % Drop caps \usepackage{lettrine} % Drop caps
@ -20,20 +18,28 @@
\usepackage{setspace} % Better control over line-spacing \usepackage{setspace} % Better control over line-spacing
\usepackage{environ} % Create custom environments to make everything easy \usepackage{environ} % Create custom environments to make everything easy
\usepackage{quoting} % Intros to recipes \usepackage{quoting} % Intros to recipes
\usepackage[]{josefin} % Use 'Josephine' for sans-serif fonts
%\usepackage{venturis} % Use 'Venturis' for sans-serif fonts; font code is 'yvl'
\usepackage{xfrac}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%
% Commands %%%%%%%%
\raggedbottom % Don't force text to fill page \raggedbottom % Don't force text to fill page
\graphicspath{{images/}} % Where are our images? \graphicspath{{images/}} % Where are our images?
\raggedright % Don't justify lines \raggedright % Don't justify lines
\renewcommand*\contentsname{List of Recipes}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page Set-up %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%
% Page Set-up %%%%%
\usepackage{geometry} \usepackage{geometry}
\geometry{ \geometry{
paperheight=8.5in, paperheight=8.5in,
paperwidth=5.5in, paperwidth=5.5in,
% heightrounded,
margin=0.5in margin=0.5in
} }
@ -41,8 +47,12 @@
\addtolength{\topmargin}{0.4in} \addtolength{\topmargin}{0.4in}
\addtolength{\textheight}{-0.75in} \addtolength{\textheight}{-0.75in}
% Set the header style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set up our headers and footers %%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr} \usepackage{fancyhdr}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhf{} \fancyhf{}
\fancyhead[LE,RO]{\textit{Dude With a Fork}} \fancyhead[LE,RO]{\textit{Dude With a Fork}}
@ -50,7 +60,12 @@
\cfoot{Page \thepage} \cfoot{Page \thepage}
\renewcommand{\footrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt}
% Our custom environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Our custom environments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{environ}
\NewEnviron{intro} \NewEnviron{intro}
{ {
\noindent{} \noindent{}
@ -68,7 +83,7 @@
Ingredients: Ingredients:
\noindent{} \noindent{}
\begin{multicols}{2} \begin{multicols}{2}
\ttfamily \sffamily
\begin{itemize}[nosep, left=0pt] \begin{itemize}[nosep, left=0pt]
\BODY \BODY
\end{itemize} \end{itemize}
@ -88,20 +103,47 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust spacing before chapter titles % Adjust spacing before chapter titles %%%%%%%%%%%%%%%%%
% See https://tex.stackexchange.com/a/488653/245702
% and https://tex.stackexchange.com/a/40001/245702
\usepackage{titlesec} \usepackage{titlesec}
\titleformat{\chapter}[display] \titleformat{\chapter}[display]
{\normalfont\huge\centering} {\normalfont\huge\centering}
{} {}
{20pt} {0pt}
{\Huge} {\fontsize{24}{28}\selectfont\textsc}
\titlespacing*{\chapter}{0pt}{-40pt}{0pt} \titlespacing*{\chapter}{0pt}{-20mm}{4mm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Document Information %%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust TOC contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{titletoc}
\titlecontents{chapter}[0em]{\lsstyle\smallskip}
{}
{}
{\hfill}[\medskip]%
\dottedcontents{chapter}[0em]{\vspace{2mm}}{3em}{0.5pc} % dotted lines in chapters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Adjust our xfracs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareInstance{xfrac}{JosefinSans-LF}{text}{
slash-symbol-font = JosefinSans-LF,
numerator-font = JosefinSans-LF,
denominator-font = JosefinSans-LF,
scale-factor = 1.2,
h-scale = 1.2,
numerator-bot-sep = 2 pt,
denominator-bot-sep = -1 pt
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Document Information %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\author{Kenneth John Odle} \author{Kenneth John Odle}
\title{ \title{
{\Huge Dude With a Fork} \\ {\Huge Dude With a Fork} \\
@ -109,19 +151,28 @@
} }
\date{\begin{small}\today{}\end{small}} \date{\begin{small}\today{}\end{small}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Let's get started % Let's get it started in here %%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document} \begin{document}
\maketitle \maketitle
\pagestyle{plain}
\section*{Impressum} \section*{Impressum}
All contents \copyright2024 Kenneth John Odle All contents \copyright2024 Kenneth John Odle
\newgeometry{left=2cm,right=2cm}
\tableofcontents \tableofcontents
\restoregeometry
\chapter{\textsc{Recipe Title}} %\makeatletter
%\sffamily the family name is \f@family
%\makeatother
\chapter{Really Cool Recipe}
\begin{center} \begin{center}
\includegraphics[scale=0.15]{food_001} \includegraphics[scale=0.15]{food_001}
@ -131,6 +182,35 @@ All contents \copyright2024 Kenneth John Odle
This is the intro. This is just a delightful little recipe that your entire family will enjoy. This is the intro. This is just a delightful little recipe that your entire family will enjoy.
\end{intro} \end{intro}
\begin{ingredients}
\item 1 cup water
\item 4 \sfrac{1}{2} cup flour
\item 1 cup water
\item 2 \sfrac{1}{2} cup flour
\item 1 cup water
\item \nicefrac{1}{2} cup flour
\item 1 cup water
\item $\frac{1}{2}$ cup flour
\end{ingredients}
\begin{instructions}
\item Do this first
\item Set oven to 175\textdegree{}C/350\textdegree{}F.
\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}
\chapter{Another Really Cool Recipe}
\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. You will make this so many times that you will soon have the recipe memorized.
\end{intro}
\begin{ingredients} \begin{ingredients}
\item 1 cup water \item 1 cup water
\item \nicefrac{1}{2} cup flour \item \nicefrac{1}{2} cup flour
@ -144,9 +224,11 @@ This is the intro. This is just a delightful little recipe that your entire fami
\begin{instructions} \begin{instructions}
\item Do this first \item Do this first
\item Set oven to 175\textdegree{}C/350\textdegree{}F.
\item Then do this. \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. \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{instructions}
\end{document} \end{document}