Skip to content

Touying笔记

Touying官方介绍

使用现有模板

#import "@preview/touying:0.6.1": *
#import themes.university: *

#show: university-theme.with(
  aspect-ratio: "4-3",
  config-info(
    title: [],
    subtitle: [],
    author: [],
    date: datetime.today(),
  ),
  config-colors(
    primary: rgb("#005fbf"),
    secondary: rgb("#003f88"), // 求是蓝
    tertiary: rgb("#005fbf"),
  )
)

分栏

#slide(composer: (38%, 62%))[左栏][右栏]

不显示一级标题

适用于幻灯片较短的情况。

#show: universiy-theme.with(
  // ... 前略
  config-common(new-section-slide-fn: none), // 新一级标题不单独成立一页
  header-right: "", // 一级标题不再显示在页面右上角
  // ... 后略
)

一级标题页也可以选择重载,参见文档

添加参考文献

与普通Typst文档一致。一个特性是如果要放到每页的脚注,可以在第一个子标题后添加:

== <第一个标题>
#show: magic.bibliography-as-footnote.with(bibliography("ref.bib", title: none))