How to create a \newenvironment in latex for a scaled table

Posted by markus on Stack Overflow See other posts from Stack Overflow or by markus
Published on 2010-05-01T13:31:14Z Indexed on 2010/05/01 13:37 UTC
Read the original article Hit count: 415

Filed under:

Hi,

I try to define a table as a new environment.

\newenvironment{scaledtable}[1]{%
\begin{table}[h]
\caption{xxx}
\label{tab:xxx}
\begin{center}
\begin{tabular}{rcrrrrrrrrrrrrcc}
}{
\hline
\end{tabular}
\end{center}
\end{table}}

The problem I have is that I can't use scalebox{}. If I put the closing bracket into the end definition of the environment, latex can't assign the brackets anymore. I also can not use PStricks because of pdflatex.
/Markus

© Stack Overflow or respective owner

Related posts about latex