From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109806 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Bug (?) using \externalfigure with layers and backgrounds Date: Thu, 3 Dec 2020 12:21:10 -0500 Message-ID: References: <123033b0-1335-eb55-3e90-35cb0ddf6aba@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4613381295021789404==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 03 18:25:04 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kksLo-0008sX-0V for gctc-ntg-context-518@m.gmane-mx.org; Thu, 03 Dec 2020 18:25:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 878C91AAB4A; Thu, 3 Dec 2020 18:21:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D1b42FLZCVeW; Thu, 3 Dec 2020 18:21:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ABD141AAB21; Thu, 3 Dec 2020 18:21:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 59A301AA8A7 for ; Thu, 3 Dec 2020 18:21:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O2u97GRMqp93 for ; Thu, 3 Dec 2020 18:21:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.48; helo=mail-wr1-f48.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8EE601AA89E for ; Thu, 3 Dec 2020 18:21:22 +0100 (CET) Original-Received: by mail-wr1-f48.google.com with SMTP id e7so2667704wrv.6 for ; Thu, 03 Dec 2020 09:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gHKilwAku01NO57AjhXE529FmygaVWceIpl33/q6esg=; b=LyF2baQ8dIKAVIeaxgpmaQZo0GOX2ZZiSnfZOcDj3rU0Coyi3ClQ4VWHUojdWF5cc6 dLBcAPn6AitwpNKl6nNBOtRaz1xSvZ6qYvNyl1P8LX8WAcvB5AQ6owi7GiWZ4jl5NLuH VVcYgHCxIkgAZYlAlDJKXYMo9a4bhTUlougPTKVSHWYgn8YI2darMf2wCQcUHNwlC9R3 Tkp2cVlAf4SqUqDaWas4TS7ZP16oDEiUDfncG6tz8nj+rzOvLW2YTRhx2B2bjYsSHa36 Ry5V0ZJ4sYkNc3fkOiyK32TAfJ7ryyPRWJ3lEzTxNVw0E94sfZyM3UNUMOhBuIhGd2O4 fqYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gHKilwAku01NO57AjhXE529FmygaVWceIpl33/q6esg=; b=fBgQUMUUSxaBxUjpYoQL0tu+2ykCMJnbILL2snVBLRz5m6OlF6JPHPww922qvnSsUc dRdgdTFVSzexwpCSxHE+KdoBVGI50f9n09JUurWJDBfEraxkQ8YFYdjty4d0cpuZKTMi JVa5PdQ7HQfYKdRfMFRIbPeggoMQYhkzwWxx7d4DhO/UdY/rA4I2dNyGJPE7oaY7kTOw jzCpft/2elRNLuuxAoaelphRYDnXaVIK2C17EteQFc7WA4++8XqU89AIgBTd/eUBrYGG InA6T0wNZyTiivlClQVwBKo+73Qi1RPP62nzIEX0l7KHn9ZdbtMYoXFu43ybWajmAvSE M8fg== X-Gm-Message-State: AOAM53012ctWqhB8vYVPSGTM7brFH/UnNzZYL3bFs5bXkQK5yttzpZXI t+oVEF5yZKWsGef54FIT74ZjmMkV4te8M1EnxENU4PHLQjM= X-Google-Smtp-Source: ABdhPJwZTo1jQcR5JgOFDN9+xY00O+Nr9gyAOCoo8OK7kVPXHGsiEFFOVWVdlKSI/E7UcH04Gcg8CMNXNyIVBCQfRbE= X-Received: by 2002:adf:b64f:: with SMTP id i15mr200894wre.125.1607016082192; Thu, 03 Dec 2020 09:21:22 -0800 (PST) In-Reply-To: <123033b0-1335-eb55-3e90-35cb0ddf6aba@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:109806 Archived-At: --===============4613381295021789404== Content-Type: multipart/alternative; boundary="000000000000ba3ee505b5929647" --000000000000ba3ee505b5929647 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Oh, I see. Nice, thank you a lot. Jairo :) El jue, 3 de dic. de 2020 a la(s) 12:19, Wolfgang Schuster ( wolfgang.schuster.lists@gmail.com) escribi=C3=B3: > Jairo A. del Rio schrieb am 03.12.2020 um 18:14: > > Hi everyone. The following > > > > \setuppagenumbering[state=3Dstop] > > \definelayer[mybg] > > [ > > repeat=3Dyes, > > x=3D0mm, y=3D0mm, > > width=3D\paperwidth, height=3D\paperheight, > > ] > > > \setlayer[mybg]{\externalfigure[cow][width=3D\paperwidth,height=3D\paperh= eight]} > > \setupbackgrounds[page][background=3Dmybg,state=3Drepeat] > > \setupindenting[yes,small] > > \startsetups background:default > > \setupbackgrounds[page][background=3Dmybg,state=3Drepeat] > > \stopsetups > > \startsetups background:void > > \setupbackgrounds[page][background=3D] > > \stopsetups > > \starttext > > \dorecurse{7}{\input knuth} > > \page > > \setups[background:void] > > \dorecurse{8}{\input tufte} > > \page > > \setups[background:default] > > \dorecurse{7}{\input knuth} > > \page > > \stoptext > > > > works with a local image (say, if "cow" is in the same folder as the > > main file), but it doesn't find sample images (cow, hacker, etc.). Is > > that a bug or an intended result? Thank you in advance. > > This is normal, to load figures from the tex directory use > \setupexternalfigures[location=3Ddefault]. > > More information are on the wiki: > https://wiki.contextgarden.net/Command/setupexternalfigure > > Wolfgang > > --000000000000ba3ee505b5929647 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Oh, I see. Nice, thank you a lot.

Jairo = :)

El jue, 3 de dic. de 2020 a la(s) 12:19, Wolfgang Schuster (wolfgang.schuster.lists@gmail= .com) escribi=C3=B3:
Jairo A. del Rio schrieb am 03.12.2020 um 18:14:
> Hi everyone. The following
>
> \setuppagenumbering[state=3Dstop]
> \definelayer[mybg]
> [
> repeat=3Dyes,
> x=3D0mm, y=3D0mm,
> width=3D\paperwidth, height=3D\paperheight,
> ]
> \setlayer[mybg]{\externalfigure[cow][width=3D\paperwidth,height=3D\pap= erheight]}
> \setupbackgrounds[page][background=3Dmybg,state=3Drepeat]
> \setupindenting[yes,small]
> \startsetups background:default
> \setupbackgrounds[page][background=3Dmybg,state=3Drepeat]
> \stopsetups
> \startsetups background:void
> \setupbackgrounds[page][background=3D]
> \stopsetups
> \starttext
> \dorecurse{7}{\input knuth}
> \page
> \setups[background:void]
> \dorecurse{8}{\input tufte}
> \page
> \setups[background:default]
> \dorecurse{7}{\input knuth}
> \page
> \stoptext
>
> works with a local image (say, if "cow" is in the same folde= r as the
> main file), but it doesn't find sample images (cow, hacker, etc.).= Is
> that a bug or an intended result? Thank you in advance.

This is normal, to load figures from the tex directory use
\setupexternalfigures[location=3Ddefault].

More information are on the wiki:
https://wiki.contextgarden.net/Command/se= tupexternalfigure

Wolfgang

--000000000000ba3ee505b5929647-- --===============4613381295021789404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4613381295021789404==--