surveys.com.cn
Moodle中显示数学表达式
  • 提交:天一
  • 时间:08-04-27 23:01
  • 更新:08-04-27 23:01
原文地址:http://www.drgraph.com/viewthread.php?tid=12

Moodle中显示数学表达式


Moodle课程管理系统(CMS)是一个优秀的开源教学平台,在黎加厚教授、郭绍青教授等研究者的大力推广下,国内已经有不少学校开始采用Moodle平台开展网络教学。让Moodle支持数学公式,有两种方法:

(1) ASCIIMath2TeX过滤器法。具体方法为:下载ASCIIMath2TeX Moodle filter,并上传到Moodle网站filter文件夹;以管理员身份登陆Moodle平台,在管理 ? 设置 ? 过滤器中设置asciimath2tex为活跃的。需要注意的是,采用这种方法时,TeX指令描述的数学公式应该放在##…##之间,而不是前面所述的$…$之间,例如## f(x)=x^2-1 ##。

(2) ASCIIMath Image Fallback转换法。Moodle是一个开源系统,因此我们也可以通过修改源代码,使其支持数学公式的输入和显示。具体方法如下:(在Apache 2.2.0、MySQL 5.0.20、 PHP 5.1.2、Moodle 1.5.4环境下测试通过)

将ASCIIMathMLwFallback.js文件复制到当前主题风格文件夹下(如formal_white),修改该文件夹中的header.html文件,在第9行“</head>”语句之前增加一行PHP代码:




修改源代码:

< type="text/java" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/ASCIIMathMLwFallback.js"></>
修改之后,所有Moodle页面均可以显示TeX指令描述的数学公式

The Moodle filter is included in the http://www1.chapman.edu/~jipsen/mathml/asciimath.zip or http://www1.chapman.edu/~jipsen/mathml/asciimath.tar.gz file. Just unzip the files in the moodle/filter folder and switch the filter on.

文章推荐

    Loading...

人气排行

    Loading...
[ 简体中文 ] [ 简改蓝 ] 管理模式
Copyright ©2005 - 2008 www.emoodle.org
Processed in 0.008(s) Powered by Hutula 1.0

浙ICP备08007391号-1