\documentclass[paper=a5,fontsize=11pt,parskip=half,twoside,DIV=16]{scrbook}

\KOMAoptions{toc=flat}
\KOMAoptions{toc=idx}

\usepackage{helpers}
\usepackage{version-and-copyright}
\usepackage{recipe}

\usepackage{hyperxmp}
\usepackage[type={CC},modifier={by-sa},version={4.0}]{doclicense}

\usepackage{makeidx}
\makeindex

\usepackage[toc,style=altlist,nopostdot,nomain]{glossaries}
\newglossary*{term}{Cooking Terms}
\newglossary*{tech}{Cooking Techniques}
\newglossary*{eqpt}{Equipment}
\makeglossaries
\loadglsentries[term]{term-glossary}
\loadglsentries[tech]{tech-glossary}
\loadglsentries[eqpt]{eqpt-glossary}
\glsaddall

\title{The Open Source Cookbook}

\lowertitleback{This compilation \copyrightRange{2020} Samuel Flint,
  licensed \doclicenseName (\doclicenseIcon).  Recipes copyright their
  respective contributors, and under the same terms unless otherwise
  noted.

  Revision \texttt{\gitrevision}.
}

\usepackage{hyperref}
\hypersetup{
  pdftitle={The Open Source Cookbook},
  pdfcreator={LatexMk},
  pdflang={en-US},
  colorlinks=true,
  linkcolor=black,
  citecolor=black,
  filecolor=black,
  urlcolor=black
}

\begin{document}

\maketitle

\frontmatter
\tableofcontents

\mainmatter

\input{01-basics}
\input{02-salads-dressings}
\input{03-soups}
\input{04-appetizers}
\input{05-mains-and-entrees}
\input{06-sides}
\input{07-desserts}
\input{08-snacks}
% Maybe a "Punches chapter?"

\backmatter

\input{91-groups}
\input{92-menus}

% Glossaries (consider re-ordering)
\printglossary[type=tech,nonumberlist] %Techniques
\printglossary[type=eqpt,nonumberlist] %Equiptment
\printglossary[type=term,nonumberlist] %Terms

% Index
\printindex

\end{document}


%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
