Skip to content

Commit 17c075d

Browse files
committed
fix
1 parent 17a5546 commit 17c075d

20 files changed

+41
-41
lines changed

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/build-your-own-theme.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ sidebar_position: 11
2121
如果你想在本地修改一个 Touying 内部的 themes,而不是自己从零开始创建,你可以选择通过下面的方式实现:
2222

2323
1.`themes` 目录下的 [主题代码](https://github.com/touying-typ/touying/tree/main/themes) 复制到本地,例如将 `themes/university.typ` 复制到本地 `university.typ` 中。
24-
2.`university.typ` 文件顶部的 `#import "../src/exports.typ": *` 命令替换为 `#import "@preview/touying:0.6.0": *`
24+
2.`university.typ` 文件顶部的 `#import "../src/exports.typ": *` 命令替换为 `#import "@preview/touying:0.5.5": *`
2525

2626
然后就可以通过
2727

2828
```typst
29-
#import "@preview/touying:0.6.0": *
29+
#import "@preview/touying:0.5.5": *
3030
#import "university.typ": *
3131
3232
#show: university-theme.with(
@@ -52,7 +52,7 @@ sidebar_position: 11
5252
如果只是你自己使用,你可以直接导入 Touying:
5353

5454
```typst
55-
#import "@preview/touying:0.6.0": *
55+
#import "@preview/touying:0.5.5": *
5656
```
5757

5858
如果你希望这个主题作为 Touying 的一部分,放置在 Touying `themes` 目录下,那你应该将上面的导入语句改为
@@ -76,7 +76,7 @@ sidebar_position: 11
7676

7777
```typst
7878
// bamboo.typ
79-
#import "@preview/touying:0.6.0": *
79+
#import "@preview/touying:0.5.5": *
8080
8181
#let bamboo-theme(
8282
aspect-ratio: "16-9",
@@ -97,7 +97,7 @@ sidebar_position: 11
9797
}
9898
9999
// main.typ
100-
#import "@preview/touying:0.6.0": *
100+
#import "@preview/touying:0.5.5": *
101101
#import "bamboo.typ": *
102102
103103
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -201,7 +201,7 @@ config-methods(alert: utils.alert-with-primary-color)
201201

202202
```typst
203203
// bamboo.typ
204-
#import "@preview/touying:0.6.0": *
204+
#import "@preview/touying:0.5.5": *
205205
206206
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
207207
if title != auto {
@@ -276,7 +276,7 @@ config-methods(alert: utils.alert-with-primary-color)
276276
277277
278278
// main.typ
279-
#import "@preview/touying:0.6.0": *
279+
#import "@preview/touying:0.5.5": *
280280
#import "bamboo.typ": *
281281
282282
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -301,7 +301,7 @@ A slide with a title and an *important* information.
301301

302302
```
303303
// bamboo.typ
304-
#import "@preview/touying:0.6.0": *
304+
#import "@preview/touying:0.5.5": *
305305
306306
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
307307
if title != auto {
@@ -418,7 +418,7 @@ A slide with a title and an *important* information.
418418
419419
420420
// main.typ
421-
#import "@preview/touying:0.6.0": *
421+
#import "@preview/touying:0.5.5": *
422422
#import "bamboo.typ": *
423423
424424
#show: bamboo-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ This is a significant disruptive version update. Touying has removed many mistak
8686
A simple usage example is shown below, and more examples can be found in the `examples` directory:
8787

8888
```typst
89-
#import "@preview/touying:0.6.0": *
89+
#import "@preview/touying:0.5.5": *
9090
#import themes.university: *
9191
9292
#show: university-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/code-styles.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 4
99
如果我们只是需要简单使用,我们可以直接在标题下输入内容,就像是在编写正常 Typst 文档一样。这里的标题有着分割页面的作用,同时我们也能正常地使用 `#pause` 等命令实现动画效果。
1010

1111
```typst
12-
#import "@preview/touying:0.6.0": *
12+
#import "@preview/touying:0.5.5": *
1313
#import themes.simple: *
1414
1515
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -32,7 +32,7 @@ Hello, Typst!
3232
如果我们需要维持当前标题,仅仅是想加入一个新页,我们可以使用 `#pagebreak()`,亦或者直接使用 `---` 来分割页面,后者在 Touying 中被解析为 `#pagebreak()`
3333

3434
```typst
35-
#import "@preview/touying:0.6.0": *
35+
#import "@preview/touying:0.5.5": *
3636
#import themes.simple: *
3737
3838
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -57,7 +57,7 @@ Hello, Typst!
5757
例如上面的例子就可以改造成
5858

5959
```typst
60-
#import "@preview/touying:0.6.0": *
60+
#import "@preview/touying:0.5.5": *
6161
#import themes.simple: *
6262
6363
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -92,7 +92,7 @@ Hello, Typst!
9292
如果我们不希望它自动创建这样一个 section slide,我们可以将这个方法删除:
9393

9494
```typst
95-
#import "@preview/touying:0.6.0": *
95+
#import "@preview/touying:0.5.5": *
9696
#import themes.simple: *
9797
9898
#show: simple-theme.with(
@@ -118,7 +118,7 @@ Hello, Typst!
118118
同理,我们也可以注册一个新的 section slide:
119119

120120
```typst
121-
#import "@preview/touying:0.6.0": *
121+
#import "@preview/touying:0.5.5": *
122122
#import themes.simple: *
123123
124124
#show: simple-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/dynamic/other.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Touying 还提供了 `touying-reducer`,它能为 cetz 与 fletcher 加入 `pau
1111
一个例子:
1212

1313
```typst
14-
#import "@preview/touying:0.6.0": *
14+
#import "@preview/touying:0.5.0": *
1515
#import themes.university: *
1616
#import "@preview/cetz:0.3.1"
1717
#import "@preview/fletcher:0.5.3" as fletcher: node, edge

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/external/pdfpc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./exampl
5454
借助 Touying 与 Polylux 的兼容性,你可以让 Polylux 也支持直接导出,只需要加入下面的代码即可。
5555

5656
```
57-
#import "@preview/touying:0.6.0"
57+
#import "@preview/touying:0.5.5"
5858
5959
#context touying.pdfpc.pdfpc-file(here())
6060
```

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/external/pympress.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar_position: 2
1010
## 笔记支持
1111

1212
```typst
13-
#import "@preview/touying:0.6.0": *
13+
#import "@preview/touying:0.5.5": *
1414
#import themes.university: *
1515
1616
#show: university-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/cetz.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Touying 提供了 `touying-reducer`,它能为 cetz 与 fletcher 加入 `pause`
1111
一个例子:
1212

1313
```typst
14-
#import "@preview/touying:0.6.0": *
14+
#import "@preview/touying:0.5.5": *
1515
#import themes.metropolis: *
1616
#import "@preview/cetz:0.3.1"
1717
#import "@preview/fletcher:0.5.3" as fletcher: node, edge

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/codly.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_position: 5
77
当我们使用 Codly 时,我们可以通过 `config-common(preamble: {..})` 初始化。
88

99
```typst
10-
#import "@preview/touying:0.6.0": *
10+
#import "@preview/touying:0.5.5": *
1111
#import themes.simple: *
1212
#import "@preview/codly:1.0.0": *
1313

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/ctheorems.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Touying 能够与 ctheorems 包一起正常工作,你可以直接使用 ctheor
99
其中,你还可以使用 `#set heading(numbering: "1.1")` 为 sections 和 subsections 设置 numbering。
1010

1111
```typst
12-
#import "@preview/touying:0.6.0": *
12+
#import "@preview/touying:0.5.5": *
1313
#import themes.university: *
1414
#import "@preview/ctheorems:1.1.3": *
1515
#import "@preview/numbly:0.1.0": numbly

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/fletcher.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Touying 提供了 `touying-reducer`,它能为 fletcher 加入 `pause` 和 `mea
99
一个例子:
1010

1111
```typst
12-
#import "@preview/touying:0.6.0": *
12+
#import "@preview/touying:0.5.5": *
1313
#import themes.metropolis: *
1414
#import "@preview/cetz:0.3.1"
1515
#import "@preview/fletcher:0.5.3" as fletcher: node, edge

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/integration/pinit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ A simple #pin(1)highlighted text#pin(2).
3636
一个与 Touying 共同使用的示例:
3737

3838
```typst
39-
#import "@preview/touying:0.6.0": *
39+
#import "@preview/touying:0.5.5": *
4040
#import themes.default: *
4141
#import "@preview/pinit:0.2.0": *
4242

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/multi-file.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Touying 有着如同原生 Typst 文档一般简洁的语法,以及繁多的
1919

2020
```typst
2121
// globals.typ
22-
#import "@preview/touying:0.6.0": *
22+
#import "@preview/touying:0.5.5": *
2323
#import themes.university: *
2424
2525
// as well as some utility functions

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/sections.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar_position: 3
1111
一般而言,1 级、2 级和 3 级标题分别用来对应 section、subsection 和 subsubsection,例如 dewdrop 主题。
1212

1313
```typst
14-
#import "@preview/touying:0.6.0": *
14+
#import "@preview/touying:0.5.5": *
1515
#import themes.dewdrop: *
1616
1717
#show: dewdrop-theme.with(aspect-ratio: "16-9")
@@ -30,7 +30,7 @@ Hello, Touying!
3030
但是很多时候我们并不需要 subsection,因此也会使用 1 级和 2 级标题来分别对应 section 和 title,例如 university 主题。
3131

3232
```typst
33-
#import "@preview/touying:0.6.0": *
33+
#import "@preview/touying:0.5.5": *
3434
#import themes.university: *
3535
3636
#show: university-theme.with(aspect-ratio: "16-9")
@@ -64,7 +64,7 @@ Hello, Touying!
6464
在 Touying 中显示目录很简单:
6565

6666
```typst
67-
#import "@preview/touying:0.6.0": *
67+
#import "@preview/touying:0.5.5": *
6868
#import themes.simple: *
6969
#import "@preview/numbly:0.1.0": numbly
7070

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/start.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 2
99
要使用 Touying,您只需要在文档里加入
1010

1111
```typst
12-
#import "@preview/touying:0.6.0": *
12+
#import "@preview/touying:0.5.5": *
1313
#import themes.simple: *
1414
1515
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -36,7 +36,7 @@ Hello, Typst!
3636
事实上,Touying 提供了多种 slides 编写风格,实际上您也可以使用 `#slide[..]` 的写法,以获得 Touying 提供的更多更强大的功能。
3737

3838
```typst
39-
#import "@preview/touying:0.6.0": *
39+
#import "@preview/touying:0.5.5": *
4040
#import themes.university: *
4141
#import "@preview/cetz:0.3.1"
4242
#import "@preview/fletcher:0.5.3" as fletcher: node, edge

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/aqua.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar_position: 5
1414
你可以通过下面的代码来初始化:
1515

1616
```typst
17-
#import "@preview/touying:0.6.0": *
17+
#import "@preview/touying:0.5.5": *
1818
#import themes.aqua: *
1919
2020
#show: aqua-theme.with(
@@ -107,7 +107,7 @@ Aqua 主题提供了一系列自定义 slide 函数:
107107
## 示例
108108

109109
```typst
110-
#import "@preview/touying:0.6.0": *
110+
#import "@preview/touying:0.5.5": *
111111
#import themes.aqua: *
112112
113113
#show: aqua-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/dewdrop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sidebar_position: 3
1515
你可以通过下面的代码来初始化:
1616

1717
```typst
18-
#import "@preview/touying:0.6.0": *
18+
#import "@preview/touying:0.5.5": *
1919
#import themes.dewdrop: *
2020
2121
#import "@preview/numbly:0.1.0": numbly
@@ -107,7 +107,7 @@ Dewdrop 主题提供了一系列自定义 slide 函数:
107107
## 示例
108108

109109
```typst
110-
#import "@preview/touying:0.6.0": *
110+
#import "@preview/touying:0.5.5": *
111111
#import themes.dewdrop: *
112112
113113
#import "@preview/numbly:0.1.0": numbly

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/metropolis.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sidebar_position: 2
1717
你可以通过下面的代码来初始化:
1818

1919
```typst
20-
#import "@preview/touying:0.6.0": *
20+
#import "@preview/touying:0.5.5": *
2121
#import themes.metropolis: *
2222
2323
#import "@preview/numbly:0.1.0": numbly
@@ -117,7 +117,7 @@ Metropolis 主题提供了一系列自定义 slide 函数:
117117
## 示例
118118

119119
```typst
120-
#import "@preview/touying:0.6.0": *
120+
#import "@preview/touying:0.5.5": *
121121
#import themes.metropolis: *
122122
123123
#import "@preview/numbly:0.1.0": numbly

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/simple.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sidebar_position: 1
1616
你可以通过下面的代码来初始化:
1717

1818
```typst
19-
#import "@preview/touying:0.6.0": *
19+
#import "@preview/touying:0.5.5": *
2020
#import themes.simple: *
2121
2222
#show: simple-theme.with(
@@ -84,7 +84,7 @@ simple 主题提供了一系列自定义 slide 函数:
8484
## 示例
8585

8686
```typst
87-
#import "@preview/touying:0.6.0": *
87+
#import "@preview/touying:0.5.5": *
8888
#import themes.simple: *
8989
9090
#show: simple-theme.with(

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/stargazer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar_position: 6
1414
你可以通过下面的代码来初始化:
1515

1616
```typst
17-
#import "@preview/touying:0.6.0": *
17+
#import "@preview/touying:0.5.5": *
1818
#import themes.stargazer: *
1919
2020
#import "@preview/numbly:0.1.0": numbly
@@ -125,7 +125,7 @@ Stargazer 主题提供了一系列自定义 slide 函数:
125125
## 示例
126126

127127
```typst
128-
#import "@preview/touying:0.6.0": *
128+
#import "@preview/touying:0.5.5": *
129129
#import themes.stargazer: *
130130
131131
#import "@preview/numbly:0.1.0": numbly

Diff for: i18n/zh/docusaurus-plugin-content-docs/version-0.5.x/themes/university.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sidebar_position: 4
1313
你可以通过下面的代码来初始化:
1414

1515
```typst
16-
#import "@preview/touying:0.6.0": *
16+
#import "@preview/touying:0.5.5": *
1717
#import themes.university: *
1818
1919
#import "@preview/numbly:0.1.0": numbly
@@ -129,7 +129,7 @@ University 主题提供了一系列自定义 slide 函数:
129129
## 示例
130130

131131
```typst
132-
#import "@preview/touying:0.6.0": *
132+
#import "@preview/touying:0.5.5": *
133133
#import themes.university: *
134134
135135
#import "@preview/numbly:0.1.0": numbly

0 commit comments

Comments
 (0)