当前位置:网站首页>用MarkDown写PPT
用MarkDown写PPT
2022-04-22 20:19:00 【山登绝顶我为峰 3(^v^)3】
Marpit
MarkDown是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。适合熟悉Tex文法的同学使用,可以参考菜鸟教程。本人习惯使用Typora实时渲染.md文件。
下载VScode,自动支持markdown渲染,也可以再安装一个Markdown All in One扩展。为了渲染出PPT,再安装Marpit的扩展:Marp for VS Code。
打开一个.md文件,可以在右上角发现如下两个按键:
- 打开侧边预览:可以预览
.md文件的渲染效果。 - Show Quick Pick Of Marp Commands:导出为
.pdf、.html的指令。
代码
---
marp: true
paginate: true
theme: default
style: |
section {
background-color: #eee;
color: #111;
width: 1280px;
height: 720px;
font-size: 32px;
padding: 80px;
}
h1 {
text-align: center;
font-size: 60px;
color: #000;
}
h2 {
text-align: center;
font-size: 50px;
color: #111;
}
p {
text-align: left;
font-size: 32px;
color: #111;
}
header,
footer {
font-size: 32px;
position: absolute;
left: 50px;
right: 50px;
height: 20px;
}
header {
top: 10px;
}
footer {
bottom: 40px;
}
section.封皮 h1 {
text-align: center;
background-color: #09c;
font-size: 60px;
color: #fff;
}
section.封皮 h2 {
text-align: center;
background-color: #09c;
font-size: 50px;
color: #eee;
}
section.封皮 p {
text-align: center;
font-size: 40px;
color: #000;
}
section.正文 h1 {
text-align: center;
font-size: 60px;
color: #000;
}
section.正文 h2 {
text-align: center;
font-size: 50px;
color: #111;
}
section.正文 p {
text-align: left;
font-size: 32px;
color: #111;
}
header: 'Header content'
footer: 'Footer content'
math: katex
---
<!-- _header: '' -->
<!-- _footer: '' -->
<!-- _paginate: false -->
<!-- _class: 封皮 -->
# 标题
## 标题2
标题3
---
<!-- class: 正文 -->
# 大标题
* One
* Two
* Three
## 小标题
这是正文段落。内嵌公式:$a^2+y=\alpha$
下边是独立公式:
$$
\{1,2,3\}
$$
---
# 可以P图
这是背景图片:
这是内嵌图片: 同一行的另一张内嵌图片: 
---
<!-- _backgroundColor: #fff -->
# Hex color (White BG + Black text)


---
# Named color (rebeccapurple BG + White text)


---
# RGB values (Orange BG + White text)
)
)
---



---



---


# Split + Multiple BGs
The space of a slide content will shrink to the left side.
效果

版权声明
本文为[山登绝顶我为峰 3(^v^)3]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44885334/article/details/124344449
边栏推荐
- File upload problem record
- Panyu maritime department has solidly promoted the 100 day action of safety education and training for water practitioners
- day29
- C process runs the asynchronous echo of CMD command
- 分库分表&百亿级数据迁移
- Lithography giant ASML broke the news: the chip is too short, and they are starting to dismantle the washing machine!
- Activity result API usage and source code analysis
- Timestamp conversion
- 第二章 数组
- 2022年土建施工员题库精准小题库建设厅施工员
猜你喜欢

分库分表&百亿级数据迁移
MySQL query data within a radius length of latitude and longitude

Android面试题之屏幕适配+AIDL篇

2022年土建施工员题库精准小题库建设厅施工员

第二章 数组

Review of SSM framework

See how big websites play the secret of website acceleration (CDN)

Operation and maintenance (33) centos7 6 deploy kubernetes cluster through kubedm

Chapter 2 array

TikTok+Shopify独立站测评,卖家新风口.
随机推荐
How to break the midlife crisis? Internet people look at it
Some operations of MySQL 5.6 under Linux
Markdown learning
什么是浏览器同源策略?
判断是否发生塑性变形的条件:von Mises屈服准则
KingbaseES中数据库启动安装程序方法
C语言位域应用--一个字节存八个标志位
模块四作业
Cannot proceed because system tables used by Event Scheduler were found damaged
第二章 数组
TikTok+Shopify独立站测评,卖家新风口.
C process runs the asynchronous echo of CMD command
Comparison and principle summary of golang local cache selection
微服务笔记合集
Thinking and summary of multi switch and multi service line design
运维(33) CentOS7.6通过Kubeadm部署Kubernetes集群
Write a gateway service, understand more thoroughly!
Application of C language bit field -- storing eight flag bits in one byte
About the reload of log4j2 and the output of different levels of logs to different log files
文件上传问题记录