#if ("$!listDepth" == '')
  #set ($listDepth = 0)
#else
  #set ($listDepth = $listDepth + 1)
#end
## Since this is a standalone element we separate from the previous block by 2 NL, except when nested in another list.
## 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())
  #if ($listDepth == 0)

  #end

#else
  ## Reset so that next elements can get NLs if needed
  #set ($discard = $latex.tool.getStack('isInContainerAcceptingStandalone').pop())
  #set ($discard = $latex.tool.getStack('isInContainerAcceptingStandalone').push(false))
#end
${stringtool.repeat(' ', $listDepth)}\begin{itemize}##
$latex.processor.process($latex.block.getChildren())
${stringtool.repeat(' ', $listDepth)}\end{itemize}##
#set ($listDepth = $listDepth - 1)