Rev 11501 | Rev 13476 | 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 | |||
12170 | mquerol | 4 | :Cronologia |
5 | Esdeveniments per ordenar-los cronològicament. |
||
3426 | bpr | 6 | <p> |
12170 | mquerol | 7 | Autor del model: Bernadette Perrin-Riou <bpr@math.u-psud.fr> |
3426 | bpr | 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 %%%%%%%%%%%%%%%%% |
||
12170 | mquerol | 16 | :\title{Cronologia} |
5147 | bpr | 17 | :\author{Bernadette, Perrin-Riou} |
5744 | bpr | 18 | :\email{} |
19 | :\credits{} |
||
12170 | mquerol | 20 | :Enunciat |
3426 | bpr | 21 | \text{instruction=Mettre les dates en bas et les événements correspondants sur la ligne du haut.} |
12170 | mquerol | 22 | :Nombre màxim de paraules (màxim 10) |
3426 | bpr | 23 | \text{N=5} |
12170 | mquerol | 24 | :Color de la fletxa |
3426 | bpr | 25 | \text{couleur=orange} |
12170 | mquerol | 26 | :Amplada de les etiquetes |
3426 | bpr | 27 | \text{facteur=100} |
12170 | mquerol | 28 | :Alçada de les etiquetes |
3426 | bpr | 29 | \integer{height=100} |
12170 | mquerol | 30 | :Gruix de la fletxa |
31 | Poseu un enter entre 1 i 3 |
||
5744 | bpr | 32 | \integer{wi=1} |
12170 | mquerol | 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). |
3541 | bpr | 34 | \text{choix=0} |
12170 | mquerol | 35 | :Dades principals. |
36 | Introduïu les dades en l'ordre que haurien d'aparèixer. |
||
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 | |||
12170 | mquerol | 47 | :S'accepta text aleatori posat entre claus |
48 | $embraced_randitem |
||
49 | \text{accolade=item(1,1 sí, |
||
50 | 2 no)} |
||
51 | |||
3426 | bpr | 52 | :%%%%%%%%%%%%%% Rien à modifier ensuite %%%%%%%%%%%%%%%% |
12170 | mquerol | 53 | \text{accolade=wims(word 1 of \accolade)} |
3426 | bpr | 54 | \real{M=\N-0.3} |
55 | \text{xrange=-1,\N+1} |
||
12170 | mquerol | 56 | \text{yrange=\choix iswordof 0 ? -5,5:-2,5} |
3541 | bpr | 57 | \text{yrange=\choix=1 ? -5,2} |
12170 | mquerol | 58 | \text{yrange=\choix=3 ? -5,4} |
3426 | bpr | 59 | \text{cnt=rows(\data)} |
60 | \text{shu=shuffle(\cnt)} |
||
61 | \text{shu=\shu[1..\N]} |
||
62 | \text{shu=wims(sort numeric item \shu)} |
||
63 | \text{data=row([\shu],\data)} |
||
12170 | mquerol | 64 | \text{data=\accolade=1 ? wims(embraced randitem \data)} |
3426 | bpr | 65 | \matrix{rep=\data} |
66 | \integer{size=(1.5*\facteur)*(\M+1)} |
||
67 | \integer{height2=4*\height} |
||
68 | \text{size=\size,\height2} |
||
69 | \text{fleche=xrange \xrange |
||
70 | yrange \yrange |
||
5744 | bpr | 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 |
12170 | mquerol | 72 | fill 0,0,\couleur |
3426 | bpr | 73 | } |
74 | |||
3541 | bpr | 75 | \text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)} |
76 | \text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)} |
||
12170 | mquerol | 77 | \text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)} |
3541 | bpr | 78 | \text{STEP=wims(makelist r x for x in \STEP)} |
3426 | bpr | 79 | \steps{\STEP} |
80 | \text{positionbas=} |
||
81 | \text{positionhaut=} |
||
12170 | mquerol | 82 | \text{positionbas2=} |
3426 | bpr | 83 | \for{j=0 to \N-1}{ |
12170 | mquerol | 84 | \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche |
5744 | bpr | 85 | line \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur} |
12170 | mquerol | 86 | \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche |
5744 | bpr | 87 | line \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur} |
3426 | bpr | 88 | \text{ans=pari([2*\j+1,2*\j+2])} |
12170 | mquerol | 89 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
90 | \text{positionbas=\positionbas |
||
91 | r\ans[1],\v[1] x \v[2]} |
||
3426 | bpr | 92 | \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)} |
12170 | mquerol | 93 | \text{positionbas2=\positionbas2 |
94 | r\ans[2],\v[1] x \v[2]} |
||
95 | \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)} |
||
96 | \text{positionhaut=\positionhaut |
||
3426 | bpr | 97 | r\ans[2],\v[1] x \v[2]} |
12170 | mquerol | 98 | |
99 | \text{fleche=\choix=3? \fleche |
||
100 | text black, \j-0.2,3,medium,\data[\j+1;1]} |
||
3426 | bpr | 101 | } |
12170 | mquerol | 102 | \text{position=\choix=1 or \choix=0? \positionbas} |
103 | \text{position=\choix=2 or \choix=0? \position |
||
3426 | bpr | 104 | \positionhaut} |
12170 | mquerol | 105 | \text{position=\choix=3? \positionbas2} |
3426 | bpr | 106 | \text{urlfleche=draw(\size |
107 | \fleche)} |
||
12170 | mquerol | 108 | \statement{ |
109 | \instruction |
||
6132 | bpr | 110 | <div class="wimscenter"> |
3426 | bpr | 111 | \special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height |
112 | \position} |
||
6132 | bpr | 113 | </div> |
3426 | bpr | 114 | } |
3541 | bpr | 115 | |
3426 | bpr | 116 | \answer{}{\rep[1;1]}{type=clickfill}{option=shuffle} |
117 | \answer{}{\rep[1;2]}{type=clickfill}{option=shuffle} |
||
118 | \answer{}{\rep[2;1]}{type=clickfill}{option=shuffle} |
||
119 | \answer{}{\rep[2;2]}{type=clickfill}{option=shuffle} |
||
120 | \answer{}{\rep[3;1]}{type=clickfill}{option=shuffle} |
||
121 | \answer{}{\rep[3;2]}{type=clickfill}{option=shuffle} |
||
122 | \answer{}{\rep[4;1]}{type=clickfill}{option=shuffle} |
||
123 | \answer{}{\rep[4;2]}{type=clickfill}{option=shuffle} |
||
124 | \answer{}{\rep[5;1]}{type=clickfill}{option=shuffle} |
||
125 | \answer{}{\rep[5;2]}{type=clickfill}{option=shuffle} |
||
126 | \answer{}{\rep[6;1]}{type=clickfill}{option=shuffle} |
||
127 | \answer{}{\rep[6;2]}{type=clickfill}{option=shuffle} |
||
128 | \answer{}{\rep[7;1]}{type=clickfill}{option=shuffle} |
||
129 | \answer{}{\rep[7;2]}{type=clickfill}{option=shuffle} |
||
130 | \answer{}{\rep[8;1]}{type=clickfill}{option=shuffle} |
||
131 | \answer{}{\rep[8;2]}{type=clickfill}{option=shuffle} |
||
132 | \answer{}{\rep[9;1]}{type=clickfill}{option=shuffle} |
||
133 | \answer{}{\rep[9;2]}{type=clickfill}{option=shuffle} |
||
134 | \answer{}{\rep[10;1]}{type=clickfill}{option=shuffle} |
||
11501 | mquerol | 135 | \answer{}{\rep[10;2]}{type=clickfill}{option=shuffle} |