Skip to content

Commit 17a5546

Browse files
committed
chore: bump version to 0.6.0
1 parent e3949d4 commit 17a5546

File tree

142 files changed

+7644
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+7644
-125
lines changed

docs/build-your-own-theme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ To demonstrate how to create a theme with Touying, let's step by step create a s
2020
If you want to modify a Touying internal theme locally instead of creating one from scratch, you can achieve this by:
2121

2222
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": *`.
2424

2525
Then you can import and use the theme by:
2626

2727
```typst
28-
#import "@preview/touying:0.5.5": *
28+
#import "@preview/touying:0.6.0": *
2929
#import "university.typ": *
3030
3131
#show: university-theme.with(
@@ -48,7 +48,7 @@ Depending on whether the theme is your own or part of Touying, you can import it
4848
If it's just for your own use, you can directly import Touying:
4949

5050
```typst
51-
#import "@preview/touying:0.5.5": *
51+
#import "@preview/touying:0.6.0": *
5252
```
5353

5454
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
7373

7474
```typst
7575
// bamboo.typ
76-
#import "@preview/touying:0.5.5": *
76+
#import "@preview/touying:0.6.0": *
7777
7878
#let bamboo-theme(
7979
aspect-ratio: "16-9",
@@ -94,7 +94,7 @@ Generally, the first step in making slides is to determine the font size and pag
9494
}
9595
9696
// main.typ
97-
#import "@preview/touying:0.5.5": *
97+
#import "@preview/touying:0.6.0": *
9898
#import "bamboo.typ": *
9999
100100
#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
195195

196196
```typst
197197
// bamboo.typ
198-
#import "@preview/touying:0.5.5": *
198+
#import "@preview/touying:0.6.0": *
199199
200200
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
201201
if title != auto {
@@ -270,7 +270,7 @@ We also need to customize a `slide` method, which accepts `#let slide(title: aut
270270
271271
272272
// main.typ
273-
#import "@preview/touying:0.5.5": *
273+
#import "@preview/touying:0.6.0": *
274274
#import "bamboo.typ": *
275275
276276
#show: bamboo-theme.with(aspect-ratio: "16-9")
@@ -294,7 +294,7 @@ For the `new-section-slide` method, it's the same, but the only thing to note is
294294

295295
```typst
296296
// bamboo.typ
297-
#import "@preview/touying:0.5.5": *
297+
#import "@preview/touying:0.6.0": *
298298
299299
#let slide(title: auto, ..args) = touying-slide-wrapper(self => {
300300
if title != auto {
@@ -411,7 +411,7 @@ For the `new-section-slide` method, it's the same, but the only thing to note is
411411
412412
413413
// main.typ
414-
#import "@preview/touying:0.5.5": *
414+
#import "@preview/touying:0.6.0": *
415415
#import "bamboo.typ": *
416416
417417
#show: bamboo-theme.with(

docs/changelog.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,27 @@ sidebar_position: 14
44

55
# Changelog
66

7+
## v0.6.0
78

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
928

1029
### Features
1130

@@ -87,7 +106,7 @@ This is a significant disruptive version update. Touying has removed many mistak
87106
A simple usage example is shown below, and more examples can be found in the `examples` directory:
88107

89108
```typst
90-
#import "@preview/touying:0.5.5": *
109+
#import "@preview/touying:0.6.0": *
91110
#import themes.university: *
92111
93112
#show: university-theme.with(

docs/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
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.
1010

1111
```typst
12-
#import "@preview/touying:0.5.5": *
12+
#import "@preview/touying:0.6.0": *
1313
#import themes.simple: *
1414
1515
#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
3232
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.
3333

3434
```typst
35-
#import "@preview/touying:0.5.5": *
35+
#import "@preview/touying:0.6.0": *
3636
#import themes.simple: *
3737
3838
#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
5757
For example, the above example can be transformed into
5858

5959
```typst
60-
#import "@preview/touying:0.5.5": *
60+
#import "@preview/touying:0.6.0": *
6161
#import themes.simple: *
6262
6363
#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
9191
If we do not want it to automatically create such a section slide, we can remove this method:
9292

9393
```typst
94-
#import "@preview/touying:0.5.5": *
94+
#import "@preview/touying:0.6.0": *
9595
#import themes.simple: *
9696
9797
#show: simple-theme.with(
@@ -117,7 +117,7 @@ As you can see, this will only result in two pages, and the default section slid
117117
Similarly, we can also register a new section slide:
118118

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

docs/dynamic/other.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Touying also provides `touying-reducer`, which adds `pause` and `meanwhile` anim
1111
Here's an example:
1212

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

docs/external/pdfpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typst query --root . ./example.typ --field value --one "<pdfpc-file>" > ./exampl
5252
With the compatibility of Touying and Polylux, you can make Polylux also support direct export by adding the following code:
5353

5454
```typst
55-
#import "@preview/touying:0.5.5"
55+
#import "@preview/touying:0.6.0"
5656
5757
#context touying.pdfpc.pdfpc-file(here())
5858
```

docs/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
## Speaker Notes
1111

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

docs/integration/cetz.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Touying provides the `touying-reducer`, which adds `pause` and `meanwhile` anima
1111
An example:
1212

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

docs/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
When using Codly, we should initialize it using the `config-common(preamble: {..})` method.
88

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

docs/integration/ctheorems.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Touying can work seamlessly with the `ctheorems` package, allowing you to direct
99
Moreover, you can utilize `#set heading(numbering: "1.1")` to set numbering for sections and subsections.
1010

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

docs/integration/fletcher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Touying provides the `touying-reducer`, which adds `pause` and `meanwhile` anima
99
An example:
1010

1111
```typst
12-
#import "@preview/touying:0.5.5": *
12+
#import "@preview/touying:0.6.0": *
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)