Skip to content

Typst排版、字体等设置(自用)

typst
#show regex("[\p{scx:Han}]"): set text(font: "Noto Sans CJK SC")
  • 缩页设置
typst
#set text(size: 10pt)
#set page(margin: 1cm, columns: 2)
  • 花哨页边
typst
#set text(
  lang: "en",
  region: "us",
  font: ("Libertinus Serif", "Fira Mono")
)

#set page(
  header: [
    #set text(10pt)
    #h(2fr) _Chapter indicator_
  ],
  numbering: "1 / 1",
)
  • 自动节标号
typst
#set heading(numbering: "1.")