\documentclass[a4paper, 12pt]{book}

\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{graphicx}
\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage{filecontents}
\usepackage{longtable}
\usepackage{float}
\usepackage[T1]{fontenc}
\usepackage{tocloft}
\usepackage[backend=biber]{biblatex}
\addbibresource{references.bib}
\usepackage[skip=5pt plus1pt, indent=0pt]{parskip}

\usepackage[hidelinks]{hyperref}
\hypersetup{
    linktoc=all
    allcolors=black
}

\definecolor{codeblue}{RGB}{69, 161, 248}

\usepackage{tikz}
\usetikzlibrary{shapes,arrows}

\graphicspath{
  {./images/}
  {./troubleshooting/}
  {./sourdough-starter/}
  {./troubleshooting/crumb-structures/}
  {./history/}
  {./images/external/}
  {./baking/}
  {./wheat-sourdough/}
}

\interfootnotelinepenalty=10000

\advance\cftsecnumwidth 0.5em\relax
\advance\cftsubsecindent 0.5em\relax
\advance\cftsubsecnumwidth 0.5em\relax

% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=codeblue, text=white,
    text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=codeblue,  text=white,
    text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
    minimum height=2em]

\begin{document}

\begin{titlepage}
	\centering
  \includegraphics[width=\textwidth]{cover-page}
  Version:
  \today
\end{titlepage}


\frontmatter

\tableofcontents

\chapter{Foreword}
\input{intro/foreword}

\chapter{Preface}
\input{intro/preface}

\chapter{Acknowledgements}
\input{intro/acknowledgements}


\mainmatter

\chapter{The history of sourdough}
\input{history/sourdough-history}

\chapter{How sourdough works}
\input{basics/how-sourdough-works}

\chapter{Making a sourdough starter}
\input{sourdough-starter/sourdough-starter}

\chapter{Sourdough starter types}
\input{sourdough-starter/sourdough-starter-types}

\chapter{Flour types}
\input{flour-types/flour-types}

\chapter{Bread types}
\input{bread-types/bread-types}

\chapter{Wheat sourdough}
\label{chapter:wheat-sourdough}
\input{wheat-sourdough/wheat-sourdough}

\chapter{Non wheat bread basics}
\label{chapter:non-wheat-sourdough}
\section{Ingredients}
\section{Managing acidity}
\section{To shape or not to shape}
\section{Proofing}

\chapter{Baking}
\input{baking/baking}

\chapter{Storing bread}
\section{Fridge}
\section{Room temperature}
\section{Frozen}

\chapter{Troubleshooting}

\input{troubleshooting/crumb-structures/crumb-structures}
\input{troubleshooting/misc}

\printbibliography


\end{document}
