%
% Centered tables
%
% Reuben Thomas   24/4/97-30/7/01
%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ctable}
    [2001/07/30 v1.03 Centred tables]


\newenvironment{ctabular}[1]%
% #1 = argument to \begin{tabular}
    {\begin{center}\begin{tabular}{#1}}%
    {\end{tabular}\end{center}}

\newcommand{\ct@blecaption}{}
\newenvironment{ctable}[3][tbp]%
% #1 = argument to \begin{table} (optional)
% #2 = caption
% #3 = argument to \begin{tabular}
    {\renewcommand{\ct@blecaption}{#2}%
    \begin{table}[#1]\begin{center}\begin{tabular}{#3}}%
    {\end{tabular}\caption{\ct@blecaption}\end{center}\end{table}}
