Rev 11501 | Rev 13476 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11501 | Rev 12170 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | textarea="data" |
2 | textarea="data" |
3 | 3 | ||
4 | : |
4 | :Cronologia |
5 |
|
5 | Esdeveniments per ordenar-los cronològicament. |
6 | <p> |
6 | <p> |
7 |
|
7 | Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
8 | </p> |
8 | </p> |
9 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
9 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
10 | 10 | ||
11 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
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 ':'.) |
12 | (Ce sont les lignes qui commencent par un ':'.) |
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{ |
16 | :\title{Cronologia} |
17 | :\author{Bernadette, Perrin-Riou} |
17 | :\author{Bernadette, Perrin-Riou} |
18 | :\email{} |
18 | :\email{} |
19 | :\credits{} |
19 | :\credits{} |
20 | : |
20 | :Enunciat |
21 | \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.} |
22 | :Nombre |
22 | :Nombre màxim de paraules (màxim 10) |
23 | \text{N=5} |
23 | \text{N=5} |
24 | : |
24 | :Color de la fletxa |
25 | \text{couleur=orange} |
25 | \text{couleur=orange} |
26 | : |
26 | :Amplada de les etiquetes |
27 | \text{facteur=100} |
27 | \text{facteur=100} |
28 | : |
28 | :Alçada de les etiquetes |
29 | \integer{height=100} |
29 | \integer{height=100} |
30 | : |
30 | :Gruix de la fletxa |
31 |
|
31 | Poseu un enter entre 1 i 3 |
32 | \integer{wi=1} |
32 | \integer{wi=1} |
33 | : |
33 | :Utilitza els dos elements de les dades principals (0), només la primera columna (1), només la segona columna (2), mostra la primera columna i demana la primera columna (3). |
34 | \text{choix=0} |
34 | \text{choix=0} |
35 | : |
35 | :Dades principals. |
36 |
|
36 | Introduïu les dades en l'ordre que haurien d'aparèixer. |
37 | \text{data=1515,Bataille de Marignan |
37 | \text{data=1515,Bataille de Marignan |
38 | 1680,Création de la Comédie Française |
38 | 1680,Création de la Comédie Française |
39 | 1789,Révolution française |
39 | 1789,Révolution française |
40 | 1830,Les Trois Glorieuses |
40 | 1830,Les Trois Glorieuses |
41 | 1831,Révolte des Canuts à Lyon |
41 | 1831,Révolte des Canuts à Lyon |
42 | 1848,Décret abolissant l'esclavage |
42 | 1848,Décret abolissant l'esclavage |
43 | 1889,Inauguration de la tour Eiffel à Paris |
43 | 1889,Inauguration de la tour Eiffel à Paris |
44 | 1944,Les femmes acquièrent le droit de vote |
44 | 1944,Les femmes acquièrent le droit de vote |
45 | 1981,Abolition de la peine de mort} |
45 | 1981,Abolition de la peine de mort} |
46 | 46 | ||
47 | : |
47 | :S'accepta text aleatori posat entre claus |
- | 48 | $embraced_randitem |
|
- | 49 | \text{accolade=item(1,1 sí, |
|
- | 50 | 2 no)} |
|
48 | 51 | ||
- | 52 | :%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%% |
|
- | 53 | \text{accolade=wims(word 1 of \accolade)} |
|
49 | \real{M=\N-0.3} |
54 | \real{M=\N-0.3} |
50 | \text{xrange=-1,\N+1} |
55 | \text{xrange=-1,\N+1} |
51 | \text{ |
56 | \text{yrange=\choix iswordof 0 ? -5,5:-2,5} |
52 | \text{yrange=\choix=1 ? -5,2} |
57 | \text{yrange=\choix=1 ? -5,2} |
- | 58 | \text{yrange=\choix=3 ? -5,4} |
|
53 | \text{cnt=rows(\data)} |
59 | \text{cnt=rows(\data)} |
54 | \text{shu=shuffle(\cnt)} |
60 | \text{shu=shuffle(\cnt)} |
55 | \text{shu=\shu[1..\N]} |
61 | \text{shu=\shu[1..\N]} |
56 | \text{shu=wims(sort numeric item \shu)} |
62 | \text{shu=wims(sort numeric item \shu)} |
57 | \text{data=row([\shu],\data)} |
63 | \text{data=row([\shu],\data)} |
- | 64 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
|
58 | \matrix{rep=\data} |
65 | \matrix{rep=\data} |
59 | \integer{size=(1.5*\facteur)*(\M+1)} |
66 | \integer{size=(1.5*\facteur)*(\M+1)} |
60 | \integer{height2=4*\height} |
67 | \integer{height2=4*\height} |
61 | \text{size=\size,\height2} |
68 | \text{size=\size,\height2} |
62 | \text{fleche=xrange \xrange |
69 | \text{fleche=xrange \xrange |
63 | yrange \yrange |
70 | yrange \yrange |
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 |
71 | 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 |
65 | fill |
72 | fill 0,0,\couleur |
66 | } |
73 | } |
67 | 74 | ||
68 | \text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)} |
75 | \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)} |
76 | \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)} |
77 | \text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)} |
71 | \text{STEP=wims(makelist r x for x in \STEP)} |
78 | \text{STEP=wims(makelist r x for x in \STEP)} |
72 | \steps{\STEP} |
79 | \steps{\STEP} |
73 | \text{positionbas=} |
80 | \text{positionbas=} |
74 | \text{positionhaut=} |
81 | \text{positionhaut=} |
- | 82 | \text{positionbas2=} |
|
75 | \for{j=0 to \N-1}{ |
83 | \for{j=0 to \N-1}{ |
76 | \text{fleche=\choix=0 or \choix=1 ? \fleche |
84 | \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche |
77 | line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur} |
85 | line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur} |
78 | \text{fleche=\choix=0 or \choix=2 ? \fleche |
86 | \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche |
79 | line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur} |
87 | line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur} |
80 | \text{ans=pari([2*\j+1,2*\j+2])} |
88 | \text{ans=pari([2*\j+1,2*\j+2])} |
81 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
89 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
82 | \text{positionbas=\positionbas |
90 | \text{positionbas=\positionbas |
83 | r\ans[1],\v[1] x \v[2]} |
91 | r\ans[1],\v[1] x \v[2]} |
- | 92 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
|
- | 93 | \text{positionbas2=\positionbas2 |
|
- | 94 | r\ans[2],\v[1] x \v[2]} |
|
84 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
95 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
85 | \text{positionhaut=\positionhaut |
96 | \text{positionhaut=\positionhaut |
86 | r\ans[2],\v[1] x \v[2]} |
97 | r\ans[2],\v[1] x \v[2]} |
- | 98 | ||
- | 99 | \text{fleche=\choix=3? \fleche |
|
- | 100 | text black, \j-0.2,3,medium,\data[\j+1;1]} |
|
87 | } |
101 | } |
88 | \text{position=\choix=1 or \choix=0? \positionbas} |
102 | \text{position=\choix=1 or \choix=0? \positionbas} |
89 | \text{position=\choix=2 or \choix=0? \position |
103 | \text{position=\choix=2 or \choix=0? \position |
90 | \positionhaut} |
- | |
91 | text{position=\positionbas |
- | |
92 | \positionhaut} |
104 | \positionhaut} |
- | 105 | \text{position=\choix=3? \positionbas2} |
|
93 | \text{urlfleche=draw(\size |
106 | \text{urlfleche=draw(\size |
94 | \fleche)} |
107 | \fleche)} |
- | 108 | \statement{ |
|
95 |
|
109 | \instruction |
96 | <div class="wimscenter"> |
110 | <div class="wimscenter"> |
97 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
111 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
98 | \position} |
112 | \position} |
99 | </div> |
113 | </div> |
100 | } |
114 | } |