hi, i ended up using a very flexible (open source, LUA scriptable by option) imposition tool: podofoimpose (http://podofo.sourceforge.net/tools.html) it's just an additional step to get my output done (as my ConTeXt files are generated by a ruby script) ... cheers artur On 02/27/2014 04:43 PM, Aditya Mahajan wrote:
On Thu, 27 Feb 2014, amerke wrote:
hi rudolf (& list),
thank you for your 'quick hack', it's ok for my current solution. page number, margins and background and stuff like grid alignment are still a problem ...
but, i suppose, there must be :-) a tiny piece of code in ConTeXt, where the rotation of the whole page can be achieved (but still treating the page as a landscape page for the above setup arranging layer)
maybe someone knows how to do it and can share his knowledge ... ?
Do you need interaction (hyperref in latex-speak) to work? If not, one possibility is the following.
You anyways have to do manual page-breaking because your sheets are of different size. Create a PDF with two A6 pages followed by an A5 page (and repeat).
Use a separate CLD (Context lua document) for arranging. Once you know the number of pages of the pdf (you can get this in lua as well as in tex), you can simple use something like (pseudo code)
for i = 1, no_of_page, 3 do context.setlayer( {"page"}, {x = "0", y = "0" }, { "\\externalfigure[file][page=i]" }) context.setlayer( {"page"}, {x = "0", y = "0.5\\textheight" }, { "\\externalfigure[file][page=i+1]" }) context.setlayer( {"page"}, {x = "0.5\\textwidth", y = "0" }, { "\\externalfigure[file][page=i+2]" }) end
Aditya ___________________________________________________________________________________
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 ___________________________________________________________________________________