Fix: date in scripts

This commit is contained in:
Bertrand Benjamin 2022-08-21 09:46:04 +02:00
parent 2710bc790c
commit c3703ebc87
7 changed files with 8 additions and 6 deletions

View File

@ -63,6 +63,7 @@ mkdir -p $sequence_path
export name=$name
export date=$date
export date_short=`date --date="$date 00:00" "+%d %B %Y"`
export tribe=$tribe
export duration=$duration
envsubst < ./tools/skeleton/eval/exercises.tex > $sequence_path/exercises.tex

View File

@ -100,7 +100,8 @@ mkdir -p $sequence_path
export title=$title
export title_under=${title//?/#}
export author='Benjamin Bertrand'
export date=`date --date="$date 00:00" "+%B %Y"`
export date=$date
export date_short=`date --date="$date 00:00" "+%B %Y"`
export tribe=$tribe
export tags=$tags
export summary=$summary

View File

@ -4,7 +4,7 @@
% Title Page
\title{ ${name} \hfill ${subname}}
\tribe{${tribe}}
\date{${date}}
\date{${date_short}}
\duree{${duration}}
\DeclareExerciseCollection[step=1]{banque}

View File

@ -3,7 +3,7 @@
\author{${author}}
\title{${title} - Cours}
\date{${date}}
\date{${date_short}}
\pagestyle{empty}

View File

@ -3,7 +3,7 @@
\author{${author}}
\title{${title} - Exercices}
\date{${date}}
\date{${date_short}}
\DeclareExerciseCollection[step=1]{banque}
\xsimsetup{collect}

View File

@ -4,7 +4,7 @@
\author{${author}}
\title{${title} - Plan de travail}
\tribe{${tribe}}
\date{${date}}
\date{${date_short}}
\pagestyle{empty}

View File

@ -6,7 +6,7 @@
\author{${author}}
\title{${title} - Solutions}
\tribe{${tribe}}
\date{${date}}
\date{${date_short}}
\DeclareExerciseCollection{banque}
\xsimsetup{