Subversion Repositories wimsdev

Rev

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

Rev 13716 Rev 13725
Line 61... Line 61...
61
$embraced_randitem
61
$embraced_randitem
62
\text{accolade=item(1,1 sí,
62
\text{accolade=item(1,1 sí,
63
2 no)}
63
2 no)}
64
 
64
 
65
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
65
:%%%%%%%%%%%%%% Rien à modifier avant l'énoncé %%%%%%%%%%%%%%%%
66
\css{<style>
-
 
67
   .question {background-color: #FFFFCC;margin: 2% 2%;padding: 1%;}
-
 
68
   .reponse {background-color: #FFCC99;color: black;margin: 2% 2%;padding: 0%;}
-
 
69
   .oefstatement{}
-
 
70
   ol li {list-style: upper-alpha; }
-
 
71
 </style>}
66
 
72
 ##s'il y a un nom de fichier dans file, utilise le fichier, sinon utilise data
67
##s'il y a un nom de fichier dans file, utilise le fichier, sinon utilise data
73
\if{\file notsametext}{
68
\if{\file notsametext}{
74
  \text{data=wims(randrecord \file)}
69
  \text{data=wims(randrecord \file)}
75
  \text{Nature=wims(record 0 of \file)}
70
  \text{Nature=wims(record 0 of \file)}
76
  \text{nom_nature=row(2,\Nature)}
71
  \text{nom_nature=row(2,\Nature)}
77
  \text{Nature=row(1,\Nature)}
72
  \text{Nature=row(1,\Nature)}
78
  }{
73
}{
79
  \text{data=randomrow(\data)}
74
  \text{data=randomrow(\data)}
80
  }
75
}
81
\text{accolade=wims(word 1 of \accolade)}
76
\text{accolade=wims(word 1 of \accolade)}
82
 
77
 
83
\text{data=\accolade=1 ? wims(embraced randitem \data)}
78
\text{data=\accolade=1 ? wims(embraced randitem \data)}
84
\integer{cnt=items(\data)}
79
\integer{cnt=items(\data)}
85
\integer{Nat_cnt=items(\Nature)}
80
\integer{Nat_cnt=items(\Nature)}
Line 117... Line 112...
117
}
112
}
118
\integer{question_cnt=items(\question)}
113
\integer{question_cnt=items(\question)}
119
\steps{\Step}
114
\steps{\Step}
120
 
115
 
121
\statement{\instruction
116
\statement{\instruction
122
<div class="question">\phrase.</div>
117
<div class="oef_question">\phrase.</div>
123
<table class="wimsnoborder">
118
<table class="wimsnoborder">
124
\for{ s = 1 to \question_cnt}{
119
\for{ s = 1 to \question_cnt}{
125
  <tr><th>\nom_question[\s]</th><td>\embed{\Step[\s],80 x 30 x \cnt}</td></tr>
120
  <tr><th>\nom_question[\s]</th><td>\embed{\Step[\s],80 x 30 x \cnt}</td></tr>
126
}
121
}
127
</table>
122
</table>