Subversion Repositories wimsdev

Rev

Rev 5448 | Rev 6132 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5448 Rev 5744
Line 13... Line 13...
13
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
13
Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo.
14
 
14
 
15
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
15
:%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%%
16
:\title{Frise chronologique}
16
:\title{Frise chronologique}
17
:\author{Bernadette, Perrin-Riou}
17
:\author{Bernadette, Perrin-Riou}
-
 
18
:\email{}
-
 
19
:\credits{}
18
:Consigne
20
:Consigne
19
\text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.}
21
\text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.}
20
:Nombre de mots maximum (maximum 10)
22
:Nombre de mots maximum (maximum 10)
21
\text{N=5}
23
\text{N=5}
22
:couleur de la flèche
24
:Couleur de la flèche
23
\text{couleur=orange}
25
\text{couleur=orange}
24
:Largeur des étiquettes
26
:Largeur des étiquettes
25
\text{facteur=100}
27
\text{facteur=100}
26
:Hauteur des étiquettes
28
:Hauteur des étiquettes
27
\integer{height=100}
29
\integer{height=100}
-
 
30
:Largeur de la flèche
-
 
31
Mettre un entier entre 1 et 3
-
 
32
\integer{wi=1}
28
:utilise les deux items des données principales (0), seulement la première colonne (1), seulement la deuxième colonne (2)
33
:utilise les deux items des données principales (0), seulement la première colonne (1), seulement la deuxième colonne (2)
29
\text{choix=0}
34
\text{choix=0}
30
:Données principales.
35
:Données principales.
31
Mettre les données dans l'ordre où elles doivent apparaître.
36
Mettre les données dans l'ordre où elles doivent apparaître.
32
\text{data=1515,Bataille de Marignan
37
\text{data=1515,Bataille de Marignan
Line 54... Line 59...
54
\integer{size=(1.5*\facteur)*(\M+1)}
59
\integer{size=(1.5*\facteur)*(\M+1)}
55
\integer{height2=4*\height}
60
\integer{height2=4*\height}
56
\text{size=\size,\height2}
61
\text{size=\size,\height2}
57
\text{fleche=xrange \xrange
62
\text{fleche=xrange \xrange
58
yrange \yrange
63
yrange \yrange
59
lines \couleur,\M,1,-1,1,-1,-1,\M,-1,\M,-2,\N+0.5,0,\M,2,\M,1
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
60
fill 0,\0,\couleur
65
fill 0,\0,\couleur
61
}
66
}
62
 
67
 
63
\text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)}
68
\text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)}
64
\text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)}
69
\text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)}
Line 67... Line 72...
67
\steps{\STEP}
72
\steps{\STEP}
68
\text{positionbas=}
73
\text{positionbas=}
69
\text{positionhaut=}
74
\text{positionhaut=}
70
\for{j=0 to \N-1}{
75
\for{j=0 to \N-1}{
71
  \text{fleche=\choix=0 or \choix=1 ? \fleche
76
  \text{fleche=\choix=0 or \choix=1 ? \fleche
72
  line \j-0.1,-1,\j-0.1,-2,\couleur}
77
  line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur}
73
  \text{fleche=\choix=0 or \choix=2 ? \fleche
78
  \text{fleche=\choix=0 or \choix=2 ? \fleche
74
  line \j-0.1,0.7,\j-0.1,2,\couleur}
79
  line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur}
75
  \text{ans=pari([2*\j+1,2*\j+2])}
80
  \text{ans=pari([2*\j+1,2*\j+2])}
76
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
81
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
77
 \text{positionbas=\positionbas
82
 \text{positionbas=\positionbas
78
 r\ans[1],\v[1] x \v[2]}
83
 r\ans[1],\v[1] x \v[2]}
79
 \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
84
 \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
Line 86... Line 91...
86
 text{position=\positionbas
91
 text{position=\positionbas
87
 \positionhaut}
92
 \positionhaut}
88
 \text{urlfleche=draw(\size
93
 \text{urlfleche=draw(\size
89
\fleche)}
94
\fleche)}
90
\statement{\instruction
95
\statement{\instruction
91
<center>
96
<p class="wimscenter">
92
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
97
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
93
\position}
98
\position}
94
</center>
99
</p>
95
}
100
}
96
 
101
 
97
\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
102
\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
98
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
103
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
99
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}
104
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}