In a book I'm typesetting, I want the tabular environment to be in footnote size and the other body of the book to be in normalsize font. To do this, I've tried something like the following:
\renewenvironment{tabular}[1][t]{\footnotesize
\begin{tabular}
[#1]}{\end{tabular}\normalsize}
But I get the following error:
! TeX capacity exceeded, sorry [save size=50000].
<to be read again>
\relax
l.72 \centering\begin{tabular}{
cccccc}
By the way, I'm using the tabular as below:
\begin{table}[t]
\caption{Title}\label{tab1}
\centering\begin{tabular}{cccccc}
....
\end{tabular}
\end{table}
Have I done something wrong here?
Edit on December 28th (another question):
In the following code, if I want also to add a \centering command, where should I put it? I have put it before and after the \footnotesize but it doesn't work!
\let\oldtabular\tabular
\let\endoldtabular\endtabular
\renewenvironment{tabular}{\bgroup\footnotesize\oldtabular}%
{\endoldtabular\egroup}
tabularenvironment. The\centeringand\footnotesizecommands belong to thetableenvironment and not totabular. Use a new environment, if you prefer. – egreg Dec 28 '11 at 00:23