X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/dnd/blobdiff_plain/46d528a43a45b39de9c77565338274943dbff51c..ac6c07c4feeaea33c25b4696bbcb6b27e594624c:/tables.cls

diff --git a/tables.cls b/tables.cls
index 21573c1..d0bebf7 100644
--- a/tables.cls
+++ b/tables.cls
@@ -16,16 +16,24 @@
 }
 \pagestyle{foots}
 
-\count1 = 0
-\def\thepagemax{\pageref{pgn:\the\count1}}
+\newcount\sectcount
+\sectcount = 0
+\def\thepagemax{\pageref{pgn:\the\sectcount}}
 \def\sect#1{%
-  \label{pgn:\the\count1}%
+  \label{pgn:\the\sectcount}%
   \newpage\section{#1}%
   \gdef\sectname{#1}%
-  \global\advance\count1by1%
-  \global\count0=1%
+  \global\advance\sectcount\@ne%
+  \global\count0\@ne%
 }
-\AtEndDocument{\label{pgn:\the\count1}}
+
+\def\subsect#1{%
+  \goodbreak\medskip%
+  {\normalsize\bfseries\sffamily#1}\par%
+  \nobreak\@nobreaktrue%
+}
+
+\AtEndDocument{\label{pgn:\the\sectcount}}
 
 %%% tables
 \tabcolsep = 0.5em
@@ -50,6 +58,9 @@
   \hlx*{vh} \end{tabular}%
 }
 
+\def\swimming{\unskip\penalty100/\ignorespaces}
+\def\flying{\unskip\penalty100/$\!\!\!$/\ignorespaces}
+
 %%% table sets
 \def\col{\vbox\bgroup\halign\bgroup\hfil\ignorespaces##\unskip\hfil\cr}
 \def\endcol{\crcr\egroup\egroup}
@@ -59,7 +70,8 @@
 \def\colgap{\cr\noalign{\medskip}}
 \def\line{\endrow\medskip\row}
 \def\set{\@ifnextchar[\set@{\set@[c]}}
-\newskip\topglue@ \newskip\botglue@
+\newskip\topglue@
+\newskip\botglue@
 \def\set@[#1]{\topglue@0ptplus1fil\botglue@0ptplus1fil\ifx
   b#1\botglue@\z@\else\ifx t#1\topglue@\z@\fi\fi\vspace\bigskipamount\vbox\bgroup\row}
 \def\endset{\endrow\egroup}
