Rev 2071 | Rev 5903 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
196 | bpr | 1 | |
3925 | bpr | 2 | <h3><center>在作业页展示中使用文件块</center></h3> |
196 | bpr | 3 | |
4 | 你可以把文件块的地址 |
||
5 | (例如 <tt>c1/main</tt>)作为作业页的展示页. |
||
6 | 文件本身对于参加者而言不必是可读的. |
||
7 | <p> |
||
8 | 如果你要使用标准的展示页, 可把这一栏留空. |
||
9 | <p> |
||
10 | 对个别练习的链接应该使用命令 |
||
11 | <tt>\exercise</tt> 定义. |
||
2071 | zjchen | 12 | 你可以使用以下预定义的变量: |
13 | <ul> |
||
14 | <li><tt>\scorerequire</tt> |
||
15 | 每个练习需要的分数. |
||
16 | </li> |
||
17 | <li><tt>\scoregot</tt> |
||
18 | 每个练习中参加者得到的分数 |
||
19 | </li> |
||
20 | <li><tt>\scoremean</tt> |
||
21 | 每个练习的参加者的平均分 |
||
22 | </li> |
||
23 | <li><tt>\expiration</tt> |
||
24 | 作业页的有效期, yyyymmdd |
||
25 | </li> |
||
26 | <li><tt>\today</tt> |
||
27 | 今天的日期, yyyymmdd |
||
28 | </li> |
||
196 | bpr | 29 | </ul> |
30 | 所有的得分参数都是数字的表, |
||
31 | 表的每个项对应于作业页的练习数. |
||
32 | |||
2071 | zjchen | 33 | <p> |
34 | <b>例</b> : 你正在创建第 5 个作业页. |
||
35 | 在文件块 </tt>c1/main</tt> 里, 记录着 |
||
36 | <pre> |
||
37 | \exercise{5/1} : 应得分 : \scorerequire[1] |
||
38 | 已得分 : \scoregot[1] |
||
39 | |||
40 | \exercise{5/2} : 应得分 : \scorerequire[2] |
||
41 | 已得分 : \scoregot[2] |
||
42 | |||
43 | \exercise{5/3}{另一标题} : 应得分 \scorerequire[3] ; |
||
44 | 已得分 \scoregot[3] |
||
45 | </pre> |
||
46 |