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" ? Thanks, Damien Thiriet
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
\stopitem \stopitemize put is between seccessive items depending on curcumstances .... hard to beat heuristics you can do this: \setuppapersize[S6] \setupitemize[1][before={\page}] \starttext \startitemize[n] \startitem \input knuth \stopitem \stopitemize \startitemize[continue] \startitem \input ward \startitemize[a] \startitem first point \stopitem \startitem second point \stopitem \stopitem \stopitemize \stopitem \stopitemize \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans, Thank you for your answer.
you can do this:
\setuppapersize[S6] \setupitemize[1][before={\page}]
\starttext
\startitemize[n] \startitem \input knuth \stopitem \stopitemize
\startitemize[continue] \startitem \input ward \startitemize[a] \startitem first point \stopitem \startitem second point \stopitem \stopitem \stopitemize \stopitem \stopitemize
\stoptext
Unfortunately, I have a huge amount of level 1 items, only 10% of them enclosing some level-2 itemization. I bet it would be easier to insert \page with a perl script after each first \stopitem than embedding those 90% items within an itemization (as far as I understand). That's what I did when I converted my beamer presentation into conTeXt ones. In this case however, the code would be far less readable, since those \page will be only for screen mode. Is there any key I could use to introduce page breaks after each level 1 \stopitem ? Best regards, Damien Thiriet
Hans Hagen schrieb am 09.10.18 um 10:28:
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
Whether the second level \startitemize uses before or inbetween depends on the \c_strc_itemgroups_spacing_mode value which has no option to change it on the user level. The simpler solution for the original problem is to use a enumeration for the first level items. Wolfgang
participants (3)
-
Damien Thiriet
-
Hans Hagen
-
Wolfgang Schuster