From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65195 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Replacing a piece of a paper Date: Wed, 12 Jan 2011 10:30:39 +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 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294824665 25936 80.91.229.12 (12 Jan 2011 09:31:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Jan 2011 09:31:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 12 10:31:01 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 1Pcx2i-0004WI-8K for gctc-ntg-context-518@m.gmane.org; Wed, 12 Jan 2011 10:31:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E267CA9F1; Wed, 12 Jan 2011 10:30:59 +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 JBk7CdCTLREw; Wed, 12 Jan 2011 10:30:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9EB4CCA9DA; Wed, 12 Jan 2011 10:30:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA81ECA9DA for ; Wed, 12 Jan 2011 10:30:55 +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 mUBcewgeVvp1 for ; Wed, 12 Jan 2011 10:30:44 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id A4962CA9D8 for ; Wed, 12 Jan 2011 10:30:44 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0C9UhtI020488 for ; Wed, 12 Jan 2011 10:30:44 +0100 Original-Received: by bwz16 with SMTP id 16so373182bwz.14 for ; Wed, 12 Jan 2011 01:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=6Rf2n1JV9spKPp/Xfkh66hNmZWR5ArkqRtssdyrthVY=; b=u+ke+ZKjHUmMChU2dkKxJNenS302ZyPKvtrdJ/bS1vFPFBx8tK8McwXN31hpIo/j04 JNCSUrwhQvFef8r3hxVu5Z2R27uMSF7pPJO2gvvdpB5/6c6wAHkA7da5vA8zH7zJNhGl aSH+Id6uA89A2blQxF8YYTP3XdFd7YGXddIa8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=oCr2TMimpzyB2+kWqdDRA+gRNqLYoIXjF1j+QrMtMs/i9UfFcixKDu98FwMDIRCZLc iMajRdsHrRG1EzivxwwhWdP5RCaMx6w5L+uKFS41Ls2QODOXK5AAOKpA4sC2LrAyHTLn JQucxDDE7aXLkmcBdHOzmn6MjaBJCsZmvxe+E= Original-Received: by 10.204.116.5 with SMTP id k5mr566448bkq.73.1294824643449; Wed, 12 Jan 2011 01:30:43 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294D7C.dip.t-dialin.net [91.41.77.124]) by mx.google.com with ESMTPS id p22sm215230bkp.21.2011.01.12.01.30.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 01:30:42 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDSxuHts - de9ec9b4e192 - 20110112 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:65195 Archived-At: Am 12.01.2011 um 09:39 schrieb Proch=E1zka Luk=E1=9A Ing. - Pontex s. r. o.: > 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 c= ase the "TvNK", which is A1)? I'd need to know this because depending on th= is, I'd need to \setuppapersize[,landscape]. > = > - Is it possible to "move" the origin for \positioning to the right botto= m corner? It's not "fatal" to know it, as having the PDF size known, I can = evaluate 630mm =3D width.of.A1 - width.of.A4 and 297 =3D height.of.A1 - hei= ght.of.A4; I'm just curious. \define[2]\Replacement {\startTEXpage[background=3D{foreground,replacement}]% \layeredtext [corner=3D{right,bottom},location=3D{left,top}] [background=3Dcolor,backgroundcolor=3Dwhite,offset=3D0pt] {\externalfigure[#2]} {\externalfigure[#1]} \stopTEXpage} \useexternalfigure[big] [hacker][scale=3D3000] \useexternalfigure[small][cow] \starttext \Replacement{big}{small} \stoptext \layeredtext is described in the details manuals. Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________