{% raw %} \documentclass[a4paper]{article} \usepackage[margin=1.5cm]{geometry} \usepackage[dvipsnames]{xcolor} \usepackage{fontspec} \usepackage[fontsize=14pt]{fontsize} \usepackage[framemethod=tikz]{mdframed} \usepackage[most]{tcolorbox} \usepackage[french]{babel} \title{\vspace{-1.5cm}Répartition des tâches} \author{} \date{\vspace{-2.5cm}} {% endraw %} {% for num in range((groupes|length) + 1) %} \definecolor{groupe{{- num -}} }{HTML}{ {{- couleur[num % (couleur|length)] -}} } {% endfor %} {% raw %} \newcommand{\groupe}[1]{ \tcbox[on line,% left=1pt,top=1pt,right=1pt,bottom=1pt,% bean arc,% colframe=black,boxrule=1px,colback=groupe#1% ]{#1} } \newcommand{\heure}[1]{\normalfont #1} \newmdenv[roundcorner=10pt]{mdtask} \newcommand{\category}[2]{ \section*{#1\hfill{\normalfont #2}} } \newcommand{\subcategory}[2]{ \subsection*{\hspace{1em}#1\hfill{\normalfont #2}} } {% endraw %} \begin{document} \maketitle \section*{Groupes\hfill{}{\normalsize Chaque groupe a plusieurs tâches~!}} \begin{tabular}{c l l l l l} {% for g_id, _ in groupes.items() %} {% include 'groupe.tex.j2' %} {%- endfor %} \end{tabular} {% for cat in taches -%} {% include 'category.tex.j2' %} {% endfor %} \end{document}