Revealjs: 用Markdown来写PPT

Share:
# 简介 - PPT 往往对数学公式的支持很不友好,录入Latex格式的数学公式非常麻烦 - Markdown较好的支持了Latex数学公式 - Markdown可以快速的调整格式,比如 标题级别,列表 等等 # revealjs 这是一个Javascript 工程,用它可以将Markown转化为PPT,并用网页显示。 详细介绍: - https://revealjs.com/ 但是,对于新手来说,这个文档也显的不是很友好。下面我们来一步步的来做一下。 # 环境搭建 - 安装 [Node.js](https://nodejs.org/en/) (10.0.0 or later) - 安装real.js ```sh $ git clone https://github.com/hakimel/reveal.js.git $ cd reveal.js && npm install ``` - 启动 ```sh $ npm start ``` 打开 http://localhost:8000 来预览您的PPT. # 使用外部Markdown文件 - https://revealjs.com/markdown/ 示例程序在examples下面。 ```html
``` 把example.md替换成你的Markdown文件。 # 使用Latex 数学公式 - https://revealjs.com/math/ 在HTML中加入: ```html ``` 在Markdown中测试: ```sh ``$$ a^2=b $$`` ```

No comments