Marp之简单编写PPT格式范例

Marp之简单编写PPT范例

准备知识

Marp了解+获取

01. 设置页面大小

宽屏代码:

<!-- $size: 16:9 -->或者默认标准屏<!-- $size: 4:3 -->

02.使用gaia主题风格

<!-- $theme: gaia -->

03. 设置页面

  1. 页面大小
<!-- $size: 16:9 -->
  1. 分页
大于等于:---

04. 页脚设置

  1. 写上页脚
<!-- footer: This is a footer -->
  1. 去掉页脚
<!-- footer:-->

05. 页码显示否设置

显示页码

注意本页右下角显示有了页码:<!-- page_number: true -->

只作用当前页

但命令中加了* 号则只影响当前页:<!-- *page_number: true -->

不显示页码:

不显示页码(全部):<!-- page_number: false -->
仅当前页不显示页码:<!-- *page_number: false -->

06. gaia主题模板反色命令是

gaia主题模板反色命令是:

<!-- *template: invert -->

其中* 表示只影响当前页。下同。
重新在后面页中显示页码:

<!-- page_number: true -->

07. gaia主题下使用gaia模板

gaia主题下使用gaia模板

<!-- *template: gaia -->

其中, * 号表示只影响本页, 若写为:

<!-- template: gaia -->

则后面的页都受该模板影响。

08. 恢复默认模板

通过命令:<!-- template: default -->即可恢复默认模板。同样:<!-- *template: default -->则只恢复本页为默认模
板。

09.数学公式使用LaTeX语法

这里写图片描述

10.字体的大小控制

使用html标记来控制字体大小 ,这是默认的正文字体。
大一点的字体用<big></big>标签得到,小一点的字体,使用<small></small>标签得到。

11.字体的位置控制

可以用<center></center>来设置字体对象居中。

12.横线表示法

使用<hr></hr>表示横线。

13.强调emph、加粗Bold和高亮

  1. 强调:*强调*
  2. 加粗:**加粗**
  3. 高亮:==高亮==

14.强制换行

使用代码<br/>实现强制换行。

15.用html标记灵活控制文字

背景颜色:<span style="background-color:green;"></span>
字体颜色+大小:<font color=Yellow size=7 face="黑体">黄色黑体Black,字号1到7 “size=7”</font>

16.表格

表格:用|分隔。例如:
这里写图片描述
代码:

|表头1 | 表头2|表头3:$\sqrt{x}$|
|----- | ------|----|
|Content Cell | Content Cell|Content Cell|
|Content Cell | Content Cell|Content Cell|

17.链接-直接在行内

这里写图片描述

18.链接-集中写

这里写图片描述

19.插图

插图支持很多格式png ,jpg,gif, svg等等,凡是html支持的都可以。其中svg是矢量格式,体积小有高清。gif是动画的。
插图语法:

![大小%](myimages/图文件路径和文件名字)例如![200%](myimages/wtclablogo.png)

说明
GIF动画输出不了到PDF,所以建议不用GIF.

20. 幻灯片文件导出为PDF

File—> Export Slides as PDF
这里写图片描述

21.引用

采用<引导,空行结束引用,引用的标点是自动加入。

猜你喜欢

转载自blog.csdn.net/jiajikang_jjk/article/details/80319059