Fix encoding and LaTeX issues
This commit is contained in:
parent
bb758d2583
commit
2bfcd4dd35
4 changed files with 10 additions and 4 deletions
|
@ -1,6 +1,10 @@
|
||||||
{% if cat|attr('depth') %}
|
{% if cat|attr('depth') %}
|
||||||
\{%- for i in range(cat.depth-1) -%}sub{%- endfor -%}category{ {{- cat.name -}} }{ {{- cat.time -}} }
|
\{%- 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 %}
|
{% for cat in cat.tasks %}
|
||||||
{% include 'category.tex.j2' %}
|
{% include 'category.tex.j2' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
|
|
||||||
\usepackage[margin=1.5cm]{geometry}
|
\usepackage[margin=1.5cm]{geometry}
|
||||||
\usepackage[dvipsnames]{xcolor}
|
\usepackage[dvipsnames]{xcolor}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage{fontspec}
|
||||||
\usepackage[fontsize=14pt]{fontsize}
|
\usepackage[fontsize=14pt]{fontsize}
|
||||||
\usepackage[framemethod=tikz]{mdframed}
|
\usepackage[framemethod=tikz]{mdframed}
|
||||||
\usepackage[most]{tcolorbox}
|
\usepackage[most]{tcolorbox}
|
||||||
|
\usepackage[french]{babel}
|
||||||
|
|
||||||
\title{\vspace{-1.5cm}Répartition des tâches}
|
\title{\vspace{-1.5cm}Répartition des tâches}
|
||||||
\author{}
|
\author{}
|
||||||
|
@ -42,7 +43,7 @@
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
\section*{Groupes}
|
\section*{Groupes\hfill{}{\normalsize Chaque groupe a plusieurs tâches~!}}
|
||||||
|
|
||||||
\begin{tabular}{c l l l l l}
|
\begin{tabular}{c l l l l l}
|
||||||
{% for g_id, _ in groupes.items() %}
|
{% for g_id, _ in groupes.items() %}
|
||||||
|
|
|
@ -100,11 +100,12 @@ def md_format(val: str) -> str:
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
|
||||||
_TEX_NBSP = re.compile(r" ([?!])")
|
_TEX_NBSP = re.compile(r" ([?!:])")
|
||||||
|
|
||||||
|
|
||||||
def escape_latex(val: str) -> str:
|
def escape_latex(val: str) -> str:
|
||||||
val = _TEX_NBSP.sub(r"~\1", val)
|
val = _TEX_NBSP.sub(r"~\1", val)
|
||||||
|
val = val.replace("·", r"$\cdot$")
|
||||||
return val.replace("&", r"\&")
|
return val.replace("&", r"\&")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ taches:
|
||||||
- nom: Installer tables
|
- nom: Installer tables
|
||||||
descr: "Arranger tables & chaises pour {nbChoristesDiner} personnes"
|
descr: "Arranger tables & chaises pour {nbChoristesDiner} personnes"
|
||||||
- nom: Mettre la table
|
- nom: Mettre la table
|
||||||
descr: "Mettre la table — vaisselle, couverts, etc."
|
descr: "Mettre la table -- vaisselle, couverts, etc."
|
||||||
- nom: Service
|
- nom: Service
|
||||||
descr: "Servir l'apéro, le repas, le dessert"
|
descr: "Servir l'apéro, le repas, le dessert"
|
||||||
- nom: Débarrasser
|
- nom: Débarrasser
|
||||||
|
|
Loading…
Reference in a new issue