ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "peter.hopcroft--- via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: peter.hopcroft@icloud.com
Subject: \definelayout[pagenumber][layout] behaving strangely
Date: Fri, 9 Dec 2022 17:42:07 +1300	[thread overview]
Message-ID: <FDA71358-7EC5-4AD0-A317-78C3BA0762CA@icloud.com> (raw)

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

             reply	other threads:[~2022-12-09  4:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-09  4:42 peter.hopcroft--- via ntg-context [this message]
2022-12-09 16:20 ` Pablo Rodriguez via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FDA71358-7EC5-4AD0-A317-78C3BA0762CA@icloud.com \
    --to=ntg-context@ntg.nl \
    --cc=peter.hopcroft@icloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).