--- a
+++ b/ctable.sty
@@ -0,0 +1,133 @@
+%%
+%% This is file `ctable.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctable.dtx  (with options: `package')
+%% 
+%% IMPORTANT NOTICE:
+%% 
+%% For the copyright see the source file.
+%% 
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from ctable.sty.
+%% 
+%% For distribution of the original source see the terms
+%% for copying and modification in the file ctable.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+%%% File: ctable.dtx
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ctable}
+        [2003/10/03 v1.5 LaTeX package ctable]
+\RequirePackage{keyval,array,tabularx,booktabs,rotating}
+\def\NN{\tabularnewline}
+\def\FL{\toprule}
+\def\ML{\NN\midrule}
+\def\LL{\NN\bottomrule}
+\newdimen\@ctblwidth\@ctblwidth=0pt
+\newdimen\@ctblmaxwidth\@ctblmaxwidth=0pt
+\newdimen\@ctblw % the final width
+\newbox\ctbl@tabelx     % the width with X columns
+\newbox\ctbl@tabel      % the width where X is replaced with l
+\newbox\ctbl@t          % the final box will become one of the two above
+\define@key{ctbl}{caption} {\def\@ctblcaption {#1}}
+\define@key{ctbl}{cap}     {\def\@ctblcap     {#1}}
+\define@key{ctbl}{label}   {\def\@ctbllabel   {#1}}
+\define@key{ctbl}{pos}     {\def\@ctblpos     {#1}
+                            \def\@ctblbegin{\@ctblbeg[#1]}}
+\define@key{ctbl}{width}   {\@ctblwidth       =#1}
+\define@key{ctbl}{maxwidth}{\@ctblmaxwidth    =#1}
+\define@key{ctbl}{botcap}[]{\def\@ctblbotcap  {1}}
+\define@key{ctbl}{rotate}[]{\def\@ctblrotate  {sideways}}
+\define@key{ctbl}{figure}[]{\def\@ctbltaborfig{figure}}
+\define@key{ctbl}{star}  []{\def\@ctblstarred {*}}
+\def\@ctblCaption{
+  \ifx\@ctblcap\empty\let\@ctblcap\@ctblcaption\fi
+  \ifx\@ctblcaption\empty\else
+    \caption[\@ctblcap]{\label{\@ctbllabel}\@ctblcaption}
+  \fi
+}
+\newcommand{\tnote}[2][a]{%
+  \hbox{\@textsuperscript{\normalfont\textit{#1}}}&#2\NN}
+\newcommand{\tmark}[1][a]{%
+  \hbox{\@textsuperscript{\normalfont\textit{#1}}}}
+\newcommand{\ctable}[4][]{
+  \def\@ctbltaborfig{table}
+  \def\@ctblrotate  {}
+  \def\@ctblpos     {}
+  \def\@ctblcaption {}
+  \def\@ctblcap     {}
+  \def\@ctbllabel   {}
+  \def\@ctblbeg     {\begin{\@ctblrotate\@ctbltaborfig\@ctblstarred}}
+  \def\@ctblbegin   {\@ctblbeg}
+  \def\@ctblend     {\end{\@ctblrotate\@ctbltaborfig\@ctblstarred}}
+  \def\@ctblbotcap  {}
+  \def\@ctblstarred {}
+  \setkeys{ctbl}{#1}
+  \ifdim\@ctblwidth=0pt\else
+    \ifdim\@ctblmaxwidth=0pt\else
+      \PackageError{ctable}{
+        You may not use the width and maxwidth options together}{%
+        Use either width or maxwidth}
+    \fi
+  \fi
+  \ifx\@ctblpos\empty\else
+    \ifx\@ctblrotate\empty\else
+      \PackageError{ctable}{
+        You may not use the pos and rotate options together}{%
+        Rotated tables and figures are always typeset on a separate page}
+    \fi
+  \fi
+  \newcolumntype{Y}{X}
+  \sbox\ctbl@tabel{%
+      \newcolumntype{X}{l}%
+      \begin{tabular}{#2}
+        #4
+      \end{tabular}
+  }
+
+  \sbox\ctbl@tabelx{%
+      \newcolumntype{X}{Y}%
+      \begin{tabularx}{\ifdim\@ctblwidth>0pt\@ctblwidth\else\@ctblmaxwidth\fi}{#2}
+        #4
+      \end{tabularx}
+  }
+  \ifdim\@ctblmaxwidth=0pt
+    \ifdim\@ctblwidth=0pt
+      \sbox{\ctbl@t}{\usebox\ctbl@tabel}
+    \else
+      \sbox{\ctbl@t}{\usebox\ctbl@tabelx}
+    \fi
+  \else
+    \ifdim\wd\ctbl@tabel>\@ctblmaxwidth
+      \sbox{\ctbl@t}{\usebox\ctbl@tabelx}
+    \else
+      \sbox{\ctbl@t}{\usebox\ctbl@tabel}
+    \fi
+  \fi
+  \@ctblw=\wd\ctbl@t
+  \@ctblbegin
+    \begin{center}
+      \begin{minipage}{\@ctblw}
+        \ifx\@ctblbotcap\empty\@ctblCaption\vspace{2ex}\fi
+        \usebox\ctbl@t % insert the tabular
+        \def\@ctblfootnotes{#3}
+        \ifx#3\empty\else % append footnotes, if any
+           \\
+           \begin{tabularx}{\@ctblw}{r@{\,}>{\footnotesize\raggedright}X}
+           #3
+           \end{tabularx}
+        \fi
+        \ifx\@ctblbotcap\empty\else\@ctblCaption\fi
+      \end{minipage}
+    \end{center}
+  \@ctblend
+}
+\endinput
+%%
+%% End of file `ctable.sty'.