> On 30 Aug 2025, at 19:50, Marcus Christopher Ludl
> <[email protected]> wrote:
>
> Thank you, Wolfgang. That's an interesting suggestion... I have worked with
> that imposition mechanism before, so I will indeed have a look into it again.
>
> However, in this case, I was actually looking for a way to achieve a kind of
> flexible linking or threading between "pages" or "frames" or
> "columnsetareas"... My folded card will not be folded exactly in the middle,
> there will be some space left for ring binding. So, I think, I need a way to
> specify the exact positions for the four text areas...
>
> Thank you for your help.
> Marcus
Hi Marcus,
The following MWE meets your original request, if I understood it correctly:
\setuppapersize[A5][A4,landscape]
\installpagearrangement 1*4*2*3
{\dosetuparrangement{2}{1}{4}{0}{0}% X,Y,Total,hcutmarks,vcutmarks
\pusharrangedpageONEFOURTWOTHREE\poparrangedpagesAtoB\relax}
\def\pusharrangedpageONEFOURTWOTHREE#1%
{\advancearrangedpageN
\reportarrangedpage\arrangedpageN
\ifcase\arrangedpageN
\or \handlearrangedpageXandY{#1}000\arrangedpageA % 1 rot,hskip,vskip
\or \handlearrangedpageXandY{#1}000\arrangedpageB % 2
\or \handlearrangedpageXandY{#1}010\arrangedpageB % 3
\or \handlearrangedpageXandY{#1}010\arrangedpageA % 4
\poparrangedpages
\fi}
\def\poparrangedpagesAtoB
{\ifnum\arrangedpageN>\zerocount
\paperwidth\arrangedpageX\paperwidth
\paperheight\arrangedpageY\paperheight
\outputarrangedbox\arrangedpageA
\outputarrangedbox\arrangedpageB
\global\arrangedpageN\zerocount
\fi}
\setuparranging[1*4*2*3]
\starttext
\dorecurse{8} {
\centeraligned{\tfd Page \recurselevel}
\input knuth
\page
}
\stoptext
I'm not sure how this will react to different page sizes (for the ring binder
space etc) so you may need to use a completely different approach whereby you
print a "normal" document to PDF in regular page order, and then process that
PDF using a separate Context file and /insertpages to achieve the layout you
want.
Regards,
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________