% The Makefile creates derivations-book.cls at build time
% by modifying LaTeX's book.cls.  This is why the class file
% as such cannot be found among the source.
\documentclass[11pt,twoside,openright,letterpaper]{derivations-book}
\usepackage{thb}
\newboolean{isdraft}
\setboolean{isdraft}{true}
\newcommand{\veryear}{2018}
\newcommand{\verdate}{23 January 2018}
% The \veryear on the next line can be changed to a concrete year
% like 1970 for the second and subsequent printings, to keep from
% updating the copyright date and the date of publication.
\newcommand{\firstprintingyear}{\veryear}
\title{Derivations of Applied Mathematics}
\author{Thaddeus~H. Black}
\date{\ifthenelse{\boolean{isdraft}}{Revised \verdate}{\scshape the debian project\ $\cdot$\ \firstprintingyear}}
\makeindex

%\includeonly{vector}
\begin{document}
\newwrite\locallog
\immediate\openout\locallog=\jobname.pgn

\newlength{\tla}
\newlength{\tlb}
\newlength{\tlc}
\newlength{\tld}
\newlength{\tle}
\newlength{\tlf}
\newlength{\tlg}
\newlength{\tlh}
\newlength{\tli}
\newlength{\tlj}
\include{sphere}

\frontmatter

\maketitle

\ \vspace{\stretch{1}}

\noindent\\
Thaddeus~H. Black, 1967--.\\
Derivations of Applied Mathematics.\\
% Second edition.\\ % (for example)
U.S.\ Library of Congress class QA401.

\noindent\\
Copyright \copyright\ \ifthenelse{\boolean{isdraft}}{1983--}{}\firstprintingyear\ Thaddeus~H. Black.
%$\langle\texttt{thb@derivations.org}\rangle$.

\noindent\\
This book is published by the Debian Project~\cite{Debian}.  Besides in
Debian GNU/Linux and its derivatives~\cite{self}, you can fetch the book's latest
open-source printing at \emph{derivations.org}~\cite{self-derivations.org}.

\noindent\\
This book is free software.  You can redistribute and/or modify it under
the terms of the GNU General Public License~\cite{GPL}, version~2.

\noindent\\
\ifthenelse{\boolean{isdraft}}{%
  % diagn: the next line has been changed; check it
  The book was last revised \verdate.%
}{%
  Version 1.01 (that is, first edition, first printing), \verdate.%
}

\cleardoublepage
%\renewcommand\contentsname{Contents}
\immediate\write\locallog{Contents \thepage}
\tableofcontents
\cleardoublepage
\renewcommand\listtablename{List of tables}
\immediate\write\locallog{List of tables \thepage}
\listoftables
\cleardoublepage
\renewcommand\listfigurename{List of figures}
\immediate\write\locallog{List of figures \thepage}
\listoffigures

\include{pref}

\mainmatter

\include{intro}
\part{The calculus of a single variable}\label{part10}
\include{alggeo}
\include{trig}
\include{drvtv}
\include{cexp}
\include{noth}
\include{integ}
\include{taylor}
\include{inttx}
\include{cubic}
\part{Matrices and vectors}\label{part20}
\include{matrix}
\include{gjrank}
\include{mtxinv}
\include{eigen}
\include{vector}
\include{vcalc}
\part{Transforms and special functions}\label{part30}
\include{fours}
\include{fouri}
\include{prob}
\include{stub}
\include{conclu}

\appendix
\cleardoublepage\addcontentsline{toc}{part}{Appendices}
\part*{Appendices}
\include{hex}
\include{greek}
\include{purec}
\include{hist}

%\showhyphens{}

\backmatter

\bibliographystyle{plain}
%\renewcommand\bibname{References}
\immediate\write\locallog{Bibliography \thepage}
\bibliography{bib}

\cleardoublepage
\immediate\write\locallog{Index \thepage}
{\small\printindex}
\cleardoublepage

\label{end}
\immediate\closeout\locallog
\end{document}

