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 name=$name
export date=$date export date=$date
export date_short=`date --date="$date 00:00" "+%d %B %Y"`
export tribe=$tribe export tribe=$tribe
export duration=$duration export duration=$duration
envsubst < ./tools/skeleton/eval/exercises.tex > $sequence_path/exercises.tex 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=$title
export title_under=${title//?/#} export title_under=${title//?/#}
export author='Benjamin Bertrand' 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 tribe=$tribe
export tags=$tags export tags=$tags
export summary=$summary export summary=$summary

View File

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

View File

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

View File

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

View File

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

View File

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