% Context file
% Filename: arrange.tex
% Willi Egger
% 07-01-2009
% Copyright (c) 2009 BOEDE. All rights reserved.

% This file can be used for visualisation of the different folding schemes for booklets/sections
% Hereunder follow the currently implemented impositions:

% \setuparranging[2*16]	%section: one sheet 2 x 16 pages = 32 pages
% \setuparranging[2*8]	%section: one sheet 2 x 8 pages = 16 pages
% \setuparranging[2*8*Z]%section: one sheet 2 x 8 pages = 16 pages, special folding: zig-zag
% \setuparranging[2*6*Z]%section: one sheet 2 x 6 pages = 12 pages, special folding: zig-zag
% \setuparranging[1*8]	%section: one sheet 1 x 8 pages = 8 pages singlesided!
% \setuparranging[1*4]	%section: one sheet 1 x 4 pages = 4 pages singlesided!
% \setuparranging[2*4]	%section: one sheet 2 x 4 pages = 8 pages
% \setuparranging[2*2]	%section: one sheet 2 x 2 pages = 4 pages
% \setuparranging[2**2]	%section: one sheet 2 x 2 pages = 4 pages
% \setuparranging[2SIDE]	%2 pages next to each other single sided only!
% \setuparranging[2TOP]		%2 pages above each other, single sided only!
% \setuparranging[2UP]		%2 pages next to each other, n sheets arranged for a single booklet!
% \setuparranging[2DOWN]	%2 pages above each other,  n sheets arranged for a single booklet!
% \setuparranging[2TOPSIDE]	%two odd pages on one side, two even pages verso, above each other
% \setuparranging[2*4*2]	%section of 16 pages: 2 sheets, 4 pages front and backside
% \setuparranging[2*2*4] 	%section of 16 pages: 4 sheets, 2 pages front and backside
% \setuparranging[XY]		%one sheet with x rows and y columns
% \setuparranging[TRYPTICHON]%Flyer: one sheet 2 x 3 pages = 6 pages
% \setuparranging[DOUBLEWINDOW]%Flyer: one sheet 2 x 4 pages = 8 pages
% \setuparranging[ZFLYER-8]%Flyer: one sheet 2 x 4 pages = 8 pages
% \setuparranging[ZFLYER-10]%Flyer: one sheet 2 x 5 pages = 10 pages
% \setuparranging[ZFLYER-12]%Flyer: one sheet 2 x 6 pages = 12 pages
% \setuparranging[MAPFLYER-12]%Flyer: one sheet 2 x 6 pages = 12 pages

\usemodule[folding]	
\setupbodyfont[ss,8pt]

\setuppapersize [A7][A4,landscape]

\setuparranging [1*4] 
\setuppagenumbering [alternative=doublesided,location=footer] %alternative=doublesided,
\setuplayout [margin=10mm,width=fit,backspace=11.5mm] 
\setupbackgrounds [text][background=screen,backgroundscreen=0.7] 
\setupcolors [state=start] 
\setuplayout [location=middle,marking=on]
\setuptolerance [tolerant] 

% Please fill in the value, which is used in \setuparranging:
\def\Style{[1*4]}


\startbuffer[Fakepage]
	\strut
	\blank
	\midaligned{\Style}
	\vfill
	\midaligned{Example page}
	\vfill
\stopbuffer

% Add a text which is typeset in the header area:
\setupheadertexts[Section folding example]

\starttext
\showframe

\dorecurse{4}{\getbuffer[Fakepage]\page}

\stoptext
