ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: [ page setup ]
Date: Sun, 19 Jan 2025 20:38:31 +0100	[thread overview]
Message-ID: <9afacaa3-22d6-4cdf-af5f-536cc8976b23@fiee.net> (raw)
In-Reply-To: <5078c9e0-3a72-47d9-b6f4-7c5050a7e336@klankschap.nl>

Am 19.01.25 um 19:07 schrieb vm via ntg-context:
> 
> What would be the simple preferred way to define a document having not 
> just odd and even pages but also alternating width is sets of two.
> e.g. two pages with width 118 mm followed by two pages of 178 mm 
> followed by two pages with width 118 mm, ...

You can define different layouts like

\definelayout[one][width=118mm]
\definelayout[two][width=178mm]

and then activate them for pages like

\definelayout[1,2,5,6][one]
\definelayout[4,5,7,8][two]

To automate this for more pages, try a loop, either with \dorecurse or 
Lua. Calculations are probably easier in Lua.

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
___________________________________________________________________________________

  reply	other threads:[~2025-01-19 19:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-19 18:07 [NTG-context] " vm via ntg-context
2025-01-19 19:38 ` Henning Hraban Ramm [this message]
2025-01-19 20:13   ` [NTG-context] " vm via ntg-context
2025-01-19 20:38   ` vm via ntg-context
2025-01-19 20:43     ` Mikael Sundqvist
2025-01-19 21:08       ` vm via ntg-context
2025-01-26 18:04         ` garulfo
2025-01-26 18:33           ` garulfo

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=9afacaa3-22d6-4cdf-af5f-536cc8976b23@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /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).