ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Why is framed text crashing into and overlapping other text?
       [not found] <1362074741.2137726.1732800249975.ref@mail.yahoo.com>
@ 2024-11-28 13:24 ` Joel via ntg-context
  2024-11-28 13:32   ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Joel via ntg-context @ 2024-11-28 13:24 UTC (permalink / raw)
  To: Mailing List for ConTeXt Users; +Cc: Joel


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

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




[-- Attachment #1.2: Type: text/html, Size: 4697 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Why is framed text crashing into and overlapping other text?
  2024-11-28 13:24 ` [NTG-context] Why is framed text crashing into and overlapping other text? Joel via ntg-context
@ 2024-11-28 13:32   ` Henning Hraban Ramm
  2024-11-28 13:57     ` Joel via ntg-context
  2024-11-28 15:05     ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-11-28 13:32 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Why is framed text crashing into and overlapping other text?
  2024-11-28 13:32   ` [NTG-context] " Henning Hraban Ramm
@ 2024-11-28 13:57     ` Joel via ntg-context
  2024-11-28 15:05     ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Joel via ntg-context @ 2024-11-28 13:57 UTC (permalink / raw)
  To: ntg-context; +Cc: Joel


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

 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 <texml@fiee.net> wrote:  
 
 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
___________________________________________________________________________________
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
___________________________________________________________________________________
  

[-- Attachment #1.2: Type: text/html, Size: 2847 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: Why is framed text crashing into and overlapping other text?
  2024-11-28 13:32   ` [NTG-context] " Henning Hraban Ramm
  2024-11-28 13:57     ` Joel via ntg-context
@ 2024-11-28 15:05     ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2024-11-28 15:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-28 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1362074741.2137726.1732800249975.ref@mail.yahoo.com>
2024-11-28 13:24 ` [NTG-context] Why is framed text crashing into and overlapping other text? Joel via ntg-context
2024-11-28 13:32   ` [NTG-context] " Henning Hraban Ramm
2024-11-28 13:57     ` Joel via ntg-context
2024-11-28 15:05     ` Wolfgang Schuster

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).