Subversion Repositories wimsdev

Rev

Rev 6132 | Rev 12170 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11501 mquerol 1
type=order
3426 bpr 2
textarea="data"
3
 
4
:Frise chronologique
5
Evénements à classer du type frise chronologique.
6
<p>
7
Auteur du modèle : Bernadette Perrin-Riou <bpr@math.u-psud.fr>
8
</p>
9
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
10
 
11
Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle !
12
(Ce sont les lignes qui commencent par un ':'.)
13
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
14
 
15
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
16
:\title{Frise chronologique}
5147 bpr 17
:\author{Bernadette, Perrin-Riou}
5744 bpr 18
:\email{}
19
:\credits{}
3426 bpr 20
:Consigne
21
\text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.}
22
:Nombre de mots maximum (maximum 10)
23
\text{N=5}
5744 bpr 24
:Couleur de la flèche
3426 bpr 25
\text{couleur=orange}
26
:Largeur des étiquettes
27
\text{facteur=100}
28
:Hauteur des étiquettes
29
\integer{height=100}
5744 bpr 30
:Largeur de la flèche
31
Mettre un entier entre 1 et 3
32
\integer{wi=1}
3541 bpr 33
:utilise les deux items des données principales (0), seulement la première colonne (1), seulement la deuxième colonne (2)
34
\text{choix=0}
3426 bpr 35
:Données principales.
5129 bpr 36
Mettre les données dans l'ordre où elles doivent apparaître.
3426 bpr 37
\text{data=1515,Bataille de Marignan
38
1680,Création de la Comédie Française
39
1789,Révolution française
40
1830,Les Trois Glorieuses
41
1831,Révolte des Canuts à Lyon
42
1848,Décret abolissant l'esclavage
43
1889,Inauguration de la tour Eiffel à Paris
44
1944,Les femmes acquièrent le droit de vote
45
1981,Abolition de la peine de mort}
46
 
47
:%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%%
48
 
49
\real{M=\N-0.3}
50
\text{xrange=-1,\N+1}
3541 bpr 51
\text{yrange=\choix=0 ? -5,5:-2,5}
52
\text{yrange=\choix=1 ? -5,2}
3426 bpr 53
\text{cnt=rows(\data)}
54
\text{shu=shuffle(\cnt)}
55
\text{shu=\shu[1..\N]}
56
\text{shu=wims(sort numeric item \shu)}
57
\text{data=row([\shu],\data)}
58
\matrix{rep=\data}
59
\integer{size=(1.5*\facteur)*(\M+1)}
60
\integer{height2=4*\height}
61
\text{size=\size,\height2}
62
\text{fleche=xrange \xrange
63
yrange \yrange
5744 bpr 64
lines \couleur,\M,\wi/2,-1,\wi/2,-1,-\wi/2,\M,-\wi/2,\M,-\wi,\N+0.5,0,\M,\wi,\M,\wi/2
3541 bpr 65
fill 0,\0,\couleur
3426 bpr 66
}
67
 
3541 bpr 68
\text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)}
69
\text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)}
70
\text{STEP=\choix=2 ? wims(values 2*x for x=1 to \N)}
71
\text{STEP=wims(makelist r x for x in  \STEP)}
3426 bpr 72
\steps{\STEP}
73
\text{positionbas=}
74
\text{positionhaut=}
75
\for{j=0 to \N-1}{
3541 bpr 76
  \text{fleche=\choix=0 or \choix=1 ? \fleche
5744 bpr 77
  line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur}
3541 bpr 78
  \text{fleche=\choix=0 or \choix=2 ? \fleche
5744 bpr 79
  line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur}
3426 bpr 80
  \text{ans=pari([2*\j+1,2*\j+2])}
81
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
82
 \text{positionbas=\positionbas
83
 r\ans[1],\v[1] x \v[2]}
84
 \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
85
 \text{positionhaut=\positionhaut
86
r\ans[2],\v[1] x \v[2]}
87
 }
3541 bpr 88
 \text{position=\choix=1 or \choix=0? \positionbas}
89
 \text{position=\choix=2 or \choix=0? \position
3426 bpr 90
 \positionhaut}
3541 bpr 91
 text{position=\positionbas
92
 \positionhaut}
3426 bpr 93
 \text{urlfleche=draw(\size
94
\fleche)}
95
\statement{\instruction
6132 bpr 96
<div class="wimscenter">
3426 bpr 97
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
98
\position}
6132 bpr 99
</div>
3426 bpr 100
}
3541 bpr 101
 
3426 bpr 102
\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
103
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
104
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}
105
\answer{}{\rep[2;2]}{type=clickfill}{option=shuffle}
106
\answer{}{\rep[3;1]}{type=clickfill}{option=shuffle}
107
\answer{}{\rep[3;2]}{type=clickfill}{option=shuffle}
108
\answer{}{\rep[4;1]}{type=clickfill}{option=shuffle}
109
\answer{}{\rep[4;2]}{type=clickfill}{option=shuffle}
110
\answer{}{\rep[5;1]}{type=clickfill}{option=shuffle}
111
\answer{}{\rep[5;2]}{type=clickfill}{option=shuffle}
112
\answer{}{\rep[6;1]}{type=clickfill}{option=shuffle}
113
\answer{}{\rep[6;2]}{type=clickfill}{option=shuffle}
114
\answer{}{\rep[7;1]}{type=clickfill}{option=shuffle}
115
\answer{}{\rep[7;2]}{type=clickfill}{option=shuffle}
116
\answer{}{\rep[8;1]}{type=clickfill}{option=shuffle}
117
\answer{}{\rep[8;2]}{type=clickfill}{option=shuffle}
118
\answer{}{\rep[9;1]}{type=clickfill}{option=shuffle}
119
\answer{}{\rep[9;2]}{type=clickfill}{option=shuffle}
120
\answer{}{\rep[10;1]}{type=clickfill}{option=shuffle}
11501 mquerol 121
\answer{}{\rep[10;2]}{type=clickfill}{option=shuffle}