@@ -21,12 +21,12 @@ sidebar_position: 11
21
21
如果你想在本地修改一个 Touying 内部的 themes,而不是自己从零开始创建,你可以选择通过下面的方式实现:
22
22
23
23
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 ": * `
25
25
26
26
然后就可以通过
27
27
28
28
``` typst
29
- #import "@preview/touying:0.6.0 ": *
29
+ #import "@preview/touying:0.5.5 ": *
30
30
#import "university.typ": *
31
31
32
32
#show: university-theme.with(
@@ -52,7 +52,7 @@ sidebar_position: 11
52
52
如果只是你自己使用,你可以直接导入 Touying:
53
53
54
54
``` typst
55
- #import "@preview/touying:0.6.0 ": *
55
+ #import "@preview/touying:0.5.5 ": *
56
56
```
57
57
58
58
如果你希望这个主题作为 Touying 的一部分,放置在 Touying ` themes ` 目录下,那你应该将上面的导入语句改为
@@ -76,7 +76,7 @@ sidebar_position: 11
76
76
77
77
``` typst
78
78
// bamboo.typ
79
- #import "@preview/touying:0.6.0 ": *
79
+ #import "@preview/touying:0.5.5 ": *
80
80
81
81
#let bamboo-theme(
82
82
aspect-ratio: "16-9",
@@ -97,7 +97,7 @@ sidebar_position: 11
97
97
}
98
98
99
99
// main.typ
100
- #import "@preview/touying:0.6.0 ": *
100
+ #import "@preview/touying:0.5.5 ": *
101
101
#import "bamboo.typ": *
102
102
103
103
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -201,7 +201,7 @@ config-methods(alert: utils.alert-with-primary-color)
201
201
202
202
``` typst
203
203
// bamboo.typ
204
- #import "@preview/touying:0.6.0 ": *
204
+ #import "@preview/touying:0.5.5 ": *
205
205
206
206
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
207
207
if title != auto {
@@ -276,7 +276,7 @@ config-methods(alert: utils.alert-with-primary-color)
276
276
277
277
278
278
// main.typ
279
- #import "@preview/touying:0.6.0 ": *
279
+ #import "@preview/touying:0.5.5 ": *
280
280
#import "bamboo.typ": *
281
281
282
282
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -301,7 +301,7 @@ A slide with a title and an *important* information.
301
301
302
302
```
303
303
// bamboo.typ
304
- #import "@preview/touying:0.6.0 ": *
304
+ #import "@preview/touying:0.5.5 ": *
305
305
306
306
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
307
307
if title != auto {
@@ -418,7 +418,7 @@ A slide with a title and an *important* information.
418
418
419
419
420
420
// main.typ
421
- #import "@preview/touying:0.6.0 ": *
421
+ #import "@preview/touying:0.5.5 ": *
422
422
#import "bamboo.typ": *
423
423
424
424
#show: bamboo-theme.with(
0 commit comments