示例Md
% Habits
% John Doe
% March 22, 2005
# In the morning
## Getting up
- Turn off alarm
- Get out of bed
## Breakfast
- Eat eggs
- Drink coffee
# In the evening
## Dinner
- Eat spaghetti
- Drink wine
------------------
![UML attribute text](http://readus-org.qiniudn.com/img/uml-class-diagram/attribute-text.png)
## Going to sleep
- Get in bed
- Count sheep
pandoc 命令行:
pandoc -t beamer class2.md -o class2.pdf --slide-level=2 --pdf-engine=xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono'
pandoc -t revealjs -s -o class2.html class2.md -V revealjs-url=./reveal.js-master --slide-level=2
pandoc habits.txt -o habits.pptx
此外,如果遇到中文编码错误或者出现了 一些公式功能上的错误。
sudo apt install texlive-math-extra
参考:
https://pandoc.org/MANUAL.html#producing-slide-shows-with-pandoc
http://liumh.com/2014/07/05/pandoc-produce-slide-shows/#
https://github.com/jgm/pandoc/wiki/Using-pandoc-to-produce-reveal.js-slides
使用 pandoc编写一般是 markdown 而它可以转换成 ppt文件以及reveal.js
对于 reveal.js 也提供了很多的扩展,对着这些扩展可以使其功能更加的强大:
https://github.com/hakimel/reveal.js/wiki/Plugins,-Tools-and-Hardware
对于这里的插件发现一个很不错的mapbox插件:
https://lipov3cz3k.github.io/reveal.js-mapbox-gl-plugin/
比如
https://rajgoel.github.io/reveal.js-demos/chalkboard-demo.html#/1
测试了一下,可以直接修改 reveal.js的源码,这样就可以使用reveal的插件了
此外,对于rmarkdown 来说,可以直接使用这些插件
https://openscience.nuance-r.com/revealjs_presentation_format.html#installation