Changes

Jump to navigation Jump to search
1,042 bytes removed ,  09:21, 29 July 2011
restructuring; deleted 3SIDE since it doesn’t work any more (use XY instead)
{{todo|some graphical examples}}
===Additional schemasXY schema===
Hraban needed a "3SIDE" schema Beware, you need to fit three "filius" planner pages on one A4 sheet. Willi wrote it:<texcode>\unprotect% New page imposition scheme 3SIDE by Willi Egger 2003-07-21 \installpagearrangement 3SIDE {\dosetuparrangement{3}{1}{6}{4}{2}% \pusharrangedpageTHREESIDE\poparrangedpagesAB\relax} \def\pusharrangedpageTHREESIDE#1% Willi's approach {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \ifcase\arrangedpageN \or \handlearrangedpageXandY{#1}000\arrangedpageA % 1 \or \handlearrangedpageXandY{#1}010\arrangedpageA % 2 \or \handlearrangedpageXandY{#1}020\arrangedpageA % 3 \or \handlearrangedpageXandY{#1}000\arrangedpageB % 4 \or \handlearrangedpageXandY{#1}010\arrangedpageB % 5 \or \handlearrangedpageXandY{#1}020\arrangedpageB % 6 \poparrangedpages \fi} \protect</texcode>You can use this code simply in set up your environment file. The other schemas are XY arranging in <tt>page-imp.tex</tt>.the right order:
Use it like this:
<texcode>
\definepapersize [filius][width=92mm, height=172mm]\setuppapersize [filiusA7][A4,landscape]\setuparranging setuppaper[3SIDE]\setuplayout [location=middle, alternative=singlesided, gridnx=no4, markingny=on, leftmargin=10mm, leftmargindistance=0mm, topspace=2mm, header=4mm, footer=0mm, width=77mm, height=166mm]</texcode>  ConTeXt is also handy when you need to '''rearrange an existing pdf''' into a booklet. This is a trial-and-error solution by Mari for rearranging an A4 pdf file into 2*8 spreads on A3 sheet (-> A6 pages when printed and cut). The texexec.tex file that was created by the first tries with <tt>texexec --pdfarrange</tt> (which didn't seem to have enough options) was a great help while working towards this solution.Not sure about the margins on the final A6 pages (the original has equal left and right margins, some extra inside margin might be a good thing), but at least otherwise this seems to do the trick: <texcode>\setuppapersize[A6][A3] %individual page A6 size, print size A3must come before \setuparranging[2*8,rotated] %makes an 8 page gathering when folded (duplex printing!)\setupoutputsetuplayout[pdfpage]\setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, headermarking=0pt, footer=0pton]\setuppagenumbering[alternative=doublesided] \starttext \insertpages [original_file.pdf]setuparranging [width=0ptXY\stoptext 
</texcode>
\stoptext</texcode>
 
=== Rearranging existing PDFs===
 
ConTeXt is also handy when you need to '''rearrange an existing pdf''' into a booklet. This is a trial-and-error solution by Mari for rearranging an A4 pdf file into 2*8 spreads on A3 sheet (-> A6 pages when printed and cut). The <tt>texexec.tex</tt> file that was created by the first tries with <tt>texexec --pdfarrange</tt> (which didn't seem to have enough options) was a great help while working towards this solution.
Not sure about the margins on the final A6 pages (the original has equal left and right margins, some extra inside margin might be a good thing), but at least otherwise this seems to do the trick:
 
<texcode>
\setuppapersize[A6][A3] %individual page A6 size, print size A3
\setuparranging[2*8,rotated] %makes an 8 page gathering when folded (duplex printing!)
\setupoutput[pdf]
\setuplayout
[backspace=0pt,
topspace=0pt,
width=middle,
height=middle,
location=middle,
header=0pt,
footer=0pt]
\setuppagenumbering[alternative=doublesided]
 
\starttext
 
\insertpages
[original_file.pdf][width=0pt]
 
\stoptext
 
</texcode>
 
== Cut marks ==

Navigation menu