Hi all. I’m trying to create a simple multiple choice test. For the sake of readability, I want to have a question and all its choices in the same page, meaning that if a choice doesn’t fit in the current page the whole question is moved to the next.
To achieve it I’m using nested enums like this
Code
#import "@preview/numbly:0.1.0": numbly
#set page(height: 7cm)
#set enum(numbering: numbly("{1}.", "{2:A})"), full: true)
#show enum.item: set block(breakable: false)
+ Some question
+ First answer
+ Second answer
+ Third answer
+ Fourth answer
+ Another question
+ First answer
+ Second answer
+ Third answer
+ Fourth answer
Result
As you can see, the question stays in the same page, but the choices go to the next. I tried to wrap every enum.item
in a block, but it breaks the enum counter and instead of fixing that I just prefer to call a pagebreak
manually.
Any help would be appreciated!