用Emacs MUSE生成HTML报告时包含数学公式
2012-09-08 20:59
323 查看
需求如题,现在首先明白,最新版本的emacs自带了muse-latex2png.el文件。该程序会将latex转换成png,然后显示在html图片上。
在~/.emacs中添加:
(require 'muse-latex2png)但是依赖另一个程序转成png,在Ubuntu下安装:
apt-get install dvipng
好了,打开Muse文档,输入如下标记:
<latex>
\[
E = mc^2
\]
</latex>
会显示:
觉得生成的公式图片太大了?可以在~/.emacs中设置变量muse-latex2png-scale-factor的值。
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(muse-latex2png-scale-factor 1.2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
参考这篇文章,有一些选项设置可借鉴。
http://lifegoo.pluskid.org/wiki/MuseLatex2Png.html
在~/.emacs中添加:
(require 'muse-latex2png)但是依赖另一个程序转成png,在Ubuntu下安装:
apt-get install dvipng
好了,打开Muse文档,输入如下标记:
<latex>
\[
E = mc^2
\]
</latex>
会显示:
觉得生成的公式图片太大了?可以在~/.emacs中设置变量muse-latex2png-scale-factor的值。
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(muse-latex2png-scale-factor 1.2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
参考这篇文章,有一些选项设置可借鉴。
http://lifegoo.pluskid.org/wiki/MuseLatex2Png.html
相关文章推荐
- jmeter+ant+jenkins+mac 报告优化(三) 使用命令行执行jmeter方式生成多维度的图形化HTML报告
- Pycharm下HTMLTestRunner不生成测试报告
- Java和.Net版通用工具类实现--生成自定义Web Html/Excel测试用例和测试报告
- ant + findbugs 安装及实现静态代码检查,并生成HTML检查报告
- 记Selenium HTMLTestRunner 无法生成测试报告的总结
- PHP使用DOMDocument类生成HTML实例(包含常见标签元素)
- js生成html包含行内样式(兼容浏览器样式)无效问题
- word转html包含公式和图片
- jmeter压力测试,并使用命令生成详细的html报告
- android UiAutomator利用快速调试生成html文档测试报告
- 记Selenium_HTMLTestRunner 无法生成测试报告的总结
- 自动生成AWR HTML报告
- HTMLTestRunner模块--生成自动化测试报告
- 记Selenium HTMLTestRunner 无法生成测试报告的总结
- python selenium2示例 - 生成 HTMLTestRunner 测试报告
- 【2013-10-3前】博客中插入公式——之在线数学公式生成
- cucumber 生成html的报告:
- 混沌的艺术--- YChaos通过数学公式生成混沌图像