Touying 0.6.3 is a major bugfix release that also brings a batch of practical new features, most of them around animations and handout mode.
What's New
#jumpas unified animation control:#jump(n, relative: false)is the new primitive for moving the subslide counter, and#pauseand#meanwhileare now sugar on top of it.#jump(3)skips straight to subslide 3.#item-by-itemreveals a list, enum or terms block one item at a time (#278):
#item-by-item[
- First
- Second
- Third
]
#touying-rawreveals a code block progressively, splitting on apausecomment in the code itself (#283):
#touying-raw(```rust
fn main() {
// pause
println!("Hello, world!");
}
```)
- Handout mode, more precisely:
#handout-only[..]marks inline content as handout-exclusive and the<touying:handout>label does the same for a whole slide (#286), whilehandout-subslidespicks which subslides survive (#288). - Speaker notes and aspect ratios: a full-screen notes mode with a slide thumbnail via
show-only-notes(#281), and arbitrary aspect ratios such as 16-10 across all themes (#280). - Also: a
subslideparameter for#touying-recall(#285),default-composerinconfig-commonfor a global slide layout (#284), acover-fnparameter onuncoverfor packages like Fletcher (#267), and inline minislides (#228).
Fixes
Many long-standing bugs are gone: ghost blank slides from a touying-set-config anchor regression, styled content on the first slide creating extra slides, #meanwhile being ignored inside grid cells and boxes, the config: parameter being silently ignored across all themes, and slides after #show/#set rules not rendering. See the Changelog for the full list.
For theme authors
Move config to the last position in utils.merge-dicts so user overrides win, and replace paper with utils.page-args-from-aspect-ratio to support arbitrary aspect ratios:
self = utils.merge-dicts(self, config-page(..utils.page-args-from-aspect-ratio(aspect-ratio), ...), config)
The documentation website was also substantially restructured in this release, with a new references page and docstrings across all source files.