andreasKroepelin / polylux

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

Block mode for `#alternatives` family #164

Open ZackNoyes opened 4 months ago

ZackNoyes commented 4 months ago

First, thanks for this great library!

Currently, #alternatives always lays out elements as inline elements (wrapping them in a box).

This change adds a mode where alternatives can lay elements out as block elements. There are two reasons I can think of that someone might want to do this.

Thanks for looking at this! I also added a test and a section to the book. Let me know if anything else would help to make this easier to merge if you agree with the change (I see that you mention you're quite time-poor in other PRs).