30 lines
730 B
TeX
30 lines
730 B
TeX
% _____ _ _
|
|
% (_ _) ( ) (_ )
|
|
% | | _ _| |_ | | __ ___
|
|
% | | / _ ) _ \ | | / __ \ __)
|
|
% | | ( (_| | |_) )| |( ___/__ \
|
|
% (_) \__ _)_ __/(___)\____)____/
|
|
|
|
|
|
% Create new table. #1 Layout, #2 title row
|
|
\newenvironment{tab}[2]{
|
|
\begin{center}
|
|
\begin{tabular}{#1}
|
|
\toprule
|
|
#2\\
|
|
\midrule
|
|
}{
|
|
\bottomrule
|
|
\end{center}
|
|
\end{tabular}
|
|
}
|
|
|
|
% Create new table in table env. #1 layout, #2 title row, #3 caption
|
|
\newenvironment{fullTable}[3]{
|
|
\begin{table}[h!]
|
|
\begin{tab}{#1}{#2}
|
|
}{
|
|
\caption{#3}
|
|
\end{table}
|
|
}
|