diff --git a/repartir_taches/templates/groupe.tex.j2 b/repartir_taches/templates/groupe.tex.j2 index d1e59c0..9c15dbf 100644 --- a/repartir_taches/templates/groupe.tex.j2 +++ b/repartir_taches/templates/groupe.tex.j2 @@ -1 +1,7 @@ -\groupe{ {{- g_id + 1 -}} } &--- {{ ', '.join(groupes[g_id]) }} \\ +\groupe{ {{- g_id + 1 -}} } +{%- for mem in range(5) -%} +& +{%- if mem < groupes[g_id]|length -%} + {{ groupes[g_id][mem] }} +{%- endif %} +{%- endfor %} \\ diff --git a/repartir_taches/templates/tache.tex.j2 b/repartir_taches/templates/tache.tex.j2 index 4403ec1..7ef1948 100644 --- a/repartir_taches/templates/tache.tex.j2 +++ b/repartir_taches/templates/tache.tex.j2 @@ -6,7 +6,7 @@ {{ cat.descr|md_format|escape_latex }} \\ {% if cat.notes %}\textit{ {{- cat.notes -}} } \\ {% endif -%} -\begin{tabular}{r l} +\begin{tabular}{c l l l l l} {% for g_id in cat.assigned %} {% include 'groupe.tex.j2' %} {%- endfor -%} \end{tabular}