From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Layer vs. overlay
Date: Sat, 12 Jan 2013 19:11:47 +0100 [thread overview]
Message-ID: <37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com> (raw)
In-Reply-To: <op.wqs70rmxdk1lar@lk-2008-nbk>
Am 12.01.2013 um 18:54 schrieb Procházka Lukáš <LPr@pontex.cz>:
> Hello Wolfgang,
>
> some more attempts:
>
> The sample Lay3 is simple enough and brings some text to the top of the page:
>
> ----
> \setupbodyfont[30pt]
> \setuplayout[page]
>
> \starttext
> \definelayer[beforetext]
>
> \setupbackgrounds
> [page]
> [background={foreground,beforetext}]
>
> \setlayer[beforetext]{\red BEFORE}
>
> The Text!
> \stoptext
> ----
>
> This works well.
>
> The Lay4 differs in one point - it encloses the text into \start/stop-TEXpage:
>
> ----
> \setupbodyfont[30pt]
>
> \starttext
> \startTEXpage
> \definelayer[beforetext]
>
> \setupbackgrounds
> [page]
> [background={foreground,beforetext}]
>
> \setlayer[beforetext]{\red BEFORE}
>
> The Text!
> \stopTEXpage
> \stoptext
> ----
>
> In the latter case, the red text "BEFORE" doesn't appear.
>
> What's wrong? How to make it appear?
Move \definelayer and \setupbackgrounds *before* \startTEXpage because the environment creates a local group and you background setup is lost.
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-01-12 18:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 15:32 Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-11 18:06 ` Hans Hagen
2013-01-12 7:44 ` Wolfgang Schuster
2013-01-12 10:36 ` Procházka Lukáš
2013-01-12 13:25 ` Hans Hagen
2013-01-12 17:54 ` [***Spam/VIR***] " Procházka Lukáš
2013-01-12 18:11 ` Wolfgang Schuster [this message]
2013-01-15 8:04 ` Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-15 10:09 ` Wolfgang Schuster
2013-01-15 12:10 ` [***Spam/VIR***] " Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-15 12:25 ` Aditya Mahajan
2013-01-15 16:21 ` Philipp Gesang
2013-01-16 8:41 ` Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-16 11:47 ` Philipp Gesang
2013-01-16 13:09 ` Procházka Lukáš Ing. - Pontex s. r. o.
2013-01-16 13:34 ` Philipp Gesang
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=37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com \
--to=wolfgang.schuster@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).