Why is framed text crashing into and overlapping other text?
I have a simple enumeration structure like this: 1. word a. _________ b. _________ c. _________ The students will write three properties of each word. The problem I had is it was putting some items on a next page, which confused students. For instance, maybe it shows 1. word(pagebreak) a. _________ b. _________ c. _________ This confused students where to write their answers. (see Attempt 1 code below). So I used a frame to keep the itemized text together. (see Attempt 2 code below). Though in my minimum working example below, it works just fine, somehow in my document it creates weird problems putting frames around the items. Sometimes it puts item 10 on top of 9, so its like the text is written on top of the other text. Sometimes the frames make the text crash over the items after it. Is frame the write tool to use to keep the itemized items together as a group without allowing column and page breaks to separate them? How do I stop the strange behavior of the frames seemingly floating to weird locations and appearing over other text? I'm afraid I couldn't find any way to recreate this affect in my minimum working example. --Joel \starttext \subject{Attempt 1} \startcolumns[n=2] \startitemize[n] \dorecurse{30}{ \item word \startitemize[a] \item \thinrule \item \thinrule \item \thinrule \stopitemize } \stopitemize \stopcolumns \input knuth \subject{Attempt 2} \startcolumns[n=2] \startitemize[n] \dorecurse{30}{ \startframedtext[frame=off] \item word \startitemize[a] \item \thinrule \item \thinrule \item \thinrule \stopitemize \stopframedtext } \stopitemize \stopcolumns \input knuth \stoptext
Am 28.11.24 um 14:24 schrieb Joel via ntg-context:
Is frame the write tool to use to keep the itemized items together as a group without allowing column and page breaks to separate them? How do I stop the strange behavior of the frames seemingly floating to weird locations and appearing over other text?
While I think \framedtext should work, try a simple \vbox when you don’t need styling. Hraban
Thank you! I replaced \framedtext and \framed all over my document and \vbox seems to have resolved all the issues! --Joel
On Thursday, November 28, 2024 at 06:36:02 AM MST, Henning Hraban Ramm
Is frame the write tool to use to keep the itemized items together as a group without allowing column and page breaks to separate them? How do I stop the strange behavior of the frames seemingly floating to weird locations and appearing over other text?
While I think \framedtext should work, try a simple \vbox when you don’t need styling. Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Henning Hraban Ramm schrieb am 28.11.2024 um 14:32:
Am 28.11.24 um 14:24 schrieb Joel via ntg-context:
Is frame the write tool to use to keep the itemized items together as a group without allowing column and page breaks to separate them? How do I stop the strange behavior of the frames seemingly floating to weird locations and appearing over other text?
While I think \framedtext should work, try a simple \vbox when you don’t need styling.
A different solution is to use a label or enumeration for the first level (but keep itemize for the second level) which can be enclosed in a box to prevent a page break between the items. Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Joel
-
Wolfgang Schuster