WE-repartir-taches/repartir_taches/templates/repartition.tex.j2

59 lines
1.3 KiB
Plaintext
Raw Normal View History

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