Touying: Freezing custom counter doesn't work

Hi,

I am using the touying package to create a presentation. In there, I am using figure environments to create definitions/lemmata/theorems etc.

I am trying to freeze the counter for my custom definitions when using the #pause command in touying but I am getting an error. My code looks like this:

#import "@preview/touying:0.7.3": *
#import themes.university: *

#show: university-theme.with(
  config-common(frozen-counters: (figure.where(kind: "Aussage"),)),  // freeze theorem counter for animation
)

#figure(
  kind: "Aussage", supplement: "Definition",
  [Hello!]
) <label1>

#pause

The error I am getting is inside the touying package: Type selector has no method at.

How do I fix this?

1 Like

I fixed it! This works:

#import "@preview/touying:0.7.3": *
#import themes.university: *

#show: university-theme.with(
  config-common(frozen-counters: (counter(figure.where(kind: "Aussage")),)),  // freeze theorem counter for animation
)

#figure(
  kind: "Aussage", supplement: "Definition",
  [Hello!]
) <label1>

#pause

The documentation (here) is wrong I think?

1 Like