{% if cat|attr('depth') %} \{%- for i in range(cat.depth-1) -%}sub{%- endfor -%}category{ {{- cat.name -}} }{ {{- cat.time -}} } {%- if cat.intro -%} {{- cat.intro|md_format|escape_latex -}} {% endif %} {% for cat in cat.tasks %} {% include 'category.tex.j2' %} {% endfor %} {% else %} {% include 'tache.tex.j2' %} {% endif %}