Skip to content

Commit e263574

Browse files
feat: 添加提示
1 parent 72ffa9e commit e263574

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/tutorial/doc-stateful.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#show: book.page.with(title: [状态化])
66

7+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
8+
79
在上一节中我们理解了作用域,也知道如何简单把「`show`」规则应用于文档中的部分内容。
810

911
它看起来似乎已经足够强大。但还有一种可能,Typst可以给你更强大的原语。

src/tutorial/scripting-content.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#show: book.page.with(title: "文档树")
44

5+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
6+
57
== 「可折叠」的值(Foldable)
68

79
先来看代码块。代码块其实就是一个脚本。既然是脚本,Typst就可以按照语句顺序依次执行「语句」。

src/tutorial/scripting-layout.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#show: book.page.with(title: "长度与布局")
44

5+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
6+
57
本章我们再度回到排版专题,拓宽制作文档的能力。
68

79
#let absent(content) = underline(offset: 1.5pt, underline(offset: 3pt, text(red, content)))

src/tutorial/scripting-main.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#show: book.page.with(title: "编译流程")
44

5+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
6+
57
经过几节稍显枯燥的脚本教程,我们继续回到排版本身。
68

79
#(refs.writing-markup)[《初识标记模式》]中,我们学到了很多各式各样的内容。我们学到了段落、标题、代码片段......

src/tutorial/scripting-shape.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#show: book.page.with(title: "图形排版")
44

5+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
6+
57
== 颜色类型
68

79
Typst只有一种颜色类型,其由两部分组成。

src/tutorial/scripting-style.typ

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#show: book.page.with(title: "选择器与样式")
44

5+
#todo-box[本节处于校对阶段,所以可能存在不完整或错误。]
6+
57
== 「样式化」内容
68

79
当我们有一个`repr`玩具的时候,总想着对着各种各样的对象使用`repr`。我们在上一节讲解了「`set`」和「`show`」语法。现在让我们稍微深挖一些。

0 commit comments

Comments
 (0)