Rev 13715 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13715 | Rev 14929 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | items by clicking on the two items that correspond. |
8 | items by clicking on the two items that correspond. |
9 | <p> |
9 | <p> |
10 | To make an exercise with this model, type the list of matching items. |
10 | To make an exercise with this model, type the list of matching items. |
11 | </p><p> |
11 | </p><p> |
12 | With a slight modification, a variant of this exercise can accept images as items. |
12 | With a slight modification, a variant of this exercise can accept images as items. |
- | 13 | </p> |
|
- | 14 | ||
- | 15 | $image_help |
|
- | 16 | ||
13 |
|
17 | <p class="wims_credits">Author of the model: Gang Xiao <qualite@wimsedu.info></p> |
14 | 18 | ||
15 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
19 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
16 | 20 | ||
17 | Remove the above header if you destroy the model tags i.e. the lines starting |
21 | 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. |
22 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
Line 31... | Line 35... | ||
31 | Think of people who have to increase the font size of their browsers to see well! |
35 | Think of people who have to increase the font size of their browsers to see well! |
32 | Don't make the labels too small. |
36 | Don't make the labels too small. |
33 | \integer{sizev=50} |
37 | \integer{sizev=50} |
34 | 38 | ||
35 | :The horizontal size of left boxes (in pixels). |
39 | :The horizontal size of left boxes (in pixels). |
36 | Think of people who have to increase the font size of their browsers to see well! |
40 | Think of people who have to increase the font size of their browsers to see well! |
37 | Don't make the labels too small. |
41 | Don't make the labels too small. |
38 | \integer{sizel=250} |
42 | \integer{sizel=250} |
39 | 43 | ||
40 | :The horizontal size of right boxes (in pixels). |
44 | :The horizontal size of right boxes (in pixels). |
41 | Think of people who have to increase the font size of their browsers to see well! |
45 | Think of people who have to increase the font size of their browsers to see well! |
42 | Don't make the labels too small. |
46 | Don't make the labels too small. |
43 | \integer{sizer=250} |
47 | \integer{sizer=250} |
- | 48 | ||
- | 49 | :Feedback displayed in all cases after the learner's response. |
|
- | 50 | \text{feedback_general=} |
|
- | 51 | ||
- | 52 | :Instructions |
|
- | 53 | $embraced_randitem |
|
- | 54 | \text{explain=Match the countries and their capitals.} |
|
44 | 55 | ||
45 | :Main data. |
56 | :Main data. |
46 | Write one pair of corresponding items per line, separated by a comma. |
57 | Write one pair of corresponding items per line, separated by a comma. |
47 | $embraced_randitem |
58 | $embraced_randitem |
48 | \matrix{data= |
59 | \matrix{data= |
49 | Germany, Berlin |
60 | Germany, Berlin |
50 | Australia, Canberra |
61 | Australia, Canberra |
51 | Canada, Ottawa |
62 | Canada, Ottawa |
52 | China, Beijing |
63 | China, Beijing |
Line 58... | Line 69... | ||
58 | Indonesia, Jacarta |
69 | Indonesia, Jacarta |
59 | Italy, Rome |
70 | Italy, Rome |
60 | Japon, Tokyo |
71 | Japon, Tokyo |
61 | Russia, Moscow |
72 | Russia, Moscow |
62 | } |
73 | } |
63 | - | ||
64 | :Instructions |
- | |
65 | $embraced_randitem |
- | |
66 | \text{explain=Match the countries and their |
- | |
67 | capitals.} |
- | |
68 | 74 | ||
69 | :Embraced random items |
75 | :Embraced random items |
70 | $embraced_randitem |
76 | $embraced_randitem |
71 | 77 | ||
72 | \text{accolade=item(1,1 yes, |
78 | \text{accolade=item(1,1 yes, |
73 | 2 no)} |
79 | 2 no)} |
74 | 80 | ||
75 | :%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%% |
81 | :%%%%%%%%%%%%%% Nothing to modify before the statement %%%%%%%%%%%%%%%% |
76 | - | ||
- | 82 | \text{accolade=wims(word 1 of \accolade)} |
|
77 | \integer{datacnt=rows(\data)} |
83 | \integer{datacnt=rows(\data)} |
78 | \integer{tot=\tot>\datacnt?\datacnt} |
84 | \integer{tot=\tot>\datacnt?\datacnt} |
79 | 85 | ||
80 | \text{shuf=item(1..\tot,shuffle(\datacnt))} |
86 | \text{shuf=item(1..\tot,shuffle(\datacnt))} |
81 | \text{data=row(\shuf,\data)} |
87 | \text{data=row(\shuf,\data)} |
82 | \text{data=\accolade=1? wims(embraced randitem \data)} |
88 | \text{data=\accolade=1? wims(embraced randitem \data)} |
83 | - | ||
84 | \text{datal=column(1,\data)} |
89 | \text{datal=column(1,\data)} |
85 | \text{datar=column(2,\data)} |
90 | \text{datar=column(2,\data)} |
86 | \text{size=\sizev[]x\sizel[]x\sizer} |
91 | \text{size=\sizev[]x\sizel[]x\sizer} |
87 | \text{explain=\accolade=1? wims(embraced randitem \explain)} |
92 | \text{explain=\accolade=1? wims(embraced randitem \explain)} |
- | 93 | ||
- | 94 | # For Latex version |
|
- | 95 | \text{shuf2=shuffle(\tot)} |
|
- | 96 | \text{latexdatar=\datar[\shuf2]} |
|
- | 97 | \real{latexsizel=max(1,min(floor(\sizel/5)/10,6))} |
|
- | 98 | \real{latexsizer=max(1,min(floor(\sizer/5)/10,6))} |
|
- | 99 | \text{latexsrc=\begin{tabular}{p{\latexsizel cm}lp{1cm}lp{\latexsizer cm}}} |
|
- | 100 | \for{lk=1 to \tot}{ |
|
- | 101 | \text{latexsrc=\latexsrc \datal[\lk] &\(\bullet\) &&\(\bullet\) & \latexdatar[\lk]\\ [1.5ex] } |
|
- | 102 | } |
|
- | 103 | \text{latexsrc=\latexsrc \\ |
|
- | 104 | \end{tabular}} |
|
- | 105 | \text{latexsol=\begin{tabular}{p{\latexsizel cm}lp{\latexsizer cm}}} |
|
- | 106 | \for{lk=1 to \tot}{ |
|
- | 107 | \text{latexsol=\latexsol \datal[\lk] &\(\longleftrightarrow \)& \datar[\lk]\\ [1.5ex] } |
|
- | 108 | } |
|
- | 109 | \text{latexsol=\latexsol\\ |
|
- | 110 | \end{tabular}} |
|
88 | 111 | ||
89 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
112 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
90 | 113 | ||
91 | ::You don't need to modify this in general. |
114 | ::You don't need to modify this in general. |
92 | 115 | ||
Line 98... | Line 121... | ||
98 | \embed{reply 1,\size} |
121 | \embed{reply 1,\size} |
99 | </div> |
122 | </div> |
100 | } |
123 | } |
101 | 124 | ||
102 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
125 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
103 | - | ||
104 | \answer{The reply}{\datal;\datar}{type=correspond} |
126 | \answer{The reply}{\datal;\datar}{type=correspond} |
- | 127 | \feedback{\feedback_general notsametext }{<p class="feedback">\feedback_general</p>} |
|
- | 128 | ||
- | 129 | # Latex version |
|
- | 130 | \latex{ |
|
- | 131 | \begin{statement} |
|
- | 132 | \explain |
|
- | 133 | \begin{center} |
|
- | 134 | \latexsrc |
|
- | 135 | \end{center} |
|
- | 136 | \end{statement} |
|
- | 137 | \begin{solution}\ |
|
- | 138 | \begin{center} |
|
- | 139 | \latexsol |
|
- | 140 | \end{center} |
|
- | 141 | \end{solution} |
|
- | 142 | } |