[NTG-context] prevent page break when using blocks

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Thu Sep 27 17:44:13 CEST 2018



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180927/5df87043/attachment-0001.html>


More information about the ntg-context mailing list