ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Joel via ntg-context <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: Joel <uaru99@yahoo.com>
Subject: [NTG-context] How to force section title to be on same page as some of the content?
Date: Sat, 2 Nov 2024 20:11:04 +0000 (UTC)	[thread overview]
Message-ID: <571061543.5120902.1730578264690@mail.yahoo.com> (raw)
In-Reply-To: <571061543.5120902.1730578264690.ref@mail.yahoo.com>


[-- Attachment #1.1: Type: text/plain, Size: 2844 bytes --]

\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

[-- Attachment #1.2: Type: text/html, Size: 8576 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2024-11-02 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <571061543.5120902.1730578264690.ref@mail.yahoo.com>
2024-11-02 20:11 ` Joel via ntg-context [this message]
2024-11-02 22:58   ` [NTG-context] " Henning Hraban Ramm
2024-11-03  6:53     ` Denis Maier via ntg-context
2024-11-03  9:02       ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=571061543.5120902.1730578264690@mail.yahoo.com \
    --to=ntg-context@ntg.nl \
    --cc=uaru99@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).