From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86488 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: different page sizes on one sheet Date: Thu, 27 Feb 2014 10:43:49 -0500 (EST) Message-ID: References: <530BA3BB.2070508@udo.edu> <1C65D8A5-075D-4EF2-9130-D9FB0D359240@gmail.com> <530CA969.8090506@udo.edu> <2D79A833-7E52-4902-8F78-2DC21027102E@gmail.com> <530DFC3C.9070602@udo.edu> <20140226164613.GB8698@mini> <530EF303.3070400@udo.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393515841 4937 80.91.229.3 (27 Feb 2014 15:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2014 15:44:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 27 16:44:11 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WJ386-0007O1-UZ for gctc-ntg-context-518@m.gmane.org; Thu, 27 Feb 2014 16:44:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE2E1101EC; Thu, 27 Feb 2014 16:44:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TOUVQeVWO31S; Thu, 27 Feb 2014 16:44:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 38DE5101E7; Thu, 27 Feb 2014 16:44:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9DE5101E7 for ; Thu, 27 Feb 2014 16:44:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FEZ0V3bzMYPh for ; Thu, 27 Feb 2014 16:44:04 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D8D2E101E1 for ; Thu, 27 Feb 2014 16:43:55 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1RFhqmw002433 for ; Thu, 27 Feb 2014 16:43:54 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 530F5D36.E799E.1223 ; Authuser adityam; 27 Feb 2014 10:43:51 EST In-Reply-To: <530EF303.3070400@udo.edu> User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLvrHRsa - 21757962df43 - 20140227 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86488 Archived-At: 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 ___________________________________________________________________________________