Core: différents type de séquences
This commit is contained in:
parent
83ffd646d3
commit
b7bc67c300
@ -68,6 +68,27 @@ tags=$(dialog \
|
|||||||
2>&1 1>&3)
|
2>&1 1>&3)
|
||||||
exec 3>&-
|
exec 3>&-
|
||||||
|
|
||||||
|
## Plan de travail ou classique
|
||||||
|
exec 3>&1
|
||||||
|
selection=$(dialog \
|
||||||
|
--backtitle "Création d'une nouvelle séquence: Type" \
|
||||||
|
--title "Menu" \
|
||||||
|
--clear \
|
||||||
|
--cancel-label "Exit" \
|
||||||
|
--menu "Type de séquence:" 0 0 4 \
|
||||||
|
"1" "Classique" \
|
||||||
|
"2" "Plan de travail" \
|
||||||
|
2>&1 1>&3)
|
||||||
|
exec 3>&-
|
||||||
|
case $selection in
|
||||||
|
1 )
|
||||||
|
sequence_type="classique"
|
||||||
|
;;
|
||||||
|
2 )
|
||||||
|
sequence_type="plan_de_travail"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
sequence_path=$tribe/$(printf "%02d" $next_seq_number)_${title// /_}/
|
sequence_path=$tribe/$(printf "%02d" $next_seq_number)_${title// /_}/
|
||||||
mkdir -p $sequence_path
|
mkdir -p $sequence_path
|
||||||
@ -79,8 +100,13 @@ export date=$date
|
|||||||
export tribe=$tribe
|
export tribe=$tribe
|
||||||
export tags=$tags
|
export tags=$tags
|
||||||
export summary=$summary
|
export summary=$summary
|
||||||
envsubst < ./tools/skeleton/sequence/index.rst > $sequence_path/index.rst
|
SKELETONPATH=./tools/skeleton/sequence
|
||||||
envsubst < ./tools/skeleton/sequence/exercises.tex > $sequence_path/exercises.tex
|
for i in `ls $SKELETONPATH/common/`
|
||||||
envsubst < ./tools/skeleton/sequence/1E.tex > $sequence_path/1E.tex
|
do
|
||||||
envsubst < ./tools/skeleton/sequence/1B.tex > $sequence_path/1B.tex
|
envsubst < $SKELETONPATH/common/$i > $sequence_path/$i
|
||||||
|
done
|
||||||
|
for i in `ls $SKELETONPATH/$sequence_type`
|
||||||
|
do
|
||||||
|
envsubst < $SKELETONPATH/$sequence_type/$i > $sequence_path/$i
|
||||||
|
done
|
||||||
|
|
||||||
|
44
tools/skeleton/sequence/plan_de_travail/plan_de_travail.tex
Normal file
44
tools/skeleton/sequence/plan_de_travail/plan_de_travail.tex
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
\documentclass[a4paper,12pt]{article}
|
||||||
|
\usepackage{myXsim}
|
||||||
|
|
||||||
|
\author{${author}}
|
||||||
|
\title{${title} - Plan de travail}
|
||||||
|
\tribe{${tribe}}
|
||||||
|
\date{${date}}
|
||||||
|
|
||||||
|
\pagestyle{empty}
|
||||||
|
|
||||||
|
\DeclareExerciseCollection{banque}
|
||||||
|
\xsimsetup{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
% Résumé
|
||||||
|
|
||||||
|
\bigskip
|
||||||
|
|
||||||
|
Savoir-faire de la séquence
|
||||||
|
\begin{itemize}
|
||||||
|
\item
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\bigskip
|
||||||
|
|
||||||
|
Ordre des étapes à respecter
|
||||||
|
|
||||||
|
|
||||||
|
\section{}
|
||||||
|
|
||||||
|
\listsectionexercises
|
||||||
|
|
||||||
|
|
||||||
|
\pagebreak
|
||||||
|
|
||||||
|
\input{exercises.tex}
|
||||||
|
\printcollection{banque}
|
||||||
|
|
||||||
|
|
||||||
|
\end{document}
|
28
tools/skeleton/sequence/plan_de_travail/solutions.tex
Normal file
28
tools/skeleton/sequence/plan_de_travail/solutions.tex
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
\documentclass[a4paper,10pt]{article}
|
||||||
|
\usepackage{myXsim}
|
||||||
|
|
||||||
|
\usetikzlibrary{shapes.geometric}
|
||||||
|
|
||||||
|
\author{${author}}
|
||||||
|
\title{${title} - Solutions}
|
||||||
|
\tribe{${tribe}}
|
||||||
|
\date{${date}}
|
||||||
|
|
||||||
|
\DeclareExerciseCollection{banque}
|
||||||
|
\xsimsetup{
|
||||||
|
exercise/print=false,
|
||||||
|
solution/print=true,
|
||||||
|
}
|
||||||
|
|
||||||
|
\pagestyle{empty}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
\input{exercises.tex}
|
||||||
|
%\printcollection{banque}
|
||||||
|
%\printsolutions{exercises}
|
||||||
|
|
||||||
|
\end{document}
|
Loading…
Reference in New Issue
Block a user