Compare commits
4 commits
8d31594946
...
bb758d2583
Author | SHA1 | Date | |
---|---|---|---|
Théophile Bastian | bb758d2583 | ||
Théophile Bastian | 7c6070c28f | ||
Théophile Bastian | 0af65ce485 | ||
Théophile Bastian | 6b38abe6f4 |
|
@ -103,8 +103,9 @@ class Config:
|
|||
# Normalize
|
||||
def normalize(x: str) -> str:
|
||||
x = x.strip()
|
||||
if " " in x:
|
||||
return " ".join(map(normalize, x.split()))
|
||||
for sep in (" ", "-"):
|
||||
if sep in x:
|
||||
return sep.join(map(normalize, x.split(sep)))
|
||||
return x[0].upper() + x[1:].lower()
|
||||
|
||||
for pers in raw_people:
|
||||
|
|
|
@ -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 %} \\
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
\newcommand{\groupe}[1]{
|
||||
\tcbox[on line,%
|
||||
left=0pt,top=0pt,right=0pt,bottom=0pt,%
|
||||
left=1pt,top=1pt,right=1pt,bottom=1pt,%
|
||||
bean arc,%
|
||||
colframe=white,colback=groupe#1%
|
||||
colframe=black,boxrule=1px,colback=groupe#1%
|
||||
]{#1}
|
||||
}
|
||||
\newcommand{\heure}[1]{\normalfont #1}
|
||||
|
@ -44,7 +44,7 @@
|
|||
|
||||
\section*{Groupes}
|
||||
|
||||
\begin{tabular}{r l}
|
||||
\begin{tabular}{c l l l l l}
|
||||
{% for g_id, _ in groupes.items() %}
|
||||
{% include 'groupe.tex.j2' %}
|
||||
{%- endfor %}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -5,13 +5,20 @@ import re
|
|||
|
||||
|
||||
group_colors: list[str] = [
|
||||
"ffacab",
|
||||
"acabff",
|
||||
"6fe569",
|
||||
"83e5aa",
|
||||
"dfffbc",
|
||||
"fff6ae",
|
||||
"f4b3ff",
|
||||
"fdffb6",
|
||||
"caffbf",
|
||||
"9bf6ff",
|
||||
"a0c4ff",
|
||||
"ffc6ff",
|
||||
"ebd8d0",
|
||||
"70d6ff",
|
||||
"ff70a6",
|
||||
"ff9770",
|
||||
"ffd670",
|
||||
"e9ff70",
|
||||
"a5ffd6",
|
||||
"d3ab9e",
|
||||
"b8e0d2",
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue