Skip to content

Commit

Permalink
增加:使用MathJax渲染公式
Browse files Browse the repository at this point in the history
  • Loading branch information
jmxhyz committed Aug 14, 2015
1 parent 0b1ed54 commit a946d80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ppts/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ url: https://github.com/ksky521/nodePPT
transition: move
files: /js/demo.js,/css/demo.css,/js/zoom.js
theme: moon
usemathjax: yes

[slide]

Expand Down Expand Up @@ -41,6 +42,7 @@ url: https://github.com/ksky521/nodePPT
transition: 全局转场动画
files: 引入的js和css文件,多个以半角逗号隔开
hightStyle: 代码高亮样式,默认monokai_sublime
usemathjax: yes 启用MathJax渲染公式

/* 以[slide] 隔开每个ppt页面 */
[slide]
Expand All @@ -58,6 +60,10 @@ hightStyle: 代码高亮样式,默认monokai_sublime

# 支持单页添加背景图片 {:&.flexbox.vleft}
## 使用方法:[slide style="background-image:url('/img/bg1.png')"]
----
## 使用LaTex公式:
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. s = ut + \frac{1}{2}at^2 $$
矩阵:$ x = {\begin{bmatrix} 1 & 2 & 3 \\\\ 4 & 5 & 6 \end{bmatrix}} $

[slide]
## 支持.class/#id/自定义属性样式
Expand Down

0 comments on commit a946d80

Please sign in to comment.