From 2251780124b5d0881d6336d2ab0f76e356c3e405 Mon Sep 17 00:00:00 2001 From: OrangeX4 <318483724@qq.com> Date: Tue, 15 Oct 2024 16:42:43 +0800 Subject: [PATCH] chore: bump version to 0.5.3 --- README.md | 12 +++++++----- changelog.md | 30 +++++++++++++++++++++++++++++- src/core.typ | 2 +- typst.toml | 2 +- 4 files changed, 38 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2057e4fb..71650496 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ![logo](https://github.com/user-attachments/assets/58a91b14-ae1a-49e2-a3e7-5e3a148e2ba5) -[Touying](https://github.com/touying-typ/touying) (投影 in chinese, /tóuyǐng/, meaning projection) is a user-friendly, powerful and efficient package for creating presentation slides in Typst. Partial code is inherited from [Polylux](https://github.com/andreasKroepelin/polylux). Therefore, many concepts and APIs remain consistent with Polylux. +[Touying](https://github.com/touying-typ/touying) (投影 in chinese, /tóuyǐng/, meaning projection) is a user-friendly, powerful and efficient package for creating presentation slides in Typst. Partial code is inherited from [Polylux](https://github.com/andreasKroepelin/polylux). Therefore, some concepts and APIs remain consistent with Polylux. -Touying provides automatically injected global configurations, which is convenient for configuring themes. Besides, Touying does not rely on `counter` and `locate` to implement `#pause`, resulting in better performance. +Touying provides automatically injected global configurations, which is convenient for configuring themes. Besides, Touying does not rely on `counter` and `context` to implement `#pause`, resulting in better performance. If you like it, consider [giving a star on GitHub](https://github.com/touying-typ/touying). Touying is a community-driven project, feel free to suggest any ideas and contribute. @@ -17,7 +17,9 @@ If you like it, consider [giving a star on GitHub](https://github.com/touying-ty Read [the document](https://touying-typ.github.io/) to learn all about Touying. -This documentation is powered by [Docusaurus](https://docusaurus.io/). We will maintain **English** and **Chinese** versions of the documentation for Touying, and for each major version, we will maintain a documentation copy. This allows you to easily refer to old versions of the Touying documentation and migrate to new versions. +We will maintain **English** and **Chinese** versions of the documentation for Touying, and for each major version, we will maintain a documentation copy. This allows you to easily refer to old versions of the Touying documentation and migrate to new versions. + +**Note that the documentation may be outdated, and you can also use Tinymist to view Touying's annotated documentation by hovering over the code.** ## Gallery @@ -99,7 +101,7 @@ Before you begin, make sure you have installed the Typst environment. If not, yo To use Touying, you only need to include the following code in your document: ```typst -#import "@preview/touying:0.5.2": * +#import "@preview/touying:0.5.3": * #import themes.simple: * #show: simple-theme.with(aspect-ratio: "16-9") @@ -127,7 +129,7 @@ It's simple. Congratulations on creating your first Touying slide! 🎉 In fact, Touying provides various styles for writing slides. For example, the above example uses first-level and second-level titles to create new slides. However, you can also use the `#slide[..]` format to access more powerful features provided by Touying. ```typst -#import "@preview/touying:0.5.2": * +#import "@preview/touying:0.5.3": * #import themes.university: * #import "@preview/cetz:0.2.2" #import "@preview/fletcher:0.5.1" as fletcher: node, edge diff --git a/changelog.md b/changelog.md index 60123f30..a9fec5cc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,34 @@ # Changelog -## v0.5.1 +## v0.5.3 + +### Features + +- feat: add `stretch` parameter for `#alternatives[]` function class. This allows us to handle cases where the internal element is a context expression. +- feat: add `config-common(align-enum-marker-with-baseline: true)` for aligning the enum marker with the baseline. +- feat: add `linebreaks` option to `components.mini-slides`. https://github.com/touying-typ/touying/pull/96 +- feat: add `` label to skip a new-section-slide. +- feat: add `config-common(show-hide-set-list-marker-none: true)` to make the markers of `list` and `enum` invisible after `#pause`. +- feat: add `config-common(bibliography-as-footnote: bibliography(title: none, "ref.bib"))` to display the bibliography in footnotes. +- refactor: add `config-common(show-strong-with-alert: true)` configuration to display strong text with an alert. (small breaking change for some themes) +- refactor: refactor `display-current-heading` for preserving heading style in title and subtitle. https://github.com/touying-typ/touying/issues/71 +- refactor: make `new-section-slide-fn` function class can receive `body` parameter. We can use `receive-body-for-new-section-slide-fn` to control it. **(Breaking change)** + - For example, you can add `#speaker-note[]` for a new section slide, like `= Section Title \ #speaker-note[]`. + - If you don't want to append content to the body of the new section slide, you can use `---` after the section title. + +### Fixes + +- fix outdated documentation. +- fix bug of `enable-frozen-states-and-counters` in handout mode. +- fix unusable `square()` function. https://github.com/touying-typ/touying/issues/73 +- fix hidden footer for `show-notes-on-second-screen: bottom`. https://github.com/touying-typ/touying/issues/89 +- fix metadata element in table cells. https://github.com/touying-typ/touying/issues/77 https://github.com/touying-typ/touying/issues/95 +- fix `auto-offset-for-heading` to `false` by default. +- fix uncover/only hides more content than it should. https://github.com/touying-typ/touying/issues/85 +- theme(simple): fix wrong title and subtitle. https://github.com/touying-typ/touying/issues/70 + + +## v0.5.1 & v0.5.2 - Fix somg bugs. diff --git a/src/core.typ b/src/core.typ index 489f4673..6a29db6e 100644 --- a/src/core.typ +++ b/src/core.typ @@ -192,7 +192,7 @@ // Main logic if utils.is-kind(child, "touying-slide-wrapper") { current-slide = utils.trim(current-slide) - if current-slide != () { + if current-slide != () or _get-slide-fn(self + (headings: current-headings), default: none) != none { (cont, recaller-map, current-headings, current-slide, new-start, is-first-slide) = call-slide-fn-and-reset( self + (headings: current-headings, is-first-slide: is-first-slide), slide-fn, diff --git a/typst.toml b/typst.toml index f938b304..64ea0eba 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "touying" -version = "0.5.2" +version = "0.5.3" entrypoint = "lib.typ" authors = ["OrangeX4", "Andreas Kröpelin", "ntjess", "Enivex", "Pol Dellaiera", "pride7", "Coekjan"] license = "MIT"