Subversion Repositories wimsdev

Rev

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

Rev 8002 Rev 8512
Line 45... Line 45...
45
Don't make the labels too small.
45
Don't make the labels too small.
46
\integer{sizer=250}
46
\integer{sizer=250}
47
 
47
 
48
:Main data.
48
:Main data.
49
Write one pair of corresponding items per line, separated by a comma.
49
Write one pair of corresponding items per line, separated by a comma.
-
 
50
$embraced_randitem
50
\matrix{data=
51
\matrix{data=
51
Germany,		Berlin
52
Germany,		Berlin
52
Australia,		Canberra
53
Australia,		Canberra
53
Canada,			Ottawa
54
Canada,			Ottawa
54
China,			Beijing
55
China,			Beijing
Line 65... Line 66...
65
 
66
 
66
:Text that explains what should be done.
67
:Text that explains what should be done.
67
$embraced_randitem
68
$embraced_randitem
68
\text{explain=Match the countries and their
69
\text{explain=Match the countries and their
69
capitals.}
70
capitals.}
-
 
71
 
-
 
72
:Mise en aléatoire par des accolades emboitables
-
 
73
$embraced_randitem
-
 
74
 
-
 
75
\text{accolade=item(1,1 oui,
-
 
76
2 non)}
-
 
77
 
-
 
78
\text{accolade=item(1,1 oui,
-
 
79
2 non)}
70
 
80
 
71
:%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%%
81
:%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%%
72
 
82
 
73
\integer{datacnt=rows(\data)}
83
\integer{datacnt=rows(\data)}
74
\integer{tot=\tot>\datacnt?\datacnt}
84
\integer{tot=\tot>\datacnt?\datacnt}
75
 
85
 
76
\text{shuf=item(1..\tot,shuffle(\datacnt))}
86
\text{shuf=item(1..\tot,shuffle(\datacnt))}
77
\text{data=row(\shuf,\data)}
87
\text{data=row(\shuf,\data)}
-
 
88
\text{data=\accolade=1? wims(embraced randitem \data)}
-
 
89
 
78
\text{datal=column(1,\data)}
90
\text{datal=column(1,\data)}
79
\text{datar=column(2,\data)}
91
\text{datar=column(2,\data)}
80
\text{size=\sizev[]x\sizel[]x\sizer}
92
\text{size=\sizev[]x\sizel[]x\sizer}
81
\text{explain=wims(embraced randitem \explain)}
93
\text{explain=\accolade=1? wims(embraced randitem \explain)}
82
 
94
 
83
:%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%%
95
:%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%%
84
 
96
 
85
::You don't need to modify this in general.
97
::You don't need to modify this in general.
86
 
98
 
87
The command to show the correspondance table, it is
99
The command to show the correspondance table, it is
88
\embed{reply 1,\size}
100
\embed{reply 1,\size}
89
 
101
 
90
\statement{\explain
102
\statement{\explain
91
 
103
 
92
<p class="wimscenter">
104
<div class="wimscenter">
93
\embed{reply 1,\size}
105
\embed{reply 1,\size}
94
</p>
106
</div>
95
 
107
 
96
}
108
}
97
 
109
 
98
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
110
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
99
 
111
 
100
\answer{The reply}{\datal;\datar}{type=correspond}
112
\answer{The reply}{\datal;\datar}{type=correspond}
101
 
-