用 Markdown 高效地写幻灯片
2015-08-04 15:12
459 查看
转载至:http://www.tinylab.org/use-markdown-to-write-slides/
【背景:笔者用 M$ PowerPoint, Libreoffice Draw, Latex 等写过幻灯,没有一个是令人省心的工具,没有一个能让人专注于内容创作本身。繁杂的格式、字体、以及所谓特效调节让人困惑烦恼,自从有了 Markdown,让思绪自由流畅不受阻,让创作回归内容本身,把那些繁杂的演示效果交给其他专业的人士打理就好。】
目录 [隐藏]
1 准备环境
1.1 安装pandoc
1.2 安装Latex以及中文支持
1.3 安装Beamer
1.4 安装字体
1.5 配置字体
2 编写幻灯
2.1 幻灯首页
2.2 幻灯正文
3 格式转换
3.1 生成pdf
3.2 生成html
4 实例
4.1 以本文稿为例
5 参考资料
以Ubuntu为例
其他平台请参考pandoc首页
以Ubuntu为例
相关用法与实例
实例配置:需配置zh_template.tex如下:
作者
日期
例如:
支持如下语法
Markdown基本语法
Pandoc Markdown语法
Latex语法:1,2
实例
原生命令
原始命令
下载 Markdown 幻灯模板
编译成 pdf & html
浏览
Write
Beamer or Html slide using Markdown and Pandoc
Producing slide
shows with pandoc
【背景:笔者用 M$ PowerPoint, Libreoffice Draw, Latex 等写过幻灯,没有一个是令人省心的工具,没有一个能让人专注于内容创作本身。繁杂的格式、字体、以及所谓特效调节让人困惑烦恼,自从有了 Markdown,让思绪自由流畅不受阻,让创作回归内容本身,把那些繁杂的演示效果交给其他专业的人士打理就好。】
目录 [隐藏]
1 准备环境
1.1 安装pandoc
1.2 安装Latex以及中文支持
1.3 安装Beamer
1.4 安装字体
1.5 配置字体
2 编写幻灯
2.1 幻灯首页
2.2 幻灯正文
3 格式转换
3.1 生成pdf
3.2 生成html
4 实例
4.1 以本文稿为例
5 参考资料
准备环境
安装pandoc
以Ubuntu为例12 | sudo apt-get install pandoc |
安装Latex以及中文支持
以Ubuntu为例1 2 3 4 5 6 7 8 9 | $ sudo apt-get install texlive-xetex \ texlive-latex-recommended \ texlive-latex-extra \ latex-cjk-common latex-cjk-chinese \ latex-cjk-chinese-arphic-bkai00mp \ latex-cjk-chinese-arphic-bsmi00lp \ latex-cjk-chinese-arphic-gbsn00lp \ latex-cjk-chinese-arphic-gkai00mp \ |
安装Beamer
以Ubuntu为例12 | sudo apt-get install latex-beamer |
1 2 3 4 5 | $ ls /usr/share/doc/latex-beamer/ beameruserguide.pdf.gz examples solutions |
安装字体
12345678 | $ sudo apt-get install \ fonts-arphic-bkai00mp \ fonts-arphic-bsmi00lp \ fonts-arphic-gbsn00lp \ fonts-arphic-gkai00mp \ ttf-wqy-microhei \ ttf-wqy-zenhei |
配置字体
列出可选字体1 2 | $ fc-list | egrep "wqy|AR" |
12 | \setCJKmainfont{AR PL KaitiM GB} % 中文字体 |
编写幻灯
幻灯首页
前三行分别对应标题作者
日期
例如:
1 2 3 4 | % Markdown+Beamer+Pandoc幻灯片模板 % 吴章金 @ 泰晓科技 | TinyLab.org % \today |
幻灯正文
支持如下语法Markdown基本语法
Pandoc Markdown语法
Latex语法:1,2
实例
1234567 | # In the morning ## Getting up - Turn off alarm- Get out of bed |
格式转换
生成pdf
利用该模板1 2 | $ make & make read |
1234567 | $ pandoc -t beamer --toc \ -V theme:Darmstadt \ -V fontsize:9pt \ slides.md -o slides.pdf \ --latex-engine=xelatex \ --template=./templates/zh_template.tex |
生成html
利用该模板$ make html & make read-html原始命令
1 2 3 | $ pandoc -t dzslides -s --mathjax \ slides.md -o slides.html |
实例
以本文稿为例
下载 Markdown 幻灯模板12 | $ git clone https://github.com/tinyclub/markdown-slides.git |
1 2 | $ make |
1 2 | $ make read & make read-html |
参考资料
WriteBeamer or Html slide using Markdown and Pandoc
Producing slide
shows with pandoc
相关文章推荐
- Android中Acition和Category常量表
- POJ3259
- heartbeat实现Nginx高可用
- pcl 无法解析的外部符号
- SQL server字段名中有数据类型为text时,adoquery->fieldbyname->asstring取不到全部值
- Java 中byte 与 char 的相互转换
- UITools
- Mysql 启动异常
- 对于数组知识的补救示例与分享
- 顺序表
- 测试 hosts
- 【CodeVS2885】钉子与小球
- Java - Thinking in Java 第6章 访问权限控制
- 调用动态链接库中的方法。
- GIT和SVN之间的五个基本区别
- 如何更新远程主机上的 Linux 内核
- hd2098 分拆素数和
- ROS学习--(十六)roswtf
- springMVC学习笔记---controller中实现多个方法
- Java MongoDB插入