使用pandoc制作幻灯片

 

示例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://tex.stackexchange.com/questions/395625/im-unable-to-install-unicode-math-package-ubuntu-16-04

参考:

 

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

 

转载于:https://www.cnblogs.com/wybert/p/11523311.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值