Skip to content

Commit 17c075d

Browse files
committed
fix
1 parent 17a5546 commit 17c075d

File tree

20 files changed

+41
-41
lines changed

20 files changed

+41
-41
lines changed

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

Lines changed: 9 additions & 9 deletions
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(

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

Lines changed: 1 addition & 1 deletion
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(

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

Lines changed: 5 additions & 5 deletions
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(

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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
```

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

Lines changed: 1 addition & 1 deletion
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(

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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

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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)