<<preamble>>

\begin{document}
    <<header|indent(4)>>

((* for section_beginning, entries, section_ending in sections*))
    <<section_beginning|indent(4)>>

    ((* for entry in entries *))
        <<entry|indent(8)>>

    ((* endfor *))

    <<section_ending|indent(4)>>
((* endfor *))

\end{document}