From 1a19973e1a9557ef140c7dd76acb895b1789a708 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Mon, 15 Sep 2025 17:36:15 +0200 Subject: [PATCH] add evaluation type --- _extensions/cours/before-title.tex | 29 ++++++++++++++++++++--------- _extensions/cours/title.tex | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/_extensions/cours/before-title.tex b/_extensions/cours/before-title.tex index d88ba16..8a0a697 100644 --- a/_extensions/cours/before-title.tex +++ b/_extensions/cours/before-title.tex @@ -2,31 +2,42 @@ $if(document-type.cours)$ $if(subtitle)$ - \rohead*[Cours]{Cours - $subtitle$} + \rohead*[Cours]{Cours -\Jd $subtitle$} $else$ \rohead*[Cours]{Cours} $endif$ + \rofoot*{\anneescolaire} $elseif(document-type.exercice)$ \ohead{} $if(subtitle)$ - \rohead*[Exercices]{Exercices - $subtitle$} + \rohead*[Exercices]{Exercices -\Jd $subtitle$} $else$ \rohead*[Exercices]{Exercices} $endif$ + \rofoot*{\anneescolaire} $elseif(document-type.activite)$ $if(subtitle)$ - \rohead*[Activité]{Activité - $subtitle$} + \rohead*[Activité]{Activité -\Jd $subtitle$} $else$ \rohead*[Activité]{Activité} $endif$ -$elseif(subtitle)$ - \rohead*{$subtitle$} -$else$ - \rohead*{} + \rofoot*{\anneescolaire} +$elseif(document-type.evaluation)$ + $if(subtitle)$ + \cohead*[\Jd $subtitle$]{\Jd $subtitle$} + $else$ + \cohead*[\Jd Évaluation]{\Jd Évaluation} + $endif$ + \rofoot*{\anneescolaire} $endif$ $if(document-class)$ - \lohead[$document-class$]{$document-class$} + $if(document-type.evaluation)$ + \lohead[$document-class$\\\textbf{NOM:}]{$document-class$\\\textbf{NOM:}} + $else$ + \lohead[$document-class$]{$document-class$} + $endif$ $endif$ -\rofoot*{\anneescolaire} \ No newline at end of file + + diff --git a/_extensions/cours/title.tex b/_extensions/cours/title.tex index d3fd621..435f54b 100644 --- a/_extensions/cours/title.tex +++ b/_extensions/cours/title.tex @@ -65,6 +65,24 @@ $elseif(document-type.activite)$ \author{} $endif$ + $if(date)$ + \date{$date$} + $else$ + \date{} + $endif$ + $endif$ +$elseif(document-type.evaluation)$ + \setlength{\droptitle}{-2.85cm} + $if(title)$ + \title{\normalsize $title$} + $endif$ + + $if(subtitle)$ + \subtitle{\Jd $subtitle$} + $else$ + \subtitle{} + $endif$ + $if(date)$ \date{$date$} $else$