File tree 8 files changed +152
-4
lines changed
i18n/zh/docusaurus-plugin-content-docs
version-0.5.x/integration
versioned_docs/version-0.5.x/integration
8 files changed +152
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ sidebar_position : 5
3
+ ---
4
+
5
+ # Codly
6
+
7
+ When using Codly, we should initialize it using the ` config-common(preamble: {..}) ` method.
8
+
9
+ ``` typst
10
+ #import "@preview/touying:0.5.2": *
11
+ #import themes.simple: *
12
+ #import "@preview/codly:1.0.0": *
13
+
14
+ #show: codly-init.with()
15
+
16
+ #show: simple-theme.with(
17
+ aspect-ratio: "16-9",
18
+ config-common(preamble: {
19
+ codly(languages: (
20
+ rust: (
21
+ name: "Rust",
22
+ icon: text(font: "tabler-icons", "\u{fa53}"),
23
+ color: rgb("#CE412B"),
24
+ ),
25
+ ))
26
+ }),
27
+ )
28
+
29
+ == First slide
30
+
31
+ #raw(lang: "rust", block: true,
32
+ `pub fn main() {
33
+ println!("Hello, world!");
34
+ }`.text)
35
+ ```
36
+
37
+ ![ image] ( https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a )
Original file line number Diff line number Diff line change 1
1
---
2
- sidebar_position : 5
2
+ sidebar_position : 6
3
3
---
4
4
5
5
# Ctheorems
Original file line number Diff line number Diff line change
1
+ ---
2
+ sidebar_position : 5
3
+ ---
4
+
5
+ # Codly
6
+
7
+ 当我们使用 Codly 时,我们可以通过 ` config-common(preamble: {..}) ` 初始化。
8
+
9
+ ``` typst
10
+ #import "@preview/touying:0.5.2": *
11
+ #import themes.simple: *
12
+ #import "@preview/codly:1.0.0": *
13
+
14
+ #show: codly-init.with()
15
+
16
+ #show: simple-theme.with(
17
+ aspect-ratio: "16-9",
18
+ config-common(preamble: {
19
+ codly(languages: (
20
+ rust: (
21
+ name: "Rust",
22
+ icon: text(font: "tabler-icons", "\u{fa53}"),
23
+ color: rgb("#CE412B"),
24
+ ),
25
+ ))
26
+ }),
27
+ )
28
+
29
+ == First slide
30
+
31
+ #raw(lang: "rust", block: true,
32
+ `pub fn main() {
33
+ println!("Hello, world!");
34
+ }`.text)
35
+ ```
36
+
37
+ ![ image] ( https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a )
Original file line number Diff line number Diff line change 1
1
---
2
- sidebar_position : 5
2
+ sidebar_position : 6
3
3
---
4
4
5
5
# Ctheorems
Original file line number Diff line number Diff line change
1
+ ---
2
+ sidebar_position : 5
3
+ ---
4
+
5
+ # Codly
6
+
7
+ 当我们使用 Codly 时,我们可以通过 ` config-common(preamble: {..}) ` 初始化。
8
+
9
+ ``` typst
10
+ #import "@preview/touying:0.5.2": *
11
+ #import themes.simple: *
12
+ #import "@preview/codly:1.0.0": *
13
+
14
+ #show: codly-init.with()
15
+
16
+ #show: simple-theme.with(
17
+ aspect-ratio: "16-9",
18
+ config-common(preamble: {
19
+ codly(languages: (
20
+ rust: (
21
+ name: "Rust",
22
+ icon: text(font: "tabler-icons", "\u{fa53}"),
23
+ color: rgb("#CE412B"),
24
+ ),
25
+ ))
26
+ }),
27
+ )
28
+
29
+ == First slide
30
+
31
+ #raw(lang: "rust", block: true,
32
+ `pub fn main() {
33
+ println!("Hello, world!");
34
+ }`.text)
35
+ ```
36
+
37
+ ![ image] ( https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a )
Original file line number Diff line number Diff line change 1
1
---
2
- sidebar_position : 5
2
+ sidebar_position : 6
3
3
---
4
4
5
5
# Ctheorems
Original file line number Diff line number Diff line change
1
+ ---
2
+ sidebar_position : 5
3
+ ---
4
+
5
+ # Codly
6
+
7
+ When using Codly, we should initialize it using the ` config-common(preamble: {..}) ` method.
8
+
9
+ ``` typst
10
+ #import "@preview/touying:0.5.2": *
11
+ #import themes.simple: *
12
+ #import "@preview/codly:1.0.0": *
13
+
14
+ #show: codly-init.with()
15
+
16
+ #show: simple-theme.with(
17
+ aspect-ratio: "16-9",
18
+ config-common(preamble: {
19
+ codly(languages: (
20
+ rust: (
21
+ name: "Rust",
22
+ icon: text(font: "tabler-icons", "\u{fa53}"),
23
+ color: rgb("#CE412B"),
24
+ ),
25
+ ))
26
+ }),
27
+ )
28
+
29
+ == First slide
30
+
31
+ #raw(lang: "rust", block: true,
32
+ `pub fn main() {
33
+ println!("Hello, world!");
34
+ }`.text)
35
+ ```
36
+
37
+ ![ image] ( https://github.com/touying-typ/touying/assets/34951714/0be2fbaf-cc03-4776-932f-259503d5e23a )
Original file line number Diff line number Diff line change 1
1
---
2
- sidebar_position : 5
2
+ sidebar_position : 6
3
3
---
4
4
5
5
# Ctheorems
You can’t perform that action at this time.
0 commit comments