\setuppageshift and \setuparranging
Hi, I'm testing ConTeXt's imposition abilities on a cd booket project. I'd like pages to be shifted in order to compensate paper thickness. Running the following code leads to pages that are properly shifted ; but when uncommenting the line with \setuparranging, pages aren't shifted any longer. What's wrong with my code ? Thanks in advance, Nicolas \setuppapersize[CD][A4] \definepageshift[test][horizontal][10pt,20pt,30pt,40pt,50pt] \setuppageshift[test] \setuplayout[margin=5mm,marking=on,location=middle] %\setuparranging[2*2*4,rotated] \setuppageshift[test] \showframe \starttext \dorecurse{14}{\input tufte} \stoptext
Hi Nicolas, Page shifting is working properly here, however you need to setup the shifting as: \definepageshift[test][horizontal][30pt,-30pt,20pt,-20pt,10pt,-10pt, 0pt,0pt,0pt,0pt,10pt,-10pt,+20pt,-20pt,30pt,-30pt] The page shifting mechanism is looping over the definition. i.e. you have to specify what kind of shift you want for each page in a section (i.e. 16 parameters in this case). Then you will have tell ConTeXt: \setuppageshift[paper][test] The [paper] option is needed in arranging-mode. Kind regards Willi On May 31, 2009, at 6:37 PM, Nicolas Girard wrote:
Hi, I'm testing ConTeXt's imposition abilities on a cd booket project. I'd like pages to be shifted in order to compensate paper thickness. Running the following code leads to pages that are properly shifted ; but when uncommenting the line with \setuparranging, pages aren't shifted any longer. What's wrong with my code ? Thanks in advance, Nicolas
\setuppapersize[CD][A4] \definepageshift[test][horizontal][10pt,20pt,30pt,40pt,50pt] \setuppageshift[test] \setuplayout[margin=5mm,marking=on,location=middle] %\setuparranging[2*2*4,rotated] \setuppageshift[test] \showframe \starttext \dorecurse{14}{\input tufte} \stoptext ______________________________________________________________________ _____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
2009/6/2 Willi Egger
Hi Nicolas,
Page shifting is working properly here, however you need to setup the shifting as:
\definepageshift[test][horizontal][30pt,-30pt,20pt,-20pt,10pt,-10pt,0pt,0pt,0pt,0pt,10pt,-10pt,+20pt,-20pt,30pt,-30pt]
The page shifting mechanism is looping over the definition. i.e. you have to specify what kind of shift you want for each page in a section (i.e. 16 parameters in this case).
Then you will have tell ConTeXt:
\setuppageshift[paper][test]
The [paper] option is needed in arranging-mode.
Hi Willi, thanks for your answer, I could make it work too. I have several additional questions regarding imposition ; i'll post them in new threads. Cheers, Nicolas
participants (2)
-
Nicolas Girard
-
Willi Egger