Rev 8705 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8723 | zjchen | 1 | :signification |
2 | 在栏里填入数学公式里的回答类型. |
||
3 | 用于 OEF 练习的 <span class="tt wims_code_words">statement</span>. |
||
4 | |||
5 | <p> |
||
6 | 第一行使用 mathml 公式的格式, 并放在括号内, 接着是回答栏的大小 (必需). |
||
7 | 数学公式里应插入回答的地方请使用 reply<span class="tt">n</span>. |
||
8 | 接下去一行是如下形式 |
||
9 | <pre> |
||
10 | reply<span class="tt">n</span>, size, defaut, css |
||
11 | </pre> |
||
12 | 其中 <span class="tt">size</span> 是回答占用的空间大小 (非必需), |
||
13 | <span class="tt">defaut</span> 是在相应栏目里显示的文字 (非必需), |
||
14 | <span class="tt">css</span> 是 css 代码 (非必需). |
||
15 | </p> |
||
16 | :example |
||
17 | <span class="wims_help_example">例</span> |
||
18 | <div> |
||
19 | <textarea id="wims_show2" cols="100" rows="8" name="wims_show1" readonly="readonly"> |
||
20 | \statement{ |
||
21 | \special{mathmlinput [\frac{reply1}{reply2}], 5,noanswer |
||
22 | reply 1 |
||
23 | reply 2 |
||
24 | } |
||
25 | } |
||
26 | \answer{}{x^2}{type=formal} |
||
27 | \answer{}{2}{type=numeric} |
||
28 | </textarea> |
||
29 | </div> |
||
30 | <p> |
||
31 | 这个例子给出一个分数, 有两个回答栏, 分别表示分子与分母. |
||
32 | 两个栏分别对应回答 1 和 2 |
||
33 | (其类型可以是 <span class="tt wims_code_words">numeric</span>, <span class="tt wims_code_words">case</span> |
||
34 | <span class="tt wims_code_words">formal</span>, 等.) |
||
35 | 栏目大小是 5 个字符. |
||
36 | </p><div> |
||
37 | <textarea id="wims_show3" cols="100" rows="7" name="wims_show1" readonly="readonly"> |
||
38 | \statement{ |
||
39 | \special{mathmlinput [\frac{reply1}{reply2}], 4 |
||
40 | reply 1,10,??,color:blue;font-size:20px |
||
41 | reply 2} |
||
42 | } |
||
43 | \answer{}{x^2}{type=formal} |
||
44 | \answer{}{2}{type=numeric} |
||
45 | </textarea> |
||
46 | </div> |
||
47 | <p> |
||
48 | 这个例子中第一栏的大小是 10 个字符, |
||
49 | 包含在大小为 20 像素的红色问号中间. |
||
50 | </p> |
||
51 | 当回答错误时, 会在旁边显示正确的答案. |
||
52 | |||
53 | 正确答案会按文字中的公式显示. |
||
54 | 如不想让它出现, 可在第一行的栏目大小之后加上 <span class="tt wims_code_words">noanswer</span>. |
||
55 | |||
56 | <div> |
||
57 | <textarea id="wims_show4" cols="100" rows="7" name="wims_show1" readonly="readonly"> |
||
58 | \statement{ |
||
59 | \special{mathmlinput [\frac{reply1}{reply2}], 4,noanswer |
||
60 | reply 1,10,??,color:blue;font-size:20px |
||
61 | reply 2} |
||
62 | } |
||
63 | \answer{}{x^2}{type=formal} |
||
64 | \answer{}{2}{type=numeric} |
||
65 | </textarea> |
||
66 | </div> |