You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to put alternatives in other places of the AST, like in the value of the fill argument in my case?
Anyway, thank you for your work on touying! I'll just copy-paste the whole slide for now and can most likely live with it, even though it's quite a mastodon with its 50 lines of definition.
The text was updated successfully, but these errors were encountered:
Ekleog
changed the title
Color grid cell depending on slide
Changing argument value depending on slide
Jan 8, 2025
Actually, I'm also looking for a way to change which cells are in the grid or not, but I guess this can be summed up as a way to alternate non-contents arguments to any typst function :)
Hey!
I'm new to touying and typst, so please forgive me if I missed something in the docs.
I'm trying to color a grid cell differently depending on which slide it's on. Here is what I'm currently trying out:
The contents alternatives works perfectly, but having the blue/red alternatives seems to completely break compilation:
As far as I can read,
alternatives
& co are only supported inside contents.I also tried the
utils.methods(self)
variant, but the break seemed even worse, as even the contents-only variant returned this error:Is there any way to put alternatives in other places of the AST, like in the value of the fill argument in my case?
Anyway, thank you for your work on touying! I'll just copy-paste the whole slide for now and can most likely live with it, even though it's quite a mastodon with its 50 lines of definition.
The text was updated successfully, but these errors were encountered: