\documentclass[twoside]{book}

\usepackage[a4paper, outer=1.625in, inner=1.625in, top=1.5in, bottom=1.5in]{geometry}

\usepackage{ebgaramond-maths}
\usepackage[scale = 0.78]{plex-mono}
\usepackage[T1]{fontenc}

\usepackage[final]{pdfpages}
\usepackage{booktabs}
\usepackage{microtype}
\usepackage{hanging} % for bib indentations
\usepackage{ragged2e}
\usepackage{blindtext}
\usepackage{gensymb} % For \degree

\usepackage[hyphens]{url}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
    colorlinks,
    linkcolor={red!50!black},
    citecolor={blue!50!black},
    urlcolor={blue!80!black}
}
\urlstyle{tt}


\def \hangingindent {3em}
\def \credgap {15pt}
\def \ackgap {10pt}

\interfootnotelinepenalty=10000

\title{Aporia XXIV}
\author{The University of St Andrews Philosophy Society}
\date{June 2024}

\usepackage[raggedright]{titlesec}
\usepackage{fancyhdr}

\renewcommand\thesection{\arabic{section}}

\titleformat{\chapter}[display]{\LARGE\bfseries\raggedright}{}{0em}{}
\titlespacing*{\chapter}{0pt}{100pt}{40pt}
\titleformat{\section}{\large\bfseries\raggedright}{{\sf\thesection}}{2em}{}
\titleformat{\subsection}{\bfseries}{{\sf\thesubsection}}{1.5em}{}
\titleformat{\subsubsection}{\bfseries}{{\sf\thesubsubsection}}{1.5em}{}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\fancyhead{}
\fancyfoot{}
\fancyhead[RO]{\thepage}
\fancyhead[LE]{\thepage}
\fancyhead[LO]{\small\sc\itshape\leftmark}
\fancyhead[RE]{\small\sc The Fresh Loaf}

\usepackage{suffix}

\newcommand\chapterauthor[1]{\authortoc{#1}\printchapterauthor{#1}}
\WithSuffix\newcommand\chapterauthor*[1]{\printchapterauthor{#1}}

\makeatletter
\newcommand{\printchapterauthor}[1]{%
  {\parindent0pt\vspace*{-25pt}%
  \linespread{1.1}\large\scshape#1%
  \par\nobreak\vspace*{35pt}}
  \@afterheading%
}
\newcommand{\authortoc}[1]{%
  \addtocontents{toc}{\vskip-00pt}%
  \addtocontents{toc}{%
    \protect\contentsline{chapter}%
    {\hskip1.3em\mdseries\scshape\protect\normalsize#1}{}{}}
  \addtocontents{toc}{\vskip5pt}%
}
\makeatother

\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

\def \refsection {\newpage\section*{Bibliography}}

\counterwithin{figure}{section}
\renewcommand\thefigure{\arabic{figure}}

\begin{document}
%includepdf{APORIA IV COVER.pdf}
\frontmatter
\vspace*{30pt}
\begin{center}
    \huge\sc The\ \ \ Fresh\ \ \ Loaf\\
\end{center}

\newpage
\hfill

\newpage

\vspace*{30pt}
\begin{center}
    \huge{\sc The\ \ \ Fresh\ \ \ Loaf\\
    \vspace*{10pt}
    \large Baker's Handbook\\
    \vspace{30pt}
    Floyd Mann

    Jeff Miller

    David Snyder

    Eric Hanner}\\
    \vfill
    {\large
    Typesetting and Editing

    {\sc Mohit Agarwal}}
\end{center}

\newpage

\noindent
Published by Mohit Agarwal, London

\noindent
© 2024 by The Fresh Loaf (\url{http://www.thefreshloaf.com})

\noindent
This work is distributed under a Creative Commons Attribution
Non-Commercial Share-Alike License.  This means you are free to
reproduce and modify text included in this work for
non-commercial or educational use as long as you include a credit with
the source listed as ``The Fresh Loaf (\url{http://www.thefreshloaf.com})''.  

If you alter, transform, or build upon this work, you must distribute
the resulting work only under the same or a similar license to this one.

\noindent
Published 2024

\noindent
30 29 28 27 26 24\hspace{4pt} 1 2 3 4 5 6 7 8 9 10

\tableofcontents
\mainmatter
\input{ include }
\backmatter
%\input{coverrear}
\end{document}
