%  _____       _     _              
% (_   _)     ( )   (_ )            
%   | |    _ _| |_   | |   __   ___ 
%   | |  / _  )  _ \ | | / __ \  __)
%   | | ( (_| | |_) )| |(  ___/__  \
%   (_)  \__ _)_ __/(___)\____)____/


\usepackage{booktabs}

% Create new table. #1 Layout, #2 title row
\newenvironment{tables}[2]{
	\begin{center}
		\begin{tabular}{#1}
			\toprule
			#2 \\
			\midrule
			}{
			\bottomrule
		\end{tabular}
	\end{center}
}

% Create new table in table env. #1 layout, #2 title row, #3 caption
\newenvironment{fullTable}[3]{
	\edef\tableCaption{#3}
	\begin{table}[h!]
		\begin{tables}{#1}{#2}
			}{
		\end{tables}
		\caption{\tableCaption}
	\end{table}
}
