%%% monograph.hcls \newif\iflatex\latexfalse \newif\ifhtml\htmltrue % should be built in \newenvironment{center} {\raw{
}} {\raw{
}} \def\copyrightnotice{\ifauthor\par\raw{
}\copyright~\year~\theauthor\par\fi} \let\trueenddocument=\enddocument \def\enddocument{ \begin{divertoutput}[toc] \ifsubsubsec\raw{}\fi \ifsubsec\raw{}\fi \end{divertoutput} \copyrightnotice\trueenddocument} \newif\iftitle\titlefalse \newif\ifdate\datefalse \newif\ifauthor\authorfalse \def\title#1{\def\thetitle{#1}\titletrue} \def\date#1{\def\thedate{#1}\datetrue} \def\author#1{\def\theauthor{#1}\authortrue} \def\maketitle{% \iftitle\raw{

}\thetitle\raw{

}\fi \ifauthor\raw{

}\theauthor\raw{

}\fi \ifdate\raw{

}\thedate\raw{

}\fi } %%% table of contents \newif\ifsubsec\subsecfalse \newif\ifsubsubsec\subsubsecfalse \newcommand{\tableofcontents}{ \raw{} \rawinput{\jobname.htoc} \raw{
} \openrawfile{toc}{\jobname.htoc}} \newcommand{\notableofcontents}{ \openrawfile{toc}{\jobname.htoc}} %%% \section \newcounter{section} \renewcommand{\thesection}{\arabic{section}} \newcommand{\section}[1]{ \refstepcounter{section} \edef\templabel{\genlab} \sectionstar{\label{\templabel}\thesection. #1} \begin{divertoutput}[toc] \ifsubsubsec\raw{}\fi \subsubsecfalse \ifsubsec\raw{}\fi \subsecfalse \raw{}\textbf{\thesection.~}\raw{}\textbf{\href[plain]{\templabel}{#1}}\raw{} \end{divertoutput} } \newcommand{\sectionstar}[1]{ \raw{

}#1\raw{

} } %%% \subsection \newcounter{subsection}[section] \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} \newcommand{\subsection}[1]{ \refstepcounter{subsection} \edef\templabel{\genlab} \subsectionstar{\label{\templabel}\thesubsection. #1} \begin{divertoutput}[toc] \ifsubsubsec\raw{}\fi \subsubsecfalse \ifsubsec\else\raw{}\fi \subsectrue \raw{} \end{divertoutput} } \newcommand{\subsectionstar}[1]{ \raw{

}#1\raw{

} } %%% \subsubsection \newcounter{subsubsection}[subsection] \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} \newcommand{\subsubsection}[1]{ \refstepcounter{subsubsection} \edef\templabel{\genlab} \subsubsectionstar{\label{\templabel}\thesubsubsection. #1} \begin{divertoutput}[toc] \ifsubsubsec\else\raw{
}\textbf{\thesubsection.~}\raw{}\textbf{\href[plain]{\templabel}{#1}}\raw{
}\fi \subsubsectrue \raw{} \end{divertoutput} } \newcommand{\subsubsectionstar}[1]{ \raw{

}#1\raw{

} } %%% figure \newcounter{figure} \renewcommand{\thefigure}{\arabic{figure}} \newcommand{\caption}[1]{\\ Figure \thefigure.~#1} \newenvironment{figure}[1][] {\begingroup\refstepcounter{figure}} {\endgroup} %%% exercise \newcounter{exercise} \renewcommand{\theexercise}{\arabic{exercise}} \def\@startexercise{\refstepcounter{exercise} \raw{
} \textbf{Exercise \theexercise. }} \newenvironment{exercise} {\begingroup\def\newexercise{\@startexercise}\newexercise} {\raw{
}} \newcounter{subexercise}[exercise] \renewcommand{\thesubexercise}{\theexercise\alph{subexercise}} \newcommand{\subexercise}{\par\refstepcounter{subexercise}\textbf{\thesubexercise. }} %%% alphalist \newcounter{alphalist} \def\alphalist{\begingroup\setcounter{alphalist}{0} \def\endalphalistitem{}% \renewcommand{\item}{\endalphalistitem \def\endalphalistiem{\raw{}}% \stepcounter{alphalist}% \raw{
}\textbf{\thesubsubsection.~}\raw{}\textbf{\href[plain]{\templabel}{#1}}\raw{
}\alph{alphalist}.\raw{}} \raw{}} \def\endalphalist{\endalphalistitem\raw{
}\endgroup} %%% define our own (compact) description environment \def\description{\begingroup \renewcommand{\item}[1][]{\raw{
}##1\raw{
}}\raw{
}} \def\enddescription{\raw{
}\endgroup} %%% index \newcommand{\see}[2]{\emph{see} #1} \newenvironment{theindex} {\begingroup\newcommand{\itemindent}{\raw{   }} \renewcommand{\item}{\raw{
}} \newcommand{\subitem}{\raw{
}\itemindent} \newcommand{\subsubitem}{\raw{
}\itemindent\itemindent}} {\par\endgroup} \newcommand{\parheader}[2][. ]{\medskip\noindent{\bf #2#1}} \def\mbox#1{#1} %%% hyperlink support \newcommand{\hyperlink}[3][ref]{\raw{}#3\raw{}}