From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65192 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Replacing a piece of a paper Date: Wed, 12 Jan 2011 09:39:03 +0100 Message-ID: References: <87vd1vnpv7.fsf@micropit.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294821574 11720 80.91.229.12 (12 Jan 2011 08:39:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 08:39:34 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 12 09:39:27 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcwEm-00059g-T2 for gctc-ntg-context-518@m.gmane.org; Wed, 12 Jan 2011 09:39:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0D6DBCA9E1; Wed, 12 Jan 2011 09:39:24 +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 GqYq3Vf3fzRv; Wed, 12 Jan 2011 09:39:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 428E6CA9D9; Wed, 12 Jan 2011 09:39:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8A2CFCA9D9 for ; Wed, 12 Jan 2011 09:39:19 +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 FgpS0gHdJEOG for ; Wed, 12 Jan 2011 09:39:07 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 785E2CA9CD for ; Wed, 12 Jan 2011 09:39:07 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0C8d6uf002742 for ; Wed, 12 Jan 2011 09:39:06 +0100 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Wed, 12 Jan 2011 09:39:04 +0100 In-Reply-To: <87vd1vnpv7.fsf@micropit.couberia.bzh> User-Agent: Opera Mail/11.00 (Win32) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDSwD6bm - 007f628f44c6 - 20110112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:65192 Archived-At: Hello, thanks to all for the answers, Peter's solution is closest to that I need. = My code now is: --- \setuppapersize[A1,landscape] \setuplayout[page] \setuppositioning [state=3Doverlay, yoffset=3D-12pt % Why? ] \starttext \startpositioning \position(0,0){\rotate[rotation=3D90]{\externalfigure[TvNK]}} \position(630mm,297mm){\framed[frame=3Doff,offset=3Doverlay,background= =3Dcolor,backgroundcolor=3Dwhite] {\externalfigure[_R]}} \stoppositioning \stoptext --- I'd still have two questions: - Is it possible to determine the size of the PDF being inserted (in my cas= e the "TvNK", which is A1)? I'd need to know this because depending on this= , I'd need to \setuppapersize[,landscape]. - Is it possible to "move" the origin for \positioning to the right bottom = corner? It's not "fatal" to know it, as having the PDF size known, I can ev= aluate 630mm =3D width.of.A1 - width.of.A4 and 297 =3D height.of.A1 - heigh= t.of.A4; I'm just curious. Best regards, Lukas On Tue, 11 Jan 2011 21:32:12 +0100, Peter M=FCnster wrote: > Not necessary, context can produce such files for you. > > Example, using positioning macros, that shows also a problem with > vertical offset: > > --8<---------------cut here---------------start------------->8--- > % Produce A2-example: > \startbuffer[a2] > \setuppapersize[A2] > \setuplayout[page] > \setupbackgrounds[page][background=3Dcolor, backgroundcolor=3Dblue] > \starttext > \input tufte > \stoptext > \stopbuffer > \savebuffer[a2][a2-page.tex] > \executesystemcommand{context a2-page} > > % Produce A4-example: > \startbuffer[a4] > \setuppapersize[A4] > \setuplayout[page] > \starttext > \input tufte > \stoptext > \stopbuffer > \savebuffer[a4][a4-page.tex] > \executesystemcommand{context a4-page} > > % Do the job: > \setuppapersize[A2] > \setuplayout[page] > \setuppositioning[state=3Doverlay, > yoffset=3D-12pt%%%%%%%%%%%%%%%%%%%%%%% Why is this offset needed??? > ] > \starttext > \startpositioning > \position(0,0){\externalfigure[a2-page]} > \position(0,0){\framed[frame=3Doff, offset=3Doverlay, background=3Dcolo= r, > backgroundcolor=3Dwhite]{\externalfigure[a4-page]}} > \stoppositioning > \stoptext > --8<---------------cut here---------------end--------------->8--- > -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________