andreasKroepelin / polylux

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

Request: Autosizing text/image to prevent wrapping to next slide #109

Closed willismonroe closed 1 year ago

willismonroe commented 1 year ago

This is a future request, I know it's not an easy problem. When I'm writing slides I often end up having to manually size text so that it doesn't wrap to the next page/slide. It would be nice if polylux (or typst in general) offered a function (of flag on the text function) that prevented the block from wrapping to the next page and resized it to keep it on the page.

Same thing with images, if I include an image on a slide, I don't want it to appear on the next slide. I guess fundamentally this is an issue with how slides vs. pages work. Generally slides should never wrap contents onto another slide.

andreasKroepelin commented 1 year ago

There actually is a current PR that does what you want, I think: #96

I'm a bit behind reviewing PRs currently, though.

willismonroe commented 1 year ago

Ah that's amazing, sorry should've checked the PRs. Also I forgot about #fit-to-height I'll play around with that.