Markdown是一种轻量级标记语言,创始人为约翰·格鲁伯。它允许人们使用易读易写的纯文本格式编写文档,然后转换成有效的XHTML(或者HTML)文档。[4]这种语言吸收了很多在电子邮件中已有的纯文本标记的特性。由于Markdown的轻量化、易读易写特性,并且对于图片,图表、数学式都有支持,目前许多网站都广泛使用Markdown来撰写帮助文档或是用于论坛上发表消息。如GitHub、Reddit、Discord、Diaspora、Stack Exchange、OpenStreetMap 、SourceForge、简书等,甚至还能被用来撰写电子书。(来自维基百科:https://zh.wikipedia.org/zh-cn/Markdown)
鉴于此,如果将此种便利性用于撰写PPT应该是会提供相当程度的便利性,特别是格式这一块。moffee 是一款开源幻灯片制作工具,可将markdown转化为简洁、专业的ppt。
使用方法
pip install moffee
moffee live example.md
工具支持大部分的markdown语法,同时也可以设置全局的格式
| Option | Description | Default Value | Available Options |
|---|---|---|---|
| theme | Visual theme for the presentation | default | default, beam, robo, blue, gaia |
| layout | HTML template for slide layout | content | content, centered |
| resource_dir | Base directory for relative URLs | . (current directory) | Any valid directory path |
| default_h1 | Inherit H1 from previous slides if not defined | false | true, false |
| default_h2 | Inherit H2 from previous slides if not defined | true | true, false |
| default_h3 | Inherit H3 from previous slides if not defined | true | true, false |
| aspect_ratio | Aspect ratio of the slides | "16:9" | "16:9", "4:3" |
| slide_width | Width of the slides | 720 | Any number |
| slide_height | Height of the slides | 405 | Any number |
---
theme:default
layout: content
resource_dir:"."
default_h1:false
default_h2:true
default_h3:true
aspect_ratio:"16:9"
slide_width:720
slide_width:405
---
layout: content
background-color: white//背景为白色
color: dark //设置字体为红色
theme: robo
layout: content
resource_dir:"."
default_h1:false
default_h2:true
default_h3:true
aspect_ratio:"16:9"

然后可以将字体设置为灰色,设置color: darkgray

然后通过---进行分页

还有其他的常规操作各位可以去进行尝试,最终效果如下:





目前此工具能生成的ppt只能是简约、干练的风格,如果要获得花里胡哨的风格,目前还很难做到,但是作为技术性的ppt已然够用。

1374

被折叠的 条评论
为什么被折叠?



