You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build-your-own-theme.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,12 @@ To demonstrate how to create a theme with Touying, let's step by step create a s
20
20
If you want to modify a Touying internal theme locally instead of creating one from scratch, you can achieve this by:
21
21
22
22
1. Copying the [theme code](https://github.com/touying-typ/touying/tree/main/themes) from the `themes` directory to your local, for example, copying `themes/university.typ` to your local `university.typ`.
23
-
2. Replacing the `#import "../src/exports.typ": *` command at the top of the `university.typ` file with `#import "@preview/touying:0.5.5": *`.
23
+
2. Replacing the `#import "../src/exports.typ": *` command at the top of the `university.typ` file with `#import "@preview/touying:0.6.0": *`.
24
24
25
25
Then you can import and use the theme by:
26
26
27
27
```typst
28
-
#import "@preview/touying:0.5.5": *
28
+
#import "@preview/touying:0.6.0": *
29
29
#import "university.typ": *
30
30
31
31
#show: university-theme.with(
@@ -48,7 +48,7 @@ Depending on whether the theme is your own or part of Touying, you can import it
48
48
If it's just for your own use, you can directly import Touying:
49
49
50
50
```typst
51
-
#import "@preview/touying:0.5.5": *
51
+
#import "@preview/touying:0.6.0": *
52
52
```
53
53
54
54
If you want the theme to be part of Touying, placed in the Touying `themes` directory, then you should change the import statement above to
@@ -73,7 +73,7 @@ Generally, the first step in making slides is to determine the font size and pag
73
73
74
74
```typst
75
75
// bamboo.typ
76
-
#import "@preview/touying:0.5.5": *
76
+
#import "@preview/touying:0.6.0": *
77
77
78
78
#let bamboo-theme(
79
79
aspect-ratio: "16-9",
@@ -94,7 +94,7 @@ Generally, the first step in making slides is to determine the font size and pag
94
94
}
95
95
96
96
// main.typ
97
-
#import "@preview/touying:0.5.5": *
97
+
#import "@preview/touying:0.6.0": *
98
98
#import "bamboo.typ": *
99
99
100
100
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -195,7 +195,7 @@ We also need to customize a `slide` method, which accepts `#let slide(title: aut
Copy file name to clipboardExpand all lines: docs/changelog.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,27 @@ sidebar_position: 14
4
4
5
5
# Changelog
6
6
7
+
## v0.6.0
7
8
8
-
## v0.5.4
9
+
It's not a big update, but it's the first touying release since typst 0.13 was released.
10
+
11
+
### Features
12
+
13
+
- feat: add auto style for display-current-heading.
14
+
- For users, you can use `show heading: set text(blue)` to change color for heading in some themes like `dewdrop`.
15
+
- For theme creator, you can use syntax like `utils.display-current-heading(level: 1, style: auto)` to achieve the same result.
16
+
- feat: apply config-info information to `set document`.
17
+
- feat: set `stretch: false` by default for `alternatives` functions. This is **a minor breaking change**, but I think it would be more intuitive: no auto empty space.
18
+
19
+
### Fixes
20
+
21
+
- fix: fix error with uncover using semi-transparent-cover
22
+
- fix: fix type string comparison https://github.com/touying-typ/touying/pull/153
23
+
- fix: fix horizontal-line bug in typst 0.13.0
24
+
- refactor: fix display-current-short-heading
25
+
26
+
27
+
## v0.5.4 & v0.5.5
9
28
10
29
### Features
11
30
@@ -87,7 +106,7 @@ This is a significant disruptive version update. Touying has removed many mistak
87
106
A simple usage example is shown below, and more examples can be found in the `examples` directory:
Copy file name to clipboardExpand all lines: docs/code-styles.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ sidebar_position: 4
9
9
If we just need to use it simply, we can directly input content under the title, just like writing a normal Typst document. The titles here serve to separate pages, and we can also normally use commands like `#pause` to achieve animation effects.
10
10
11
11
```typst
12
-
#import "@preview/touying:0.5.5": *
12
+
#import "@preview/touying:0.6.0": *
13
13
#import themes.simple: *
14
14
15
15
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -32,7 +32,7 @@ And you can use an empty title `== <touying:hidden>` to create a new page, which
32
32
If we need to maintain the current title and just want to add a new page, we can use `#pagebreak()`, or directly use `---` to split the page, the latter is parsed as `#pagebreak()` in Touying.
33
33
34
34
```typst
35
-
#import "@preview/touying:0.5.5": *
35
+
#import "@preview/touying:0.6.0": *
36
36
#import themes.simple: *
37
37
38
38
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -57,7 +57,7 @@ Many times, using only the simple style cannot achieve all the functions we need
57
57
For example, the above example can be transformed into
58
58
59
59
```typst
60
-
#import "@preview/touying:0.5.5": *
60
+
#import "@preview/touying:0.6.0": *
61
61
#import themes.simple: *
62
62
63
63
#show: simple-theme.with(aspect-ratio: "16-9")
@@ -91,7 +91,7 @@ You may have noticed that when using the simple theme, using a first-level title
91
91
If we do not want it to automatically create such a section slide, we can remove this method:
92
92
93
93
```typst
94
-
#import "@preview/touying:0.5.5": *
94
+
#import "@preview/touying:0.6.0": *
95
95
#import themes.simple: *
96
96
97
97
#show: simple-theme.with(
@@ -117,7 +117,7 @@ As you can see, this will only result in two pages, and the default section slid
117
117
Similarly, we can also register a new section slide:
0 commit comments