From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76532 Path: news.gmane.org!not-for-mail From: Marco Pessotto Newsgroups: gmane.comp.tex.context Subject: Is it possible to define a custom imposition schema? (sure it is, but how?) Date: Tue, 29 May 2012 19:06:23 +0200 Message-ID: <878vgayl0w.fsf@universe.krase.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338311213 8049 80.91.229.3 (29 May 2012 17:06:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 May 2012 17:06:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 29 19:06:52 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 1SZPsg-0005q2-Q9 for gctc-ntg-context-518@m.gmane.org; Tue, 29 May 2012 19:06:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A2A8101E8; Tue, 29 May 2012 19:06: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 9+3HY4+Xt8or; Tue, 29 May 2012 19:06:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B84E4101E0; Tue, 29 May 2012 19:06:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 73D24101E0 for ; Tue, 29 May 2012 19:06:46 +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 ZIo3c3Xq0Ztg for ; Tue, 29 May 2012 19:06:45 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 842C7101DD for ; Tue, 29 May 2012 19:06:45 +0200 (CEST) Original-Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4TH6hcI010249 for ; Tue, 29 May 2012 19:06:44 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZPsW-0005lI-Le for ntg-context@ntg.nl; Tue, 29 May 2012 19:06:40 +0200 Original-Received: from 93-137-164-249.adsl.net.t-com.hr ([93.137.164.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 19:06:40 +0200 Original-Received: from melmothx by 93-137-164-249.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 19:06:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 177 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-137-164-249.adsl.net.t-com.hr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:iGqSS502a5x9B0h58elhOptP7SM= X-Bayes-Prob: 0.9996 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=80.91.229.3; country=NO; latitude=62.0000; longitude=10.0000; http://maps.google.com/maps?q=62.0000,10.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHfR6Hy4 - 47061d626707 - 20120529 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:76532 Archived-At: 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 ___________________________________________________________________________________