% ***** nhtables.sty ***** % NHTABLES DOCUMENT-STYLE OPTION - released 14 October 1992 % Copyright (C) 1992 by Willem jan Maas \typeout{Document style option `nhtables' - Released 14 Nov 92} \let\@oldtabs\tabular \let\end@oldtabs\endtabular \def\tablename{Table} \newbox\@tablebox \newbox\@tfnbox \newif\if@caption \global\@captionfalse \def\tabular#1{\par\c@footnote=0 \def\thefootnote{\alph{footnote}} \def\footnote##1{\footnotemark \expandafter\gdef\csname @tfn\romannumeral\c@footnote\endcsname{##1}} \global\setbox\@tablebox=\hbox\bgroup \begin{@oldtabs}{#1}} \def\endtabular{\end{@oldtabs}\egroup \vspace{\baselineskip} \begin{minipage}[t]{\wd\@tablebox} \if@caption \@maketablecaption{\tablename\ \thetable}{\@caption} \global\@captionfalse\fi \box\@tablebox \ifnum\c@footnote=0\else\vskip4pt \@setfootnotes\fi \end{minipage}\par \vspace{\baselineskip} \global\@ignoretrue\@doendpe} \newcount\n \def\@setfootnotes{\n=\c@footnote \c@footnote=0 \loop \global\advance\c@footnote 1\relax \endgraf\noindent\hbox to 1.3em{% $^{\thefootnote}$\hfil}% \csname @tfn\romannumeral\c@footnote\endcsname\endgraf \expandafter \let\csname @tfn\romannumeral\c@footnote\endcsname\relax \ifnum\c@footnote<\n\repeat} \def\table{\let\@makecaption\@maketablecaption \footnotesize \global\@captiontrue \refstepcounter{table} \def\@caption{\strut} \def\caption##1{\def\@caption{##1}} \@float{table}\centering} \def\oblongtable{\begin{table} \vbox to \textheight{\vfil \Large \bf Space for table \thetable\vfil} \end{table}} %% Changing \cline to avoid clashing lines \def\@clinea{\multispan\@cla&\multispan\@clb \unskip\kern\arraycolsep\leaders\hrule \@height \arrayrulewidth \hfill \kern\arraycolsep\cr} \def\@clineb{\multispan\@clb \unskip\kern\arraycolsep\leaders\hrule \@height \arrayrulewidth \hfill \kern\arraycolsep\cr} \endinput