[NTG-context] line break after \item, but not \stopitem

Hans Hagen j.hagen at xs4all.nl
Tue Oct 9 10:28:02 CEST 2018

On 10/9/2018 9:21 AM, Damien Thiriet wrote:
> Hi list,
> I am designing a presentation for my pupils (some loooong exercices to
> learn LibreOfficeDraw by doing). To be sure that they don't misview any
> question, I decided to force a pagebreak after each first level item.
> A question on TSE gave me the proper key to \setupitemize, but I am
> facing an issue I didn't expect.
> Given this MWE
> \setuppapersize[S6]
> \setupitemize[1][inbetween={\page}]
> \starttext
> \startitemize[n]
> \startitem \input knuth
> \stopitem
> \startitem \input ward
>     \startitemize[a]
>        \startitem first point \stopitem
>        \startitem second point \stopitem
>        \stopitem
>     \stopitemize


> \stoptext
> I expected a page break after each 1 level \stopitem, that is after
> knuth's text and "second point". However the text is breaking before
> first point, that is at the beginning of level 2 startitemize, which is
> AFAIK semantically part of a level 1 item.
> Do you have any idea to force page break *after* "second point" and not
> *before* "first point" ?
inbetween is actually meant for spacing so there is logic deep down that 
put is between seccessive items depending on curcumstances .... hard to 
beat heuristics

you can do this:



     \startitem \input knuth \stopitem

\startitem \input ward
       \startitem first point \stopitem
       \startitem second point \stopitem


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the ntg-context mailing list