ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Seems to be a bug with \definelayout
@ 2022-12-09 20:23 peter.hopcroft--- via ntg-context
  2022-12-10  9:44 ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: peter.hopcroft--- via ntg-context @ 2022-12-09 20:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: peter.hopcroft

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

I’ve rewritten my last email. The context below produces the pdf in the screenshot below.

I expect the layout[short] to be applied to pages 2 and 3. It is. But there seem to be 2 bugs:

1 - Pages 4, 5 and 6 have the [short] layout. They should have the default layout.

2 - On pages 5 and 6, the text flows beyond the bottom of the frame. It should stop at the bottom of the frame.

Why do I think these are bugs? If I change the page number in \definelayout[3][short] to \definelayout[4][short], then it behaves differently and as I expect: only pages 2 and 4 have the [short] layout and the text flows within the frames.

Peter

%======================================================
\showframe
\setuppapersize[A4][A3,landscape] \setuparranging[2SIDE]
\setuplayout[backspace=80mm, width=100mm, topspace=50mm, header=0mm, footer=0mm, height=200mm, margindistance=10mm, leftmargin=40mm]

\definelayout[short][backspace=80mm, width=100mm, topspace=50mm, header=0mm, footer=0mm, height=80mm, margindistance=10mm, leftmargin=40mm]

\starttext 
\definelayout[2][short]
\definelayout[3][short]
\dorecurse{10}{\input{knuth} }  
\stoptext 
%======================================================


[-- Attachment #2: definelayout2and3.png --]
[-- Type: image/png, Size: 61012 bytes --]

[-- Attachment #3: Type: text/plain, Size: 496 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] 4+ messages in thread

* Re: Seems to be a bug with \definelayout
  2022-12-09 20:23 Seems to be a bug with \definelayout peter.hopcroft--- via ntg-context
@ 2022-12-10  9:44 ` Pablo Rodriguez via ntg-context
  2022-12-10 20:16   ` peter.hopcroft--- via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-10  9:44 UTC (permalink / raw)
  To: peter.hopcroft--- via ntg-context; +Cc: Pablo Rodriguez

On 12/9/22 21:23, peter.hopcroft--- via ntg-context wrote:
> I’ve rewritten my last email. The context below produces the pdf in
> the screenshot below.
> 
> I expect the layout[short] to be applied to pages 2 and 3. It is. But
> there seem to be 2 bugs:
> 
> 1 - Pages 4, 5 and 6 have the [short] layout. They should have the
> default layout.
> 
> 2 - On pages 5 and 6, the text flows beyond the bottom of the frame.
> It should stop at the bottom of the frame.

Hi Peter,

as in my reply from yesterday, this seems to fix your bugs:

  \showframe
  \setuppapersize[A4][A3,landscape] \setuparranging[2SIDE]
  \setuplayout[backspace=80mm, width=100mm, topspace=50mm, header=0mm,
  footer=0mm, height=200mm, margindistance=10mm, leftmargin=40mm]

  \definelayout[short][backspace=80mm, width=100mm, topspace=50mm,
  header=0mm, footer=0mm, height=80mm, margindistance=10mm,
  leftmargin=40mm]

  \starttext
  \definelayout[even][reset]
  \definelayout[odd][reset]
  \definelayout[2][short]
  \definelayout[3][short]
  \dorecurse{10}{\input{knuth} }
  \stoptext

It seems that you need to reset the layout in all other pages (where the
special layout isn’t applied).

I hope it helps,

Pablo
___________________________________________________________________________________
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] 4+ messages in thread

* Re: Seems to be a bug with \definelayout
  2022-12-10  9:44 ` Pablo Rodriguez via ntg-context
@ 2022-12-10 20:16   ` peter.hopcroft--- via ntg-context
  2022-12-10 20:38     ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: peter.hopcroft--- via ntg-context @ 2022-12-10 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: peter.hopcroft, Pablo Rodriguez

Yes Pablo, that does  fix it. I'm sorry, I misunderstood your first reply. Peter 

> On 10/12/2022, at 10:44 PM, Pablo Rodriguez via ntg-context <ntg-context@ntg.nl> wrote:
> 
> On 12/9/22 21:23, peter.hopcroft--- via ntg-context wrote:
>> I’ve rewritten my last email. The context below produces the pdf in
>> the screenshot below.
>> 
>> I expect the layout[short] to be applied to pages 2 and 3. It is. But
>> there seem to be 2 bugs:
>> 
>> 1 - Pages 4, 5 and 6 have the [short] layout. They should have the
>> default layout.
>> 
>> 2 - On pages 5 and 6, the text flows beyond the bottom of the frame.
>> It should stop at the bottom of the frame.
> 
> Hi Peter,
> 
> as in my reply from yesterday, this seems to fix your bugs:
> 
>  \showframe
>  \setuppapersize[A4][A3,landscape] \setuparranging[2SIDE]
>  \setuplayout[backspace=80mm, width=100mm, topspace=50mm, header=0mm,
>  footer=0mm, height=200mm, margindistance=10mm, leftmargin=40mm]
> 
>  \definelayout[short][backspace=80mm, width=100mm, topspace=50mm,
>  header=0mm, footer=0mm, height=80mm, margindistance=10mm,
>  leftmargin=40mm]
> 
>  \starttext
>  \definelayout[even][reset]
>  \definelayout[odd][reset]
>  \definelayout[2][short]
>  \definelayout[3][short]
>  \dorecurse{10}{\input{knuth} }
>  \stoptext
> 
> It seems that you need to reset the layout in all other pages (where the
> special layout isn’t applied).
> 
> I hope it helps,
> 
> Pablo
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


___________________________________________________________________________________
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] 4+ messages in thread

* Re: Seems to be a bug with \definelayout
  2022-12-10 20:16   ` peter.hopcroft--- via ntg-context
@ 2022-12-10 20:38     ` Mikael Sundqvist via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-12-10 20:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

On Sat, Dec 10, 2022 at 9:17 PM peter.hopcroft--- via ntg-context
<ntg-context@ntg.nl> wrote:
>
> Yes Pablo, that does  fix it. I'm sorry, I misunderstood your first reply. Peter

There was a request (by you?) some days ago on stackexchange about
altering layout on say "six pages from here" (One can now do
\definelayout[+6][height=16cm]). Maybe something got changed regarding
the reset when one does \definelayout[n] to alter the nth page? I will
double check with Hans.

/Mikael
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2022-12-10 20:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 20:23 Seems to be a bug with \definelayout peter.hopcroft--- via ntg-context
2022-12-10  9:44 ` Pablo Rodriguez via ntg-context
2022-12-10 20:16   ` peter.hopcroft--- via ntg-context
2022-12-10 20:38     ` Mikael Sundqvist via ntg-context

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