From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89416 Path: news.gmane.org!not-for-mail From: Reza Housseini Newsgroups: gmane.comp.tex.context Subject: Problems with repeating layers Date: Mon, 8 Dec 2014 08:42:39 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0577964292==" X-Trace: ger.gmane.org 1418024601 15826 80.91.229.3 (8 Dec 2014 07:43:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2014 07:43:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 08 08:43:17 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 1XxsyT-0000bV-DX for gctc-ntg-context-518@m.gmane.org; Mon, 08 Dec 2014 08:43:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE96E10424 for ; Mon, 8 Dec 2014 08:43:16 +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 KXItWA8FIkiH for ; Mon, 8 Dec 2014 08:43:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 693B110234 for ; Mon, 8 Dec 2014 08:42:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 842A3101E8 for ; Mon, 8 Dec 2014 08:42:47 +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 rRUvB6wAAh0S for ; Mon, 8 Dec 2014 08:42:43 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id F2494101E4 for ; Mon, 8 Dec 2014 08:42:42 +0100 (CET) Original-Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sB87ge3q009706 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 8 Dec 2014 08:42:41 +0100 Original-Received: by mail-pa0-f48.google.com with SMTP id rd3so4721957pab.35 for ; Sun, 07 Dec 2014 23:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=krv6IfkATaI2Gboh2cCQDCMeSuLWpDLLoPFV7BlHeXs=; b=iiXGPxbdNaBf9D+RCQ4yh9VxLJNv6ZagLFpGnr8NI50Z6nBmtEVPgRJnypJzRJIqHj VNCphrvJR+hJT48294ndqKU06UWr21NBtp4uY7Q2gleMqT+Q9w5JViO6nB3XxwAmRxIP b98Esg516rIJQVZKnw6sqn50grtxgrHyr4ipS0jisa+Se0reWPQdFpQmx5WgDtdY0nVl UJkW7l6L5Ev3/1svgeHRW508TQDAfrIlC5bRBKsyHkQC6zoSTvyPz5j/t+aoeHZP70mE kH2VC4MJ4r4IDpY3mPep40MGNWbLU7cZ7ZCqIq8N9zfKlmIn2tXTSjc/x4MP98Wd/ZNC +noQ== X-Received: by 10.66.66.7 with SMTP id b7mr27117404pat.34.1418024560034; Sun, 07 Dec 2014 23:42:40 -0800 (PST) Original-Received: by 10.70.42.204 with HTTP; Sun, 7 Dec 2014 23:42:39 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c03::230; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NoTGFEK - b6beaf825862 - 20141208 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:89416 Archived-At: --===============0577964292== Content-Type: multipart/alternative; boundary=001a113631ce2f0a8a0509af92ef --001a113631ce2f0a8a0509af92ef Content-Type: text/plain; charset=UTF-8 Hello I try to use layers to position a figure on top of the leftmargin area. I use code like the following: \definelayer[MyLayer][option=test] \setupbackgrounds[text][leftmargin][background=MyLayer] \setlayer[MyLayer][x=0cm,y=0cm] {\externalfigure[cow][width=2cm]} This image get's repeated every page but I only want it on the first page. The parameter state=start does not change anything. Is there a way to disable the layer on the next page. Also there seems to be a bug with \showframe. When I use this command my figure is only displayed on the first page (as desired). When I use \setupbackgrounds[page][background=MyLayer] this problem does not occur. But I have to shift the figure to place it in the leftmargin. I tried to use another concept like \definelayer[test] \startuseMPgraphic{oeps} register ("somepos-1",0cm,0cm,center currentpicture) ; \stopuseMPgraphic \setMPlayer [test] [somepos-1] {\externalfigure[cow][width=2cm]} \getMPlayer [test] {\useMPgraphic{oeps}} but that does not seem to work at all. Thanks for any help Cheers, Reza --001a113631ce2f0a8a0509af92ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello

I try to use layers to position a= figure on top of the leftmargin area. I use code like the following:
=

=C2=A0 =C2=A0 \definelayer[MyLayer][option=3Dtest]
=C2=A0 =C2=A0 \setupbackgrounds[text][leftmargin][background=3DMyLaye= r]
=C2=A0 =C2=A0 \setlayer[MyLayer][x=3D0cm,y=3D0cm]
= =C2=A0 =C2=A0 {\externalfigure[cow][width=3D2cm]}

= This image get's repeated every page but I only want it on the first pa= ge. The parameter state=3Dstart does not change anything. Is there a way to= disable the layer on the next page.=C2=A0Also there seems to be a bug with= \showframe. When I use this command my figure is only displayed on the fir= st page (as desired).
When I use

=C2=A0 = =C2=A0 \setupbackgrounds[page][background=3DMyLayer]

this problem does not occur. But I have to shift the figure to place it = in the leftmargin.

I tried to use another concept = like

=C2=A0 =C2=A0 \definelayer[test]
=C2=A0 =C2=A0 \startuseMPgraphic{oeps}
=C2=A0 =C2=A0 regis= ter ("somepos-1",0cm,0cm,center currentpicture) ;
=C2= =A0 =C2=A0 \stopuseMPgraphic
=C2=A0 =C2=A0 \setMPlayer [tes= t] [somepos-1]
=C2=A0 =C2=A0 {\externalfigure[cow][width=3D2cm]}<= /div>
=C2=A0 =C2=A0 \getMPlayer [test] {\useMPgraphic{oeps}}
<= div>
but that does not seem to work at all.

Thanks for any help

Cheers,
Reza=
--001a113631ce2f0a8a0509af92ef-- --===============0577964292== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0577964292==--