ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Layers again
Date: Tue, 26 Apr 2011 18:41:03 +0100	[thread overview]
Message-ID: <BANLkTikU5O2nJZKYBZSBpN92jDHqV5sz9g@mail.gmail.com> (raw)
In-Reply-To: <4DB6F650.4050902@wxs.nl>

OK, now maybe I get it. This might help someone...


It's the **contents** of the layer that get repeated if you set
repeat=yes in \definelayer - as in
http://wiki.contextgarden.net/Layers

If you do a \setlayer then this simply adds to the existing stack of
contents displayed on the layer.  You get more and more stuff until
you do a \resetlayer, assuming you set  repeat=yes in the
\definelayer. Thus(?) \definelayer is all about the contents of the
layer (? Apart from setting the dimensions and so on... I think that's
what deflected me into thinking that this command was about the
canvas, and the \setlayer about the contents.)

The \setupbackgrounds[page][state=repeat,background={XXX}] is the
command that puts the logical layer on each page.

If this seems about right then I'll have a go at adding a sentence or
two to the wiki...maybe on-one else thinks of it in terms of the
existence and then the population of a layer...?


On 26 April 2011 17:44, Hans Hagen <pragma@wxs.nl> wrote:
> On 26-4-2011 6:26, Ian Lawrence wrote:
>
>
>> But when I get to a new page I'd like to be able to change that plug,
>> or even have the layer blank
>
> that happens automatically unless the state of the layer is set to 'repeat'
>
> so normally, once a layer is placed its content is forgotten
>
>> \page[yes]
>>
>> \setlayer       [SPTinteractivemedium]  % name of the layer
>>                [hoffset=0px, voffset=0px,]  % placement (from upper left
>> corner of the layer)
>>                { \externalfigure [dummy][width=100px]}  % the actual
>> contents of the layer
>>
>> And;
>>
>> \page[yes]
>> \setlayer       [SPTinteractivemedium]  % name of the layer
>>                [hoffset=0px, voffset=0px,]  % placement (from upper left
>> corner of the layer)
>>                { \externalfigure ??????? }  % HOW TO SET THE
>> \externalfigure to
>> NOTHING, or hide the layer?
>
> \resetlayer [SPTinteractivemedium]
>
>> I might try changing the backgrounds on a page by page basis, but this
>> seems inelegant, as the \setups ought to be before the \starttext..?
>
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2011-04-26 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 10:33 Ian Lawrence
2011-04-26 12:35 ` Wolfgang Schuster
2011-04-26 16:26   ` Ian Lawrence
2011-04-26 16:44     ` Hans Hagen
2011-04-26 17:41       ` Ian Lawrence [this message]
2011-04-26 18:31         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikU5O2nJZKYBZSBpN92jDHqV5sz9g@mail.gmail.com \
    --to=physics.rooted@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).