Compare commits

..

No commits in common. "a527decd5f718b98997ed287589726063c3b29eb" and "d8bb8d25d2eec7e67bd3824dd8a333e29c3c701b" have entirely different histories.

8 changed files with 15 additions and 124 deletions

View File

@ -1,10 +0,0 @@
Classe de 4e à Chanay
######################
:date: 2021-08-23
:modified: 2021-08-23
:authors: Bertrand Benjamin
:category: 4e
:tags: Progression
:summary: Organisation de l'année pour les élèves de 4e à Chanay

View File

@ -21,9 +21,6 @@ update:
clean: clean:
git clean -idx -e venv/ -e video/ git clean -idx -e venv/ -e video/
sequence:
sh ./tools/scripts/new_sequence.sh
rsync_cleUSB: clean rsync_cleUSB: clean
rsync -rtv -u --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements rsync -rtv -u --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements
rsync -rtv -u $(COMMON_EXCLUDE) ../Divers/ /run/media/lafrite/$(CLEUSB)/Divers rsync -rtv -u $(COMMON_EXCLUDE) ../Divers/ /run/media/lafrite/$(CLEUSB)/Divers

View File

@ -1,10 +0,0 @@
Série technologique à Chanay
############################
:date: 2021-08-23
:modified: 2021-08-23
:authors: Bertrand Benjamin
:category: Technologique
:tags: Progression
:summary: Organisation de l'année pour les séries technologiques à Chanay

View File

@ -1,86 +0,0 @@
#!/bin/bash
display_result() {
dialog --title "$1" \
--no-collapse \
--msgbox "$result" 0 0
}
exec 3>&1
date=$(dialog --calendar "Date" 0 0 2>&1 1>&3 | awk -F "/" '{print $3"-"$2"-"$1}')
exec 3>&-
exec 3>&1
selection=$(dialog \
--backtitle "Création d'une nouvelle séquence: Classe" \
--title "Menu" \
--clear \
--cancel-label "Exit" \
--menu "Choisir un niveau:" 0 0 4 \
"1" "2nd" \
"2" "Enseignements Scientifique" \
"3" "4e" \
"4" "Technologique" \
2>&1 1>&3)
exec 3>&-
case $selection in
1 )
tribe="2nd"
;;
2 )
tribe="EnseignementsScientifique"
;;
3 )
tribe="4e"
;;
4 )
tribe="Technologique"
;;
esac
exec 3>&1
cd $tribe
existing_seq=$(ls -d */)
nbr_seq=$(echo $existing_seq | wc -w)
next_seq_number=$(expr $nbr_seq + 1)
title=$(dialog \
--inputbox "Séquences trouvée\n${existing_seq/ /\n} \nNom de la nouvelle sequence (n°$next_seq_number)" \
0 0 \
2>&1 1>&3)
exec 3>&-
cd ..
exec 3>&1
summary=$(dialog \
--inputbox "Résumé de la séquence" \
0 0 \
2>&1 1>&3)
exec 3>&-
## ajouter les tags
exec 3>&1
tags=$(dialog \
--inputbox "Liste des tags séparés par une virgule" \
0 0 \
2>&1 1>&3)
exec 3>&-
sequence_path=$tribe/$(printf "%02d" $next_seq_number)_$title/
mkdir -p $sequence_path
export title=$title
export title_under=${title//?/#}
export author='Benjamin Bertrand'
export date=$date
export tribe=$tribe
export tags=$tags
export summary=$summary
envsubst < ./tools/skeleton/sequence/index.rst > $sequence_path/index.rst
envsubst < ./tools/skeleton/sequence/exercises.tex > $sequence_path/exercises.tex
envsubst < ./tools/skeleton/sequence/1E.tex > $sequence_path/1E.tex
envsubst < ./tools/skeleton/sequence/1B.tex > $sequence_path/1B.tex

View File

@ -1,9 +1,9 @@
\documentclass[a4paper,10pt]{article} \documentclass[a4paper,10pt]{article}
\usepackage{myXsim} \usepackage{myXsim}
\author{${author}} \author{\Var{ author }}
\title{${title} - Cours} \title{\Var{title} - Cours}
\date{${date}} \date{\Var{date.strftime("%B %Y")}}
\pagestyle{empty} \pagestyle{empty}

View File

@ -1,9 +1,9 @@
\documentclass[a4paper,10pt]{article} \documentclass[a4paper,10pt]{article}
\usepackage{myXsim} \usepackage{myXsim}
\author{${author}} \author{\Var{ author }}
\title{${title} - Cours} \title{\Var{title} - Cours}
\date{${date}} \date{\Var{date.strftime("%B %Y")}}
\DeclareExerciseCollection{banque} \DeclareExerciseCollection{banque}
\xsimsetup{ \xsimsetup{

View File

@ -1,5 +1,5 @@
\collectexercises{banque} \collectexercises{banque}
\begin{exercise}[subtitle={<++>}, step={1}, origin={<++>}, topics={ ${title} }, tags={ ${tags} }] \begin{exercise}[subtitle={<++>}, step={1}, origin={<++>}, topics={\Var{title}}, tags={\Var{tags}}]
<++> <++>
\end{exercise} \end{exercise}

View File

@ -1,12 +1,12 @@
${title} {{ title }}
${title_under} {{ title_under }}
:date: ${date} :date: {{ date }}
:modified: ${date} :modified: {{ date }}
:authors: ${author} :authors: {{ author }}
:tags: ${tags} :tags: {{ tags }}
:category: ${tribe} :category: {{ tribe }}
:summary: ${summary} :summary: {{ summary }}
Étape 1: Étape 1:
======== ========