%
% chapsummary.sty - specifies a set of commands for spitting out
%                    information about which chapters belong in which
%                    themes of the book.
%
% the output from this is processed by a perl program to create
% tables. ( chapsummarymaker.p )
%
% Thu 8/11/01
% The idea is that each chapter can be allocated to one or more TOPICS
% then we can have a table where each column is a chapter and each row
% is a topic, and by scanning along the row you see all the chapters that relate
% to that topic. The degree of emphasis (bold or not) will indicate
% how strongly one chapter addresses the topic. Or how important it is?
%
% We also have TRACKS, which are prototype courses.
% You can declare a chapter to be in a track in just the same way as declare
% to be in a topic.  This is where you can specify that a particular chapter is essential
% to a course, or peripheral.
% 
\newcommand{\blank}{ & }
% \topiclist declares the order in which topics should appear in the table listing
% topics.  This command should be used once only.  Any topics that occur
%  later and not mentioned on this list will get appended to the list.
% The syntax of these commands will depend on the perl program, but I have in mind
%  shortname Long Name   \\punctuation
%  shortname Long Name
%  shortname Long Name   \\punc-optional
\newcommand{\topiclist}[1]{
\typeout{\# begintopiclist #1 }
\typeout{\# endtopiclist }
}
\newcommand{\tracklist}[1]{
\typeout{\# begintracklist #1 }
\typeout{\# endtracklist }
}
% Each of these commands ending in T adds the current chapter
% to a particular topic list  eg \addtopic{3}{infotheory}
% use identical form to this to add to tracks also
% the order CHAPTER TOPIC is used in the typeout so that there is the option of
% usage
%    CHAPTER TOPIC TOPIC TOPIC TOPIC
% the first argument gives the STRENGTH of the topic in the chapter,
% or the importance of including this chapter in the track.
% intended strengths: 1=light, 2=normal, 3=bold face
\newcommand{\addtopic}[2]{
\typeout{\# addtopic \arabic{chapter} #1 #2}
}
\newcommand{\addtrack}[2]{
\typeout{\# addtrack \arabic{chapter} #1 #2}
}
%
% the following were not used
%
%\newcommand{\begintopics}{
% This command should be invoked in every new chapter.
% It set values of all the chapterlabels to \blank .
% They can subsequently be set to non-blank values by
%  the commands \infotheoryT , etc
%}
%\newcommand{\endtopics}{
% This denotes the end of the list of chapterlabels.
% This command invokes a concatenation operator,
%  adding each chapterlabel to the appropriate row variable
%\ifnum \arabic{\ittopic} > 0
% % append \arabic{\ittopic} to a list - no, need \bf provision also
%\fi
%}

