Rev 13716 | 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 |
13716 | obado | 2 | textarea="data instruction" |
3 | iEdit="instruction" |
||
3426 | bpr | 4 | |
12170 | mquerol | 5 | :Cronologia |
6 | Esdeveniments per ordenar-los cronològicament. |
||
13476 | obado | 7 | <p class="wims_credits"> |
15179 | lemaire | 8 | Autor del model: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a> |
3426 | bpr | 9 | </p> |
10 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
||
11 | |||
12 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
||
13 | (Ce sont les lignes qui commencent par un ':'.) |
||
14 | Sinon l'exercice risque de ne pas pouvoir repasser sous Createxo. |
||
15 | |||
16 | :%%%%%%%% Paramètres d'exemples à redéfinir %%%%%%%%%%%%%%%%% |
||
12170 | mquerol | 17 | :\title{Cronologia} |
5147 | bpr | 18 | :\author{Bernadette, Perrin-Riou} |
5744 | bpr | 19 | :\email{} |
20 | :\credits{} |
||
13476 | obado | 21 | |
12170 | mquerol | 22 | :Enunciat |
3426 | bpr | 23 | \text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.} |
13476 | obado | 24 | |
12170 | mquerol | 25 | :Nombre màxim de paraules (màxim 10) |
3426 | bpr | 26 | \text{N=5} |
13476 | obado | 27 | |
12170 | mquerol | 28 | :Color de la fletxa |
3426 | bpr | 29 | \text{couleur=orange} |
13476 | obado | 30 | |
12170 | mquerol | 31 | :Amplada de les etiquetes |
3426 | bpr | 32 | \text{facteur=100} |
13476 | obado | 33 | |
12170 | mquerol | 34 | :Alçada de les etiquetes |
3426 | bpr | 35 | \integer{height=100} |
13476 | obado | 36 | |
12170 | mquerol | 37 | :Gruix de la fletxa |
38 | Poseu un enter entre 1 i 3 |
||
5744 | bpr | 39 | \integer{wi=1} |
13476 | obado | 40 | |
12170 | mquerol | 41 | :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). |
3541 | bpr | 42 | \text{choix=0} |
13476 | obado | 43 | |
12170 | mquerol | 44 | :Dades principals. |
45 | Introduïu les dades en l'ordre que haurien d'aparèixer. |
||
3426 | bpr | 46 | \text{data=1515,Bataille de Marignan |
47 | 1680,Création de la Comédie Française |
||
48 | 1789,Révolution française |
||
49 | 1830,Les Trois Glorieuses |
||
50 | 1831,Révolte des Canuts à Lyon |
||
51 | 1848,Décret abolissant l'esclavage |
||
52 | 1889,Inauguration de la tour Eiffel à Paris |
||
53 | 1944,Les femmes acquièrent le droit de vote |
||
54 | 1981,Abolition de la peine de mort} |
||
55 | |||
12170 | mquerol | 56 | :S'accepta text aleatori posat entre claus |
57 | $embraced_randitem |
||
58 | \text{accolade=item(1,1 sí, |
||
59 | 2 no)} |
||
60 | |||
3426 | bpr | 61 | :%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%% |
12170 | mquerol | 62 | \text{accolade=wims(word 1 of \accolade)} |
3426 | bpr | 63 | \real{M=\N-0.3} |
64 | \text{xrange=-1,\N+1} |
||
12170 | mquerol | 65 | \text{yrange=\choix iswordof 0 ? -5,5:-2,5} |
3541 | bpr | 66 | \text{yrange=\choix=1 ? -5,2} |
12170 | mquerol | 67 | \text{yrange=\choix=3 ? -5,4} |
3426 | bpr | 68 | \text{cnt=rows(\data)} |
69 | \text{shu=shuffle(\cnt)} |
||
70 | \text{shu=\shu[1..\N]} |
||
71 | \text{shu=wims(sort numeric item \shu)} |
||
72 | \text{data=row([\shu],\data)} |
||
12170 | mquerol | 73 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
3426 | bpr | 74 | \matrix{rep=\data} |
75 | \integer{size=(1.5*\facteur)*(\M+1)} |
||
76 | \integer{height2=4*\height} |
||
77 | \text{size=\size,\height2} |
||
78 | \text{fleche=xrange \xrange |
||
79 | yrange \yrange |
||
5744 | bpr | 80 | 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 |
12170 | mquerol | 81 | fill 0,0,\couleur |
3426 | bpr | 82 | } |
83 | |||
3541 | bpr | 84 | \text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)} |
85 | \text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)} |
||
12170 | mquerol | 86 | \text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)} |
3541 | bpr | 87 | \text{STEP=wims(makelist r x for x in \STEP)} |
3426 | bpr | 88 | \steps{\STEP} |
89 | \text{positionbas=} |
||
90 | \text{positionhaut=} |
||
12170 | mquerol | 91 | \text{positionbas2=} |
3426 | bpr | 92 | \for{j=0 to \N-1}{ |
12170 | mquerol | 93 | \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche |
5744 | bpr | 94 | line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur} |
12170 | mquerol | 95 | \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche |
5744 | bpr | 96 | line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur} |
3426 | bpr | 97 | \text{ans=pari([2*\j+1,2*\j+2])} |
12170 | mquerol | 98 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
99 | \text{positionbas=\positionbas |
||
100 | r\ans[1],\v[1] x \v[2]} |
||
3426 | bpr | 101 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
12170 | mquerol | 102 | \text{positionbas2=\positionbas2 |
103 | r\ans[2],\v[1] x \v[2]} |
||
104 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
||
105 | \text{positionhaut=\positionhaut |
||
3426 | bpr | 106 | r\ans[2],\v[1] x \v[2]} |
12170 | mquerol | 107 | |
108 | \text{fleche=\choix=3? \fleche |
||
109 | text black, \j-0.2,3,medium,\data[\j+1;1]} |
||
3426 | bpr | 110 | } |
12170 | mquerol | 111 | \text{position=\choix=1 or \choix=0? \positionbas} |
112 | \text{position=\choix=2 or \choix=0? \position |
||
3426 | bpr | 113 | \positionhaut} |
12170 | mquerol | 114 | \text{position=\choix=3? \positionbas2} |
3426 | bpr | 115 | \text{urlfleche=draw(\size |
116 | \fleche)} |
||
12170 | mquerol | 117 | \statement{ |
118 | \instruction |
||
6132 | bpr | 119 | <div class="wimscenter"> |
3426 | bpr | 120 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
121 | \position} |
||
6132 | bpr | 122 | </div> |
3426 | bpr | 123 | } |
3541 | bpr | 124 | |
3426 | bpr | 125 | \answer{}{\rep[1;1]}{type=clickfill}{option=shuffle} |
126 | \answer{}{\rep[1;2]}{type=clickfill}{option=shuffle} |
||
127 | \answer{}{\rep[2;1]}{type=clickfill}{option=shuffle} |
||
128 | \answer{}{\rep[2;2]}{type=clickfill}{option=shuffle} |
||
129 | \answer{}{\rep[3;1]}{type=clickfill}{option=shuffle} |
||
130 | \answer{}{\rep[3;2]}{type=clickfill}{option=shuffle} |
||
131 | \answer{}{\rep[4;1]}{type=clickfill}{option=shuffle} |
||
132 | \answer{}{\rep[4;2]}{type=clickfill}{option=shuffle} |
||
133 | \answer{}{\rep[5;1]}{type=clickfill}{option=shuffle} |
||
134 | \answer{}{\rep[5;2]}{type=clickfill}{option=shuffle} |
||
135 | \answer{}{\rep[6;1]}{type=clickfill}{option=shuffle} |
||
136 | \answer{}{\rep[6;2]}{type=clickfill}{option=shuffle} |
||
137 | \answer{}{\rep[7;1]}{type=clickfill}{option=shuffle} |
||
138 | \answer{}{\rep[7;2]}{type=clickfill}{option=shuffle} |
||
139 | \answer{}{\rep[8;1]}{type=clickfill}{option=shuffle} |
||
140 | \answer{}{\rep[8;2]}{type=clickfill}{option=shuffle} |
||
141 | \answer{}{\rep[9;1]}{type=clickfill}{option=shuffle} |
||
142 | \answer{}{\rep[9;2]}{type=clickfill}{option=shuffle} |
||
143 | \answer{}{\rep[10;1]}{type=clickfill}{option=shuffle} |
||
11501 | mquerol | 144 | \answer{}{\rep[10;2]}{type=clickfill}{option=shuffle} |