
\documentclass[11pt, twoside]{amsbook}

\usepackage{proofs+concepts}


\makenotationnindex

% need to add [label-format={}] to the tasks:
% \begin{tasks}[label-format={}](3)


\renewcommand{\includeonly}[1]{}

\includeonly{%
frontmatter,
%part1,
%ch1-sentential,
%ch2-twocolumn,
%part2,
%ch3-sets,
%ch4-firstorder,
%ch5-topics,
%part3,
%ch6-functions,
%ch7-equivalencerelations,
%ch8-induction,
ch9-cardinality,
%%%%%%%%%%%part5, % (Graph Theory)
%%%%%%%%%%%ch18-basicgraphs,
%%%%%%%%%%%ch19-isomorphisms,
%%
%%
%%
%%%%%%%% Advanced Graph Theory
%%%%%%%chG12-colouring,
%%%%%%%chG16-cycles,
%%%%%%%chG17-bipartite,
%%
%%
 index-defns,
% index-notation
}


\begin{document}

\iftwocolumn
\pdfpageheight=8.5in
\pdfpagewidth=11in
\fi

\include{frontmatter}

\include{part1}
\include{ch1-sentential}
\include{ch2-twocolumn}


\include{part2}
\include{ch3-sets}
\include{ch4-firstorder}
\include{ch5-topics}


\include{part3}
\include{ch6-functions}
\include{ch7-equivalencerelations}
\include{ch8-induction}
\include{ch9-cardinality}

%%%%%%%%%%%%%%\include{part4}
%%%%%%%%%%%%%%\include{ch18-basicgraphs}
%%%%%%%%%%%%%%\include{ch19-isomorphisms}

\include{index-defns}
\include{index-notation}
%%%\appendix
%%%\include{app-notation}
%%%%%%%%%\include{app-solutions}
%%%%%%%%%%\include{app-quickreference}
%%%%%%%%%%%\include{backmatter}

% Add "\eject" at end of toc file, so there is some space between the chapters in this final part.
% \addtocontents does not work, so a workaround is needed -- see:
% https://tex.stackexchange.com/questions/10291/addtocontents-at-end-of-document-not-getting-written-to-toc-file/10297#10297
\makeatletter
\immediate\write\@auxout{\noexpand\@writefile{toc}{\noexpand\eject}}
\makeatother


\end{document}