How to force section title to be on same page as some of the content?
\define[9]\event{% \staged{#9} \startsubsection[title={\recurselevel.\getvalue{activitynumber}~~~#9}, reference={activity_\activitynumber_\recurselevel}]% \activitytype{#9}% #2% \doifsomething{#4}{% \FrameTitle{\strut \bf Suggested Materials}% \StartFrame% \startitemize[columns,two,2]% #4% student's materials% \stopitemize% \StopFrame% }% \doifsomething{#6}{% {\boldface #6}% student's directions% }% \doifsomething{#7}{% #7 % student's task% }% \doifsomething{#8}{% %\color[white]{...}% \FrameTitle{\strut \bf Requirements}% \StartFrame% \startitemize[9]% #8 % requirements% \stopitemize% \StopFrame% }% \stopsubsection%}% I have a macro above. Basically it quite simply is used to define a classroom activity for students to do. Each classroom activity contains: - A subsection title. - A list of recommended materials (like scissors, glue). - Instructions directed at the student. - Where student write their answers. - A list of requirements, how it will be graded. In testing, I found students are ALWAYS very confused by page breaks: If the assignment title, supplies, and instructions appear on one page, but the area they write/body is on the next page, split there by a page break, the students think the activity is missing. They cannot find the activity. So basically, I need to make it such that items 1, 2, and 3 must appear with at least the start of 4, even if its just the first problem in 10, and even if this means leaving a blank area on the page in front of it. How can I be so precise making sure the page break doesn't seperate the title from the start of the area where students write their answers? Adding page breaks before every activity isn't a good solution, it wastes paper. --Joel
Am 02.11.24 um 21:11 schrieb Joel via ntg-context:
How can I be so precise making sure the page break doesn't seperate the title from the start of the area where students write their answers?
To force keep something together, you can use a \framed or a \vbox. With a bit less force, use \testpage[<number of lines>], as in \setuphead[…][after={\testpage[5]}] to insert a page break if there are less than ~4 lines left on the page (you always need a bigger number than you think). Hraban
participants (3)
-
Denis Maier
-
Henning Hraban Ramm
-
Joel