* [NTG-context] [ imposition schemas ] @ 2024-11-20 21:25 vm via ntg-context 2024-11-24 11:46 ` [NTG-context] " Bruce Horrocks 0 siblings, 1 reply; 6+ messages in thread From: vm via ntg-context @ 2024-11-20 21:25 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: vm Due to the sheer amount of possibilities combined with my current lack of full understanding how parameters work, what would be the (simple) way to layout an existing pdf containing A5 pages in to groups of booklets different from all or 4 A4 sheets each (32 pages of the pdf) e.g. the 2*2*4 does generate a booklets containing 4 sheets with 16 pages. Is there a way to change the number of sheets to bundles of 5 or 8 ? .F ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [ imposition schemas ] 2024-11-20 21:25 [NTG-context] [ imposition schemas ] vm via ntg-context @ 2024-11-24 11:46 ` Bruce Horrocks 2024-11-24 14:45 ` vm via ntg-context 0 siblings, 1 reply; 6+ messages in thread From: Bruce Horrocks @ 2024-11-24 11:46 UTC (permalink / raw) To: ntg-context mailing list > On 20 Nov 2024, at 21:25, vm via ntg-context <ntg-context@ntg.nl> wrote: > > Due to the sheer amount of possibilities combined with my current lack of full understanding how parameters work, what would be the (simple) way to layout an existing pdf containing A5 pages in to groups of booklets different from all or 4 A4 sheets each (32 pages of the pdf) > > e.g. the 2*2*4 does generate a booklets containing 4 sheets with 16 pages. > Is there a way to change the number of sheets to bundles of 5 or 8 ? I see there are no answers yet so I’ll ask some questions on things that have been confusing me, and possibly others, and maybe you’ll get an answer. Q1: When you say “an existing PDF containing A5 pages” do you mean (a) a PDF created using Context that is set for A5 but could be re-run through Context using different \setuppapersize settings to achieve what you want, or (b) it is literally an existing PDF, possibly produced by something other than Context, and you want to extract the pages and re-arrange them into a booklet? If so, what is to happen with page numbers? I ask because the two solutions would be quite different. Q2: I don’t understand what you mean by “different from all” in the phrase “in to groups of booklets different from all”. Do you mean into groups of pages that can be folded into a “booklet” that can be bound with the others, i.e. a signature? If so, do you want those output into separate PDFs or in one so the first 8 pages, say, form one signature, the next 8 for the next and so on? Q3: I don’t know of a way to change the number of pages but how would bundles of 5 work since it is not a multiple of 4? Regards, — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [ imposition schemas ] 2024-11-24 11:46 ` [NTG-context] " Bruce Horrocks @ 2024-11-24 14:45 ` vm via ntg-context 2024-11-25 0:55 ` Bruce Horrocks 0 siblings, 1 reply; 6+ messages in thread From: vm via ntg-context @ 2024-11-24 14:45 UTC (permalink / raw) To: Bruce Horrocks, ntg-context mailing list; +Cc: vm On 24/11/2024 12:46, Bruce Horrocks wrote: > Q3: I don’t know of a way to change the number of pages but how would bundles of 5 work since it is not a multiple of 4? You'd combine a number of A4 sheets (each with 4 pages) into stacks. The source for the imposition is a pdf containing A5 pages. The [2*2*4] scheme generates multiple katernen (stacks) of 4 sheets. Each sheet containing 4 pages per A4. The katern contains 4*4 pages. Instead of stacks of 4 (4*4=16 pages per stack) where then katernen will number from 1..16, 17.32, ... I'd like to combine 5 (5*4=20) pages per stack) 1..20, 21..40, ... or 6 (6*4=24) etc ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [ imposition schemas ] 2024-11-24 14:45 ` vm via ntg-context @ 2024-11-25 0:55 ` Bruce Horrocks 2024-11-25 1:00 ` Bruce Horrocks 2024-11-25 2:26 ` vm via ntg-context 0 siblings, 2 replies; 6+ messages in thread From: Bruce Horrocks @ 2024-11-25 0:55 UTC (permalink / raw) To: vm; +Cc: ntg-context mailing list On 24 Nov 2024, at 14:45, vm <vm@klankschap.nl> wrote: > > > > On 24/11/2024 12:46, Bruce Horrocks wrote: >> Q3: I don’t know of a way to change the number of pages but how would bundles of 5 work since it is not a multiple of 4? > > You'd combine a number of A4 sheets (each with 4 pages) into stacks. > > The source for the imposition is a pdf containing A5 pages. > > The [2*2*4] scheme generates multiple katernen (stacks) of 4 sheets. > Each sheet containing 4 pages per A4. > The katern contains 4*4 pages. > > Instead of stacks of 4 (4*4=16 pages per stack) where then katernen will number from 1..16, 17.32, ... > > I'd like to combine 5 (5*4=20) pages per stack) 1..20, 21..40, ... > or 6 (6*4=24) etc I see. The following will give you 20 pages per stack. To get 24 you’ll need to create \arrangedpageK and add it in following the same pattern as A-J. %D Section of 40 pages: 5 sheets, 2 pages front and backside %D Coding: [2*2*5] \newbox\arrangedpageI \newbox\arrangedpageJ \installpagearrangement 2*2*5 {\dosetuparrangement{2}{1}{20}{0}{0}% X,Y,Total,hcutmarks,vcutmarks \pusharrangedpageTWOTWOFIVE\poparrangedpagesAtoJ/pop\relax} \permanent\protected\def\pusharrangedpageTWOTWOFIVE#1% {\advancearrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}010\arrangedpageA % 1 rot,hskip,vskip \or \handlearrangedpageXandY{#1}000\arrangedpageB % 2 \or \handlearrangedpageXandY{#1}010\arrangedpageC % 3 \or \handlearrangedpageXandY{#1}000\arrangedpageD % 4 \or \handlearrangedpageXandY{#1}010\arrangedpageE % 5 \or \handlearrangedpageXandY{#1}000\arrangedpageF % 6 \or \handlearrangedpageXandY{#1}010\arrangedpageG % 7 \or \handlearrangedpageXandY{#1}000\arrangedpageH % 8 \or \handlearrangedpageXandY{#1}010\arrangedpageI % 9 \or \handlearrangedpageXandY{#1}000\arrangedpageJ % 10 \or \handlearrangedpageXandY{#1}010\arrangedpageJ % 11 \or \handlearrangedpageXandY{#1}000\arrangedpageI % 12 \or \handlearrangedpageXandY{#1}010\arrangedpageH % 13 \or \handlearrangedpageXandY{#1}000\arrangedpageG % 14 \or \handlearrangedpageXandY{#1}010\arrangedpageF % 15 \or \handlearrangedpageXandY{#1}000\arrangedpageE % 16 \or \handlearrangedpageXandY{#1}010\arrangedpageD % 17 \or \handlearrangedpageXandY{#1}000\arrangedpageC % 18 \or \handlearrangedpageXandY{#1}010\arrangedpageB % 19 \or \handlearrangedpageXandY{#1}000\arrangedpageA % 20 \poparrangedpages \fi} \permanent\protected\def\poparrangedpagesAtoJ {\ifnum\arrangedpageN>\zerocount \paperwidth\arrangedpageX\paperwidth \paperheight\arrangedpageY\paperheight \outputarrangedbox\arrangedpageA \outputarrangedbox\arrangedpageB \outputarrangedbox\arrangedpageC \outputarrangedbox\arrangedpageD \outputarrangedbox\arrangedpageE \outputarrangedbox\arrangedpageF \outputarrangedbox\arrangedpageG \outputarrangedbox\arrangedpageH \outputarrangedbox\arrangedpageI \outputarrangedbox\arrangedpageJ \global\arrangedpageN\zerocount \fi} \def\Schema{2*2*5} \setuppapersize[A5][A4,landscape] % the schema being tested \setuparranging [\Schema] % Visuals \setupbodyfont[ss,14pt] \setuplayout [margin=0pt, width=fit, header=2.8ex, footer=2.8ex] \setupalign[middle,hilo] \setuppagenumbering [alternative=doublesided,location=footer] \setupheadertexts[\CONTEXT\ imposition test] %\showframe \setupbackgrounds [text][text][background=color,backgroundcolor=lightgray] \setuplayout [location=middle,marking=off] \startbuffer[Fakepage] \strut \blank \bold{[\Schema]} \vfill This is page \recurselevel \vfill \stopbuffer \starttext \dorecurse{40}{\getbuffer[Fakepage]\page} \stoptext — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [ imposition schemas ] 2024-11-25 0:55 ` Bruce Horrocks @ 2024-11-25 1:00 ` Bruce Horrocks 2024-11-25 2:26 ` vm via ntg-context 1 sibling, 0 replies; 6+ messages in thread From: Bruce Horrocks @ 2024-11-25 1:00 UTC (permalink / raw) To: ntg-context mailing list > On 25 Nov 2024, at 00:55, Bruce Horrocks <ntg@scorecrow.com> wrote: > > %D Section of 40 pages: 5 sheets, 2 pages front and backside Sorry, typo in the first comment. It should read %D Section of 20 pages: 5 sheets, 2 pages front and backside The functionality isn't affected but might be confusing if not noted. — Bruce Horrocks Hampshire, UK ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [NTG-context] Re: [ imposition schemas ] 2024-11-25 0:55 ` Bruce Horrocks 2024-11-25 1:00 ` Bruce Horrocks @ 2024-11-25 2:26 ` vm via ntg-context 1 sibling, 0 replies; 6+ messages in thread From: vm via ntg-context @ 2024-11-25 2:26 UTC (permalink / raw) To: Bruce Horrocks; +Cc: ntg-context mailing list, vm On 25/11/2024 01:55, Bruce Horrocks wrote: > I see. The following will give you 20 pages per stack. To get 24 you’ll need to create \arrangedpageK and add it in following the same pattern as A-J. thanks .F ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-25 2:28 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-11-20 21:25 [NTG-context] [ imposition schemas ] vm via ntg-context 2024-11-24 11:46 ` [NTG-context] " Bruce Horrocks 2024-11-24 14:45 ` vm via ntg-context 2024-11-25 0:55 ` Bruce Horrocks 2024-11-25 1:00 ` Bruce Horrocks 2024-11-25 2:26 ` vm 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).