From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101144 Path: news.gmane.org!.POSTED!not-for-mail From: Marcus Vinicius Mesquita Newsgroups: gmane.comp.tex.context Subject: Re: Position of layer in foreground Date: Thu, 28 Jun 2018 16:56:32 -0300 Message-ID: References: <5B3533F8.8040301@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8396871391520298844==" X-Trace: blaine.gmane.org 1530215711 25959 195.159.176.226 (28 Jun 2018 19:55:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 19:55:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 28 21:55:07 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYd0V-0006do-7g for gctc-ntg-context-518@m.gmane.org; Thu, 28 Jun 2018 21:55:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C14DF3B3B1; Thu, 28 Jun 2018 21:56:58 +0200 (CEST) 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 Ef5jYc0207Fc; Thu, 28 Jun 2018 21:56:58 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1E0DC3B3B5; Thu, 28 Jun 2018 21:56:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA7243B3B4 for ; Thu, 28 Jun 2018 21:56:56 +0200 (CEST) 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 5TW0U_4E1Uri for ; Thu, 28 Jun 2018 21:56:55 +0200 (CEST) Original-Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 72A713B3B2 for ; Thu, 28 Jun 2018 21:56:45 +0200 (CEST) Original-Received: by mail-yw0-f173.google.com with SMTP id g123-v6so2585024ywf.13 for ; Thu, 28 Jun 2018 12:56:45 -0700 (PDT) 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; bh=loEelAFOpxeU/bFbuc2IkNpbAooqJpU/1SyR2Cf+9Fs=; b=N/D81SnXlx1gkyxG3DQnI3Ipbgiexe9Jw5AyfwC4Bg3tRB8DcUp4x68DuFX218qTTX GSU4VDUqRhzXhtfiebC50ApUOIDaC7V7Mo805x0RTuK3tTZrgHHxwgLCw5Sf8BwOxLCR e4srEL/MBYKBGQYTSy2iHhHFMobzpJdLErNQAeQ/temYxGg+JeCE1ARSZLz1waLk5DwS S9yerhPIbB3VoJeimNmdInIGfirLajsFWpcQ0kHY/YYXP9zHobj+D8XYcTOSNMjlF7MD nMIpsdUBf8kLN87HCay1jZmcUd00+8u5YH50vv4x/7NYuDNjAioLAScj+6q8i7W9kOBx GoIw== 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; bh=loEelAFOpxeU/bFbuc2IkNpbAooqJpU/1SyR2Cf+9Fs=; b=FYHftaCtdm5ntIcjfTqTbpYZW7pL4tmiKJxXN49VUyoGGsIPpT5IlZA5sRfZbEqOEC twiHqjqt83WWVrEFoWYN3pi12HjS4G39967Ex9KCmrPOWb6Rehc9Vhn76dhGgYYn6EbT yrl7CBVZlGQW8A0eNcNoGD27Ztm/Vg7yakPGTBdOwKqMqqYbASRRS8eS/Eadb7MXp80L 4CO/nMjsC40h93ZbYLRFCQxxfw/9jcoUjWMHmYAgC6U3cOYtnBW5KMbC/d49rLB1DLKD V5x1ogpwBweopV+9kWSOjdThil8lpqgNutxAKBKEiXUYzXFcKXuxxk1PaPJu8ljwOSnI N8QA== X-Gm-Message-State: APt69E20d51sY9Dr2lMB+EwDyQrVLK7Wdjh2Iz6JM3mEfqwyUB0ewBAq uhx/lYWIm1Bt7Ruj+qkC9G0iJd3cvjCn1aWIymQ= X-Google-Smtp-Source: AAOMgpcxrBT1gIW7gEnfRu90q/u3Pg9wVbg6b29Py98y+7CulP/vFdRyW6MQCohPecwHKscShmzVEsq/EvKoVg7aAFM= X-Received: by 2002:a81:2604:: with SMTP id m4-v6mr5813459ywm.21.1530215803821; Thu, 28 Jun 2018 12:56:43 -0700 (PDT) In-Reply-To: <5B3533F8.8040301@gmail.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:101144 Archived-At: --===============8396871391520298844== Content-Type: multipart/alternative; boundary="0000000000006aa34b056fb9212b" --0000000000006aa34b056fb9212b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you, Wolfgang. On Thu, Jun 28, 2018, 16:16 Wolfgang Schuster wrote: > > Marcus Vinicius Mesquita > 28. Juni 2018 um 01:23 > > Dear List, > > In the MWE below, I expected the numbers to appear above the cow figure. > What am I missing? > > > \definefont > [Title] > [SerifBold at 42pt] > > \starttext > > \placefigure[][]{Cow} > {\externalfigure[cow][width=3D.5\textwidth]} > > \definelayer[myfigure][x=3D6cm,y=3D6cm,preset=3Dmiddle] > > \setlayer[myfigure]{\framed[frame=3Doff]{\Title > \color[middlecyan]{123456789}}} > > > > \setlayerframed[myfigure][][frame=3Doff,foregroundstyle=3DTitle,foregroun= dcolor=3Dmiddlecyan]{123456789} > > \setupbackgrounds[page][background=3D{myfigure}] > > > When you set a layer with the background key it is placed *behind* the > content > of the page but you can move it before the content with the "foreground= =E2=80=9D > keyword, > e.g. \setupbackgrounds[page][background=3D{foreground,myfigure)]. > > Wolfgang > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ --0000000000006aa34b056fb9212b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you, Wolfgang.=C2=A0

On Thu, Jun 28, 2018, 16:16 Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

28.=20 Juni 2018 um 01:23
Dear List,

In the MWE below, I expected the numbers to appear above the cow figure.=20 What am I missing?


\definefont
[Title]
[SerifBold=20 at 42pt]

\starttext

\placefigure[][]{Cow}
{\externalfigure= [cow][width=3D.5\textwidth]}

\definelayer[myfigure][x=3D6cm,y=3D6cm,= preset=3Dmiddle]

\setlayer[myfigure]{\framed[frame=3Doff]{\Title \color[middlecyan]{123456789}}}

\setlayerframed[myfigure][][frame=3Doff,foregroundstyle=3DTitle,foregroundc= olor=3Dmiddlecyan]{123456789}

\setupbackgrounds[page][background=3D{m= yfigure}]

When you set a layer with the background key it is placed *behind* the=20 content
of the page but you can move it before the content with the "foregroun= d=E2=80=9D keyword,
e.g. \setupbackgrounds[page][background=3D{foreground,myfigure)].

Wolfgang
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000006aa34b056fb9212b-- --===============8396871391520298844== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8396871391520298844==--