#set ($tableBlock = $latex.block)
## If not inside a Container block that accepts standalone elements (Group block, etc then we separate from the
## previous block by 2 NL.
#set ($standaloneStack = $latex.tool.getStack('isInContainerAcceptingStandalone'))
#if ($standaloneStack.empty() || !$standaloneStack.peek())


#else
  ## Reset so that next elements can get 2NLs if needed
  #set ($discard = $latex.tool.getStack('isInContainerAcceptingStandalone').pop())
  #set ($discard = $latex.tool.getStack('isInContainerAcceptingStandalone').push(false))
#end
## Compute the number of columns
#set ($firstRowBlock = $latex.block.getChildren().get(0))
#set ($columnSize = $firstRowBlock.getChildren().size() - 1)
#set ($tableSpec = "|${stringtool.repeat('l|', $columnSize)}l|")
\begin{center}
\begin{tabular}{${tableSpec}}
\hline
$latex.processor.process($latex.block.getChildren())##
\end{tabular}
\end{center}##