Rev 15119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15119 | Rev 15176 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | :Seleccionar els objectes segons la seva categoria. |
5 | :Seleccionar els objectes segons la seva categoria. |
6 | 6 | ||
7 | Es presenta una llista d'objectes i s'han de marcar aquells que tenen una propietat determinada |
7 | Es presenta una llista d'objectes i s'han de marcar aquells que tenen una propietat determinada |
8 | segons la sol·licitud de l'exercici. <br/> |
8 | segons la sol·licitud de l'exercici. <br/> |
9 | Per construir un exercici amb aquest model, simplement doneu la llista d'objectes i les seves propietats. <br/> |
9 | Per construir un exercici amb aquest model, simplement doneu la llista d'objectes i les seves propietats. <br/> |
10 | Autor del model: |
10 | Autor del model: <a href="mailto:qualite@wimsedu.info">Gang Xiao</a> |
11 | 11 | ||
12 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
12 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
13 | 13 | ||
14 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
14 | Enlevez l'en-tête ci-dessus si vous détruisez les balises pour le modèle ! |
15 | (Ce sont les lignes qui commencent par un ':'.) |
15 | (Ce sont les lignes qui commencent par un ':'.) |
Line 125... | Line 125... | ||
125 | Afegiu aquí la paraula "liste" si voleu mostrar els objectes com una llista. |
125 | Afegiu aquí la paraula "liste" si voleu mostrar els objectes com una llista. |
126 | \text{presentation=} |
126 | \text{presentation=} |
127 | 127 | ||
128 | :S'accepta text aleatori posat entre claus |
128 | :S'accepta text aleatori posat entre claus |
129 | $embraced_randitem |
129 | $embraced_randitem |
130 | \text{accolade=item(1,1 sí, |
130 | \text{accolade=item(1,1. sí, |
131 | 2 no)} |
131 | 2. no)} |
132 | 132 | ||
133 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
133 | :%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%% |
134 | 134 | ||
135 | \text{prop=randitem(\prop)} |
135 | \text{prop=randitem(\prop)} |
136 | 136 | ||
Line 152... | Line 152... | ||
152 | \text{list=wims(values x for x=1 to \tot)} |
152 | \text{list=wims(values x for x=1 to \tot)} |
153 | \text{sh=shuffle(\list)} |
153 | \text{sh=shuffle(\list)} |
154 | \text{all=item(\sh,\all)} |
154 | \text{all=item(\sh,\all)} |
155 | \text{ind=item(\sh,\ind)} |
155 | \text{ind=item(\sh,\ind)} |
156 | \text{tomark=positionof(1,\ind)} |
156 | \text{tomark=positionof(1,\ind)} |
- | 157 | \integer{nbtomark=items(\tomark)} |
|
157 | 158 | ||
158 | :%% Choix de la presentation : sous forme lineaire par defaut, ou sous forme de liste à puces. |
159 | :%% Choix de la presentation : sous forme lineaire par defaut, ou sous forme de liste à puces. |
159 | \if{liste iswordof \presentation} |
160 | \if{liste iswordof \presentation} |
160 | { |
161 | { |
161 | \text{pre=<ul>} |
162 | \text{pre=<ul>} |
Line 179... | Line 180... | ||
179 | } |
180 | } |
180 | 181 | ||
181 | :%% Calculs à ne pas modifier |
182 | :%% Calculs à ne pas modifier |
182 | \text{accolade=wims(word 1 of \accolade)} |
183 | \text{accolade=wims(word 1 of \accolade)} |
183 | 184 | ||
184 | \text{explain=\accolade=1 ?wims(embraced randitem \explain)} |
185 | \text{explain=\accolade=1. ?wims(embraced randitem \explain)} |
- | 186 | :%% Pour la version latex de l'énonce |
|
- | 187 | \if{liste iswordof \presentation}{ |
|
- | 188 | \text{latextext=\begin{checkbox}} |
|
- | 189 | \for{ll=1 to \tot}{ |
|
- | 190 | \text{latextext=\latextext |
|
- | 191 | \item \all[\ll] } |
|
- | 192 | } |
|
- | 193 | \text{latextext=\latextext \end{checkbox}} |
|
- | 194 | }{ |
|
- | 195 | \text{latextext=\begin{quote}} |
|
- | 196 | \for{ll=1 to \tot-1}{ |
|
- | 197 | \text{latextext=\latextext \all[\ll], } |
|
- | 198 | } |
|
- | 199 | \text{latextext=\latextext \all[\tot]. |
|
- | 200 | \end{quote} } |
|
- | 201 | } |
|
- | 202 | \if{liste iswordof \presentation}{ |
|
- | 203 | \text{latexans=\begin{itemize}} |
|
- | 204 | \for{kls=1 to \nbtomark}{ |
|
- | 205 | \text{latexans=\latexans |
|
- | 206 | \item \all[\tomark[\kls]] } |
|
- | 207 | } |
|
- | 208 | \text{latexans=\latexans |
|
- | 209 | \end{itemize}} |
|
- | 210 | }{ |
|
- | 211 | \text{latexans=\begin{quote}} |
|
- | 212 | \for{lls=1 to \nbtomark-1}{ |
|
- | 213 | \text{latexans=\latexans \all[\tomark[\lls]], } |
|
- | 214 | } |
|
- | 215 | \text{latexans=\latexans \all[\tomark[\lls]]. |
|
- | 216 | \end{quote} } |
|
- | 217 | } |
|
185 | 218 | ||
186 | ::On n'a pas besoin de modifier l'énoncé directement en général. |
219 | ::On n'a pas besoin de modifier l'énoncé directement en général. |
187 | 220 | ||
188 | \statement{ |
221 | \statement{ |
189 | <p>\explain</p> |
222 | <p>\explain</p> |
190 | \pre |
223 | \pre |
191 | \for{k=1 to \tot-1}{\separatorL \embed{r1,\k} |
224 | \for{k=1 to \tot-1}{\separatorL \embed{r1,\k}, \separatorR } |
192 | \separatorL \embed{r1,\tot}.\separatorR |
225 | \separatorL \embed{r1,\tot}.\separatorR |
193 | \post |
226 | \post |
194 | } |
227 | } |
195 | 228 | ||
196 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
229 | :%%%%%%%%%%%%% Rien à modifier ci-après. %%%%%%%%%%%%%%%%%5 |
197 | 230 | ||
198 | \answer{Le marquage}{\tomark;\all}{type=mark}{option=\option} |
231 | \answer{Le marquage}{\tomark;\all}{type=mark}{option=\option} |
199 | 232 | ||
- | 233 | \latex{ |
|
- | 234 | \begin{statement} |
|
- | 235 | \explain |
|
- | 236 | \latextext |
|
- | 237 | \end{statement} |
|
- | 238 | \begin{answer}\ |
|
- | 239 | \latexans |
|
- | 240 | \end{answer} |
|
- | 241 | } |