I’ve just tried switching to touying v0.7 from v0.6 and am confused about new behavior. In the past, I could nest animation functions in touying. For versions v0.6.*, I could do the following:
#import "@preview/touying:0.6.3": *
#import themes.simple: *
#show: simple-theme
#let model(self) = {
let (alternatives-cases, uncover) = utils.methods(self)
uncover("1-", alternatives-cases(("1", "2-3"), i => [#i]))
}
#slide(repeat:3, model)
This works with no errors. When I switch to v0.7.0 thru v0.7.3, I get the following error, with no additional traceback:
`configs.typ` [Ln 66, Col 9] panicked with: Unsupported mark `touying-fn-wrapper` at page 1. You can't use it inside some functions like `context`. You may want to use the callback-style `uncover` function instead.
Then, in v0.7.4, I get a different error:
`configs.typ` [Ln 64, Col 24] array is empty.
Both errors occur in the definition of _default-preamble, and presumably has to do with how it has context in it, but it does in previous versions too. I have looked over the changelogs, and am at a loss of what changed and if this is new intended behavior/is a bug. I can’t find anyone else talking about this either.