ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definelayout[pagenumber][layout] behaving strangely
@ 2022-12-09  4:42 peter.hopcroft--- via ntg-context
  2022-12-09 16:20 ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: peter.hopcroft--- via ntg-context @ 2022-12-09  4:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: peter.hopcroft

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

The pdf from the tex below looks wrong to me, screenshot attached. It’s always like this when the page number in the second \definelayout is 1 more than the page number in the first. For other pairs of numbers, it behaves like I expect: the short layout is only on those 2 pages.

I’m using the LMTX I updated a few days ago. ConTeXt online’s pdf is the same.

%======================================================
\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 
%======================================================

Also, https://wiki.contextgarden.net/Command/definelayout says:
% different layout for first two pages
\definelayout[1][wide]
\definelayout[3][reset]
This does not work for me.

Cheers, Peter


[-- 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] 2+ messages in thread

* Re: \definelayout[pagenumber][layout] behaving strangely
  2022-12-09  4:42 \definelayout[pagenumber][layout] behaving strangely peter.hopcroft--- via ntg-context
@ 2022-12-09 16:20 ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-12-09 16:20 UTC (permalink / raw)
  To: peter.hopcroft--- via ntg-context; +Cc: Pablo Rodriguez

On 12/9/22 05:42, peter.hopcroft--- via ntg-context wrote:
> The pdf from the tex below looks wrong to me, screenshot attached.
> It’s always like this when the page number in the second
> \definelayout is 1 more than the page number in the first. For other
> pairs of numbers, it behaves like I expect: the short layout is only
> on those 2 pages.
Hi Peter,

I must confess it isn’t totally clear to me whether I’m getting your point.

The following might achieve what you intend:

  \definelayout[odd][reset]
  \definelayout[even][reset]
  \definelayout[2][short]
  \definelayout[3][short]

Just in case it might help,

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09  4:42 \definelayout[pagenumber][layout] behaving strangely peter.hopcroft--- via ntg-context
2022-12-09 16:20 ` Pablo Rodriguez 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).