andreasKroepelin / polylux

A package for creating slides in Typst
https://polylux.dev/book
MIT License
1.18k stars 55 forks source link

Higher-level functions for sequential reveal of lists with multiple levels fail #150

Open KronosTheLate opened 9 months ago

KronosTheLate commented 9 months ago

I am currently unable to find an environment that allows me squential reveals of lists with multiple levels. #one-by-one fails to maintain the nesting: image

#line-by-line maintains nesting, but does not recognize the two lines: image

Only #pause works: image

The issue with #pause is that it does not compose that well with other content, and for more complicated reveals (like a slide with an #alternatives line) it does not work. So nested items on complicated slides currently seems impossible, without manually using #uncover and #only. Which works okay, but can be tedius with many transitions (as I am clearly inclined towards xD)

OrangeX4 commented 9 months ago

Maybe you can try touying.

andreasKroepelin commented 9 months ago

Maybe you can try touying. (I'll delete this reply tomorrow.)

You don't have to delete it 😂

But yeah nested lists are a case I haven't thought about before... I'll think about that.

andreasKroepelin commented 9 months ago

Would this function work in your case?

https://polylux.dev/book/dynamic/obo-lbl.html#list-one-by-one

KronosTheLate commented 9 months ago

Would this function work in your case?

Based on the documentation, I am not seeing any instruction on how one could add nesting levels... image

Maybe you can try touying.

That is very interesting indeed! The syntax immediately seems quite a bit more scary to me. I will keep in it mind, thanks for the pointer!

foxyseta commented 8 months ago

Nesting #list-one-by-one and the like did not really work for me. Content from different nested lists gets uncovered in parallel.