Jan Willem Flamma schrieb am 27.09.18 um 17:18:
Dear list members,

How can I prevent that a question block breaks across a page?

Kind regards,
Jan Willem Flamma


MWE

\defineblock[question]
\defineblock[answer]

\hideblocks[question] 
\hideblocks[answer]     

 


\defineenumeration
    [question]
    [text={Question},
     after={\blank[2*big]},
     inbetween={\blank[nowhite]},
     way=bychapter,
     prefixsegments=chapter,
     prefix=yes]

Put your questions in a framedtext environment.

\defineframedtext
  [questionframe]
  [before=\blank,
   after=,
   offset=none,
   frame=off]

\defineenumeration
  [question]
  [...,
   before=\startquestionframe,
   after=\stopquestionframe,
   ...]

Wolfgang