ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Position of layer in foreground
@ 2018-06-27 23:23 Marcus Vinicius Mesquita
  2018-06-28 19:16 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Vinicius Mesquita @ 2018-06-27 23:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]

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}}}

\setupbackgrounds[page][background={myfigure}]

\stoptext


Marcus Vinicius

[-- Attachment #1.2: Type: text/html, Size: 509 bytes --]

[-- Attachment #2: mwe.tex --]
[-- Type: application/x-tex, Size: 311 bytes --]

[-- Attachment #3: mwe.pdf --]
[-- Type: application/pdf, Size: 14442 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Position of layer in foreground
  2018-06-27 23:23 Position of layer in foreground Marcus Vinicius Mesquita
@ 2018-06-28 19:16 ` Wolfgang Schuster
  2018-06-28 19:56   ` Marcus Vinicius Mesquita
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2018-06-28 19:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 873 bytes --]


> Marcus Vinicius Mesquita <mailto:marcusvinicius.mesquita@gmail.com>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2192 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Position of layer in foreground
  2018-06-28 19:16 ` Wolfgang Schuster
@ 2018-06-28 19:56   ` Marcus Vinicius Mesquita
  0 siblings, 0 replies; 3+ messages in thread
From: Marcus Vinicius Mesquita @ 2018-06-28 19:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1566 bytes --]

Thank you, Wolfgang.

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

>
> Marcus Vinicius Mesquita <marcusvinicius.mesquita@gmail.com>
> 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
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3529 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-28 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-27 23:23 Position of layer in foreground Marcus Vinicius Mesquita
2018-06-28 19:16 ` Wolfgang Schuster
2018-06-28 19:56   ` Marcus Vinicius Mesquita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).