\BLOCK{- if caption -}
\begin{table}\BLOCK{if placement}[\VAR{placement}]\BLOCK{else}[H]\BLOCK{endif}
\centering
\caption{\VAR{caption}}
\BLOCK{if label -}
\label{\VAR{label}}
\BLOCK{endif -}
\vspace{0.5em}
\BLOCK{- else -}
\begin{center}
\BLOCK{- endif}
\BLOCK{- if env == 'tabularx' -}
\begin{tabularx}{\VAR{width}}{\VAR{colspec}}
\BLOCK{- elif env == 'longtable' -}
\begin{longtable}{\VAR{colspec}}
\BLOCK{- else -}
\begin{tabular}{\VAR{colspec}}
\BLOCK{- endif}
\toprule
\BLOCK{- if header}
\VAR{header}
\midrule
\BLOCK{- endif}
\VAR{body}
\BLOCK{- if footer}
\midrule
\VAR{footer}
\BLOCK{- endif}
\bottomrule
\BLOCK{- if env == 'tabularx' }
\end{tabularx}
\BLOCK{- elif env == 'longtable' }
\end{longtable}
\BLOCK{- else }
\end{tabular}
\BLOCK{- endif}
\BLOCK{- if caption }
\end{table}
\BLOCK{- else }
\end{center}
\BLOCK{- endif }
