From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101143 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Position of layer in foreground Date: Thu, 28 Jun 2018 21:16:08 +0200 Message-ID: <5B3533F8.8040301@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5447380660076228511==" X-Trace: blaine.gmane.org 1530213293 21115 195.159.176.226 (28 Jun 2018 19:14:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 19:14:53 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 28 21:14:49 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 1fYcNR-0005JF-4l for gctc-ntg-context-518@m.gmane.org; Thu, 28 Jun 2018 21:14:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D1C563B2A7; Thu, 28 Jun 2018 21:16:32 +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 96WxKfZ06f0X; Thu, 28 Jun 2018 21:16:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 125823B2AD; Thu, 28 Jun 2018 21:16:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9DDF43B2A9 for ; Thu, 28 Jun 2018 21:16:30 +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 BpHjncww670u for ; Thu, 28 Jun 2018 21:16:30 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 1D5433B2A7 for ; Thu, 28 Jun 2018 21:16:20 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id l15-v6so149001wmc.1 for ; Thu, 28 Jun 2018 12:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=8DEXSsSas+i2pzAqPF0fYZ/qOP6lbKmCwMfM8Ae+8g8=; b=Tec76ZohV7l0wOTsXoj8Ytl3wzfGRuVFGiuN342SHUEO5GMh2TGZ10XYag4E4Jjb4x hYT/JtmsKbJgESghokKVPrrwNlk+st3cJXDvxrGVyrXtE5WMhlwRDldfyhGFYe7SBEpo 3h5eEKX6/xyMnSwGympDVdWAozPPyqJxP/zUQgDH1hRxU0o/C9/3/6uN6dGSp6w4w359 2wURa9QHVLfx/wn+5dbhTj6WC0rocA/IAhyS2s1w1sGDNSjqg7yuPe/x+/O4cV40WOvo uwmjFiRVecxqF8FlXG+3hGVm2dBbPwoVRT6lPCxacRaUQp80Po/dVsMvkM1i0rUwZKgr 6dAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=8DEXSsSas+i2pzAqPF0fYZ/qOP6lbKmCwMfM8Ae+8g8=; b=RYfvcvPDZwK2xg1QiO59GEZl7TIBCXv5PYSC88MRnkgxA5mNrxc2ja/CWiCcliOkqN WkgV3oHK63c9kgSHo2PFNuUWhCYBhd/XpKIfR4MwtQzu2IT+yIM3/29NCvJgfJlyoZIZ MqbTkG3G1FpKo/LoG6YMqxwvzvoyIHHDEP/Gr8fxuChVcSFp4OgwrNwk1iQTzDlXOEyv Q8WPnsqfxeDtgnHHNdGQvIBQVadBaQsbQDlfqwwNaZbBpB66iiJIC+TdztfInS0zxTLs thshmlaUP3ldDW7khW9XhcWU5aFj4oI69JwvJLLjqwN0OnsX4n/UEMUuJ1TYtQ4Q/Ogo Nz1A== X-Gm-Message-State: APt69E3H0HnDAWpU5r5LVPq8hA0wIFvYzPkv+bOLRoxQUnWbbcWbXdTL M8kZELJuJykaP95xcf+zuBNbtjul X-Google-Smtp-Source: AAOMgpeWZdHC3XMJMQ1HTQZG8H8JAmZGO7C5AkvP2MOJN4NzvOOAdrkOpEafB0IZJ20MQiJAaUYj9w== X-Received: by 2002:a1c:6b51:: with SMTP id g78-v6mr9523218wmc.149.1530213379536; Thu, 28 Jun 2018 12:16:19 -0700 (PDT) Original-Received: from [192.168.1.12] (x590fd550.dyn.telefonica.de. [89.15.213.80]) by smtp.gmail.com with ESMTPSA id 189-v6sm11515937wmd.17.2018.06.28.12.16.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 12:16:19 -0700 (PDT) In-Reply-To: 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:101143 Archived-At: This is a multi-part message in MIME format. --===============5447380660076228511== Content-Type: multipart/alternative; boundary="------------010908070906070102000302" This is a multi-part message in MIME format. --------------010908070906070102000302 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > 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=.5\textwidth]} > > \definelayer[myfigure][x=6cm,y=6cm,preset=middle] > > \setlayer[myfigure]{\framed[frame=off]{\Title > \color[middlecyan]{123456789}}} \setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789} > \setupbackgrounds[page][background={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” keyword, e.g. \setupbackgrounds[page][background={foreground,myfigure)]. Wolfgang --------------010908070906070102000302 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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=.5\textwidth]}

\definelayer[myfigure][x=6cm,y=6cm,preset=middle]

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

\setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789}

\setupbackgrounds[page][background={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” keyword,
e.g. \setupbackgrounds[page][background={foreground,myfigure)].

Wolfgang
--------------010908070906070102000302-- --===============5447380660076228511== 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 --===============5447380660076228511==--