ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Penalties and overprinting in tabulate
@ 2023-08-18 14:36 denis.maier
  2023-08-18 15:10 ` [NTG-context] " Hans Hagen
  2023-08-18 15:27 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: denis.maier @ 2023-08-18 14:36 UTC (permalink / raw)
  To: ntg-context


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

Dear list,

typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting?

Best,
Denis


\startsetups[mypenalties]
    \setdefaultpenalties
    \setpenalties\clubpenalties{1}{150}
    \setpenalties\widowpenalties{1}{10000}
    \setpenalties\displaywidowpenalties{1}{10000}
\stopsetups

\setuplayout[setups=mypenalties]

\starttext
\starttabulate[|p(.15\textwidth)|p|]
                               \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
        \NC \NR
        \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
        \NC \NR
        \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
        \NC \NR
        \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
        \NC \NR
        \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
        \NC \NR
\stoptabulate

\stoptext

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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Penalties and overprinting in tabulate
  2023-08-18 14:36 [NTG-context] Penalties and overprinting in tabulate denis.maier
@ 2023-08-18 15:10 ` Hans Hagen
  2023-08-21  8:24   ` denis.maier
  2023-08-18 15:27 ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2023-08-18 15:10 UTC (permalink / raw)
  To: ntg-context

On 8/18/2023 4:36 PM, denis.maier@unibe.ch wrote:
> Dear list,
> 
> typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting?
> 
> Best,
> Denis
> 
> 
> \startsetups[mypenalties]
>      \setdefaultpenalties
>      \setpenalties\clubpenalties{1}{150}
>      \setpenalties\widowpenalties{1}{10000}
>      \setpenalties\displaywidowpenalties{1}{10000}
> \stopsetups
> 
> \setuplayout[setups=mypenalties]
> 
> \starttext
> \starttabulate[|p(.15\textwidth)|p|]
>                                 \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
> \stoptabulate
> 
> \stoptext
\startsetups[nopenalties]
     \setdefaultpenalties
\stopsetups


% \setuptabulate[setups=nopenalties] % in next version

\setuptabulate[inner=\setups{nopenalties}]

or

\starttabulate[|p(.15\textwidth)s{nopenalties}|ps{nopenalties}|]

but i admit it needs some thought ... outer level only but that is also 
pretty much an engine thing then (no big deal but ... needs pondering)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Penalties and overprinting in tabulate
  2023-08-18 14:36 [NTG-context] Penalties and overprinting in tabulate denis.maier
  2023-08-18 15:10 ` [NTG-context] " Hans Hagen
@ 2023-08-18 15:27 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2023-08-18 15:27 UTC (permalink / raw)
  To: ntg-context

On 8/18/2023 4:36 PM, denis.maier@unibe.ch wrote:
> Dear list,
> 
> typesetting the example below results in lines printed above each other? Without the penalties, this doesn't happen. What am I missing here? How I can use the penalties without the not wanted overprinting?
> 
> Best,
> Denis
> 
> 
> \startsetups[mypenalties]
>      \setdefaultpenalties
>      \setpenalties\clubpenalties{1}{150}
>      \setpenalties\widowpenalties{1}{10000}
>      \setpenalties\displaywidowpenalties{1}{10000}
> \stopsetups
> 
> \setuplayout[setups=mypenalties]
> 
> \starttext
> \starttabulate[|p(.15\textwidth)|p|]
>                                 \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
>          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>          \NC \NR
> \stoptabulate
> 
> \stoptext
\unprotect
\c_tabl_tabulate_splitlinemode\plustwo
\protect

maybe in the meantime that should be default

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Penalties and overprinting in tabulate
  2023-08-18 15:10 ` [NTG-context] " Hans Hagen
@ 2023-08-21  8:24   ` denis.maier
  2023-08-21  9:35     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: denis.maier @ 2023-08-21  8:24 UTC (permalink / raw)
  To: ntg-context

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Freitag, 18. August 2023 17:10
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] Re: Penalties and overprinting in tabulate
> 
> On 8/18/2023 4:36 PM, denis.maier@unibe.ch wrote:
> > Dear list,
> >
> > typesetting the example below results in lines printed above each other?
> Without the penalties, this doesn't happen. What am I missing here? How I
> can use the penalties without the not wanted overprinting?
> >
> > Best,
> > Denis
> >
> >
> > \startsetups[mypenalties]
> >      \setdefaultpenalties
> >      \setpenalties\clubpenalties{1}{150}
> >      \setpenalties\widowpenalties{1}{10000}
> >      \setpenalties\displaywidowpenalties{1}{10000}
> > \stopsetups
> >
> > \setuplayout[setups=mypenalties]
> >
> > \starttext
> > \starttabulate[|p(.15\textwidth)|p|]
> >                                 \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf
> asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
> >          \NC \NR
> >          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
> >          \NC \NR
> >          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
> >          \NC \NR
> >          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
> >          \NC \NR
> >          \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
> >          \NC \NR
> > \stoptabulate
> >
> > \stoptext
> \startsetups[nopenalties]
>      \setdefaultpenalties
> \stopsetups
> 
> 
> % \setuptabulate[setups=nopenalties] % in next version
> 
> \setuptabulate[inner=\setups{nopenalties}]
> 
> or
> 
> \starttabulate[|p(.15\textwidth)s{nopenalties}|ps{nopenalties}|]
> 
> but i admit it needs some thought ... outer level only but that is also pretty
> much an engine thing then (no big deal but ... needs pondering)

Thanks, I guess that should be added to this page: https://wiki.contextgarden.net/Tabulate 
I'll add it to my list of todos..., but just to make sure the explanation will be correct: what exactly is happening here? The tabulate environment will "inherit" the outer environments setups, but why does this result in the overprinting?

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Penalties and overprinting in tabulate
  2023-08-21  8:24   ` denis.maier
@ 2023-08-21  9:35     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2023-08-21  9:35 UTC (permalink / raw)
  To: ntg-context

On 8/21/2023 10:24 AM, denis.maier@unibe.ch wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: Hans Hagen <j.hagen@xs4all.nl>
>> Gesendet: Freitag, 18. August 2023 17:10
>> An: ntg-context@ntg.nl
>> Betreff: [NTG-context] Re: Penalties and overprinting in tabulate
>>
>> On 8/18/2023 4:36 PM, denis.maier@unibe.ch wrote:
>>> Dear list,
>>>
>>> typesetting the example below results in lines printed above each other?
>> Without the penalties, this doesn't happen. What am I missing here? How I
>> can use the penalties without the not wanted overprinting?
>>>
>>> Best,
>>> Denis
>>>
>>>
>>> \startsetups[mypenalties]
>>>       \setdefaultpenalties
>>>       \setpenalties\clubpenalties{1}{150}
>>>       \setpenalties\widowpenalties{1}{10000}
>>>       \setpenalties\displaywidowpenalties{1}{10000}
>>> \stopsetups
>>>
>>> \setuplayout[setups=mypenalties]
>>>
>>> \starttext
>>> \starttabulate[|p(.15\textwidth)|p|]
>>>                                  \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf
>> asdf asdf asdf asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>>>           \NC \NR
>>>           \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
>> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>>>           \NC \NR
>>>           \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
>> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>>>           \NC \NR
>>>           \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
>> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>>>           \NC \NR
>>>           \NC asdf \NC a asdf asdf asdf asdf asdf asdf sdf asdf asdf asdf asdf asdf
>> asdf asdf ashjkdf askldf askdlfjöaslkdfjaösdlf
>>>           \NC \NR
>>> \stoptabulate
>>>
>>> \stoptext
>> \startsetups[nopenalties]
>>       \setdefaultpenalties
>> \stopsetups
>>
>>
>> % \setuptabulate[setups=nopenalties] % in next version
>>
>> \setuptabulate[inner=\setups{nopenalties}]
>>
>> or
>>
>> \starttabulate[|p(.15\textwidth)s{nopenalties}|ps{nopenalties}|]
>>
>> but i admit it needs some thought ... outer level only but that is also pretty
>> much an engine thing then (no big deal but ... needs pondering)
> 
> Thanks, I guess that should be added to this page: https://wiki.contextgarden.net/Tabulate
> I'll add it to my list of todos..., but just to make sure the explanation will be correct: what exactly is happening here? The tabulate environment will "inherit" the outer environments setups, but why does this result in the overprinting?
that is catched in a next upoload

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-08-21  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 14:36 [NTG-context] Penalties and overprinting in tabulate denis.maier
2023-08-18 15:10 ` [NTG-context] " Hans Hagen
2023-08-21  8:24   ` denis.maier
2023-08-21  9:35     ` Hans Hagen
2023-08-18 15:27 ` Hans Hagen

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