From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76534 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Is it possible to define a custom imposition schema? (sure it is, but how?) Date: Tue, 29 May 2012 20:04:44 +0200 Message-ID: References: <878vgayl0w.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338314697 5294 80.91.229.3 (29 May 2012 18:04:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 18:04:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 29 20:04:53 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZQmp-0006Ek-89 for gctc-ntg-context-518@m.gmane.org; Tue, 29 May 2012 20:04:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB51D101E7; Tue, 29 May 2012 20:04:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iSWbDeAyMzef; Tue, 29 May 2012 20:04:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED19C101E2; Tue, 29 May 2012 20:04:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96251101E2 for ; Tue, 29 May 2012 20:04:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bJwy8+1XXAg3 for ; Tue, 29 May 2012 20:04:46 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id A3B41101E0 for ; Tue, 29 May 2012 20:04:46 +0200 (CEST) Original-Received: from webmail.digitpaint.nl (webmail.digitpaint.nl [83.98.197.40]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4TI4jrf028912 for ; Tue, 29 May 2012 20:04:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by webmail.digitpaint.nl (Postfix) with ESMTP id 114E218ABA6 for ; Tue, 29 May 2012 20:04:45 +0200 (CEST) Original-Received: from webmail.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w2iIWVn-qcnC for ; Tue, 29 May 2012 20:04:44 +0200 (CEST) Original-Received: from willis-computer.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by webmail.digitpaint.nl (Postfix) with ESMTPSA id D3412189CFB for ; Tue, 29 May 2012 20:04:44 +0200 (CEST) In-Reply-To: <878vgayl0w.fsf@universe.krase.net> X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.40; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HfS4J4y - 51e886d52652 - 20120529 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76534 Archived-At: Hi Marco, If I understand correctly what you need is a system which is basically based on booklet-printing but each booklet should be restricted to 16 pages. In this case you might try \setuparranging[2*2*4] This scheme put two pages on the front and two pages on the backside of a sheet of paper. Then it uses 4 sheets to complete the section. Willi On May 29, 2012, at 7:06 PM, Marco Pessotto wrote: > > Hello there. > > I'd need a custom imposition schema, just like the 2*4*2, but first the > sheets will be folded, then inserted in signatures of 16 pages, and then > finally bound. (They said the machine can fold only one sheet). > > I came up with 3 "solutions" (or 3 hacks, as you wish): > > 1. psutils/pstops > > 2. layers > > 3. hack page-imp.mkiv > > > 1. The first solution would be the faster, but after spending a day on > it I gave up, because I have endless issue with cropped pages, paper > dimension not correctly set, and I only scratched the surface. I don't > know if exists some support for psutils (doesn't look so), but I have > the feeling that software is pretty dead. > > 2. Layers: I'm attaching the code below. Does it seem sensible, or is > there a better way to do it? (I'll create a template from that, and will > loop over every 16 pages with the usual perl hack). It seems to work, > even if visually it looks a bit shifted to right (I can adjust > it manually). [An alternate approach could be just various \hbox, but > maybe the layer solution is better for absolute positioning] > > 3. page-imp.mkiv would be the best solution (obviously). I've dug a bit > into the code, but I'm in deep waters. I can't understand where the > sequence of the pages is defined. the \pusharrangedpageSCHEMA seems just > to define the position inside the page, not the sequence of the shipped > out page. Also, what are \c_page_marks_nx and \c_page_marks_ny? Any > hint about how this machinery works? > > > Thanks > > Best wishes > > > % start draft > > \definepapersize[carta][width=320mm,height=440mm] > \setuppapersize[carta][carta] > \setuplayout > [topspace=0pt, > backspace=0pt, > header=0pt, > footer=0pt, > margin=0pt, > marking=on, > width=320mm, > height=440mm, > location=middle] > > \setuppagenumbering[alternative=doublesided,location=] > \setuprotate[location=depth,rotation=180] > > % \showframe > > \starttext > > % page one > > \definelayer[PageLayer1][position=no] > \setuplayer > [PageLayer] > [preset=topleft, > height=\paperheight,width=\paperwidth] > > \setlayer[PageLayer1][x=0mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=13] > } > } > \setlayer[PageLayer1][x=160mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=4] > } > } > \setlayer[PageLayer1][x=0mm,y=220mm]{ > \externalfigure[libretto.pdf][page=16] > } > \setlayer[PageLayer1][x=160mm,y=220mm]{ > \externalfigure[libretto.pdf][page=1] > } > \placelayer[PageLayer1] > > %%% page 2 > > \definelayer[PageLayer2][position=no] > \setuplayer > [PageLayer] > [preset=topleft, > option=test, > height=\paperheight,width=\paperwidth] > > \setlayer[PageLayer2][x=0mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=3] > } > } > \setlayer[PageLayer2][x=160mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=14] > } > } > \setlayer[PageLayer2][x=0mm,y=220mm]{ > \externalfigure[libretto.pdf][page=2] > } > \setlayer[PageLayer2][x=160mm,y=220mm]{ > \externalfigure[libretto.pdf][page=15] > } > \placelayer[PageLayer2] > > %page 3 > > \definelayer[PageLayer3][position=no] > \setuplayer > [PageLayer] > [preset=topleft, > option=test, > height=\paperheight,width=\paperwidth] > > \setlayer[PageLayer3][x=0mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=9] > } > } > \setlayer[PageLayer3][x=160mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=8] > } > } > \setlayer[PageLayer3][x=0mm,y=220mm]{ > \externalfigure[libretto.pdf][page=12] > } > \setlayer[PageLayer3][x=160mm,y=220mm]{ > \externalfigure[libretto.pdf][page=5] > } > \placelayer[PageLayer3] > > % page 4 > \definelayer[PageLayer4][position=no] > \setuplayer > [PageLayer] > [preset=topleft, > option=test, > height=\paperheight,width=\paperwidth] > > \setlayer[PageLayer4][x=0mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=7] > } > } > \setlayer[PageLayer4][x=160mm,y=0mm]{ > \rotate{ > \externalfigure[libretto.pdf][page=10] > } > } > \setlayer[PageLayer4][x=0mm,y=220mm]{ > \externalfigure[libretto.pdf][page=6] > } > \setlayer[PageLayer4][x=160mm,y=220mm]{ > \externalfigure[libretto.pdf][page=11] > } > \placelayer[PageLayer4] > > \stoptext > > > > > -- > Marco > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________