Subversion Repositories wimsdev

Rev

Rev 13704 | Rev 14929 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11375 bpr 1
type=classify
23 reyssat 2
textarea="data explain"
13715 obado 3
iEdit="explain"
23 reyssat 4
 
4131 bpr 5
:Match two items.
23 reyssat 6
 
4131 bpr 7
Items are presented in a table in two columns. Match the
8
items by clicking on the two items that correspond.
23 reyssat 9
<p>
13704 obado 10
To make an exercise with this model, type the list of matching items.
13477 obado 11
</p><p>
4131 bpr 12
With a slight modification, a variant of this exercise can accept images as items.
13477 obado 13
</p><p class="wims_credits">Author of the model: Gang Xiao <qualite@wimsedu.info></p>
23 reyssat 14
 
15
:%%%%%%%%%%%%%%%%%      ATTENTION      %%%%%%%%%%%%%%%%%%%%
16
 
4131 bpr 17
Remove the above header if you destroy the model tags i.e. the lines starting
18
with a ':'. Otherwise the exercise might not be recognised by Createxo.
23 reyssat 19
 
20
:%%%%%%%% Example parameters to be redefined %%%%%%%%%%%%%%%%%
21
 
22
:\title{Correspondance}
5147 bpr 23
:\author{Gang, Xiao}
8002 bpr 24
:\email{qualite@wimsedu.info}
5724 bpr 25
:\credits{}
23 reyssat 26
 
4131 bpr 27
:Number of (pairs of) matching items.
23 reyssat 28
\integer{tot=6}
29
 
4131 bpr 30
:The vertical size of labels in pixels.
31
Think of people who have to increase the font size of their browsers to see well!
32
Don't make the labels too small.
23 reyssat 33
\integer{sizev=50}
34
 
13704 obado 35
:The horizontal size of left boxes (in pixels).
4131 bpr 36
Think of people who have to increase the font size of their browsers to see well!
37
Don't make the labels too small.
23 reyssat 38
\integer{sizel=250}
39
 
13704 obado 40
:The horizontal size of right boxes (in pixels).
4131 bpr 41
Think of people who have to increase the font size of their browsers to see well!
42
Don't make the labels too small.
23 reyssat 43
\integer{sizer=250}
44
 
45
:Main data.
4131 bpr 46
Write one pair of corresponding items per line, separated by a comma.
8512 bpr 47
$embraced_randitem
23 reyssat 48
\matrix{data=
49
Germany,		Berlin
50
Australia,		Canberra
51
Canada,			Ottawa
52
China,			Beijing
53
Spain,			Madrid
54
United States,		Washington
55
France,			Paris
56
Great Britain,		London
57
India,			New Delhi
58
Indonesia,		Jacarta
59
Italy,			Rome
60
Japon,			Tokyo
61
Russia,			Moscow
62
}
63
 
13704 obado 64
:Instructions
23 reyssat 65
$embraced_randitem
4131 bpr 66
\text{explain=Match the countries and their
23 reyssat 67
capitals.}
68
 
11544 obado 69
:Embraced random items
8512 bpr 70
$embraced_randitem
71
 
11544 obado 72
\text{accolade=item(1,1 yes,
73
2 no)}
8512 bpr 74
 
23 reyssat 75
:%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%%
76
 
77
\integer{datacnt=rows(\data)}
78
\integer{tot=\tot>\datacnt?\datacnt}
79
 
80
\text{shuf=item(1..\tot,shuffle(\datacnt))}
81
\text{data=row(\shuf,\data)}
8512 bpr 82
\text{data=\accolade=1? wims(embraced randitem \data)}
83
 
23 reyssat 84
\text{datal=column(1,\data)}
85
\text{datar=column(2,\data)}
86
\text{size=\sizev[]x\sizel[]x\sizer}
8512 bpr 87
\text{explain=\accolade=1? wims(embraced randitem \explain)}
23 reyssat 88
 
89
:%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%%
90
 
91
::You don't need to modify this in general.
92
 
13704 obado 93
# The command to show the correspondance table is
94
# \embed{reply 1,\size}
23 reyssat 95
 
13704 obado 96
\statement{<div class="instructions">\explain</div>
8512 bpr 97
<div class="wimscenter">
23 reyssat 98
\embed{reply 1,\size}
8512 bpr 99
</div>
23 reyssat 100
}
101
 
102
:%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5
103
 
104
\answer{The reply}{\datal;\datar}{type=correspond}