Simple 主题
这个主题来源于 Polylux,作者是 Andreas Kröpelin。
这个主题被认为是一个相对简单的主题,你可以用它来创建一个简单 slides,并且可以随意加入你喜欢的功能。
初始化
你可以通过下面的代码来初始化:
#import "@preview/touying:0.6.3": *
#import themes.simple: *
#show: simple-theme.with(
aspect-ratio: "16-9",
footer: [Simple slides],
)
其中 register 接收参数:
aspect-ratio: 幻灯片的长宽比为 "16-9" 或 "4-3",默认为 "16-9"。header: 显示在页眉的内容,默认为utils.display-current-heading(setting: utils.fit-to-width.with(grow: false, 100%)),也可以传入形如self => self.info.title的函数。header-right: 展示在页眉右侧的内容,默认为self => self.info.logo。footer: 展示在页脚的内容,默认为[]