ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Uwe Koloska <ml@koloro.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: No output for layers
Date: Wed, 9 Jul 2008 01:09:19 +0200	[thread overview]
Message-ID: <200807090109.19398.ml@koloro.de> (raw)
In-Reply-To: <115224fb0807080528r4b33dc6i7040324cafd52b63@mail.gmail.com>

Hello,

Am Dienstag, 8. Juli 2008 schrieb Wolfgang Schuster:
> On Tue, Jul 8, 2008 at 2:17 PM, Oliver Buerschaper
> > ---
> > \definelayer
> >        [mylayer]
> >        [x=78mm,
> >         y=3mm,
> >         height=43.5mm,
> >         width=128mm]
> >
> > \starttext
> >
> > \setlayer[mylayer][preset=middle]{Hello world!}
> >
> > \stoptext
> > ---

The layer is now only defined and has some content, but is not related to any 
page element. So you has to define it as the background of some pageelement:

  \setupbackgrounds[page][background=mylayer]

or you have to "flush" it (but I don't know what this is supposed to do, maybe 
it's just another way of calling the OTR -- see below)

  \flushlayer[mylayer]

> You have to invoke the OTR.

OTR = Output Routine

Without invoking the OTR nothing is generated.

(but you can leave out \starttext \stoptext -- why?)

> You could use
>
> \startstandardmakeup
> \stopstandardmakeup
>
> or
>
> \page[empty]

Both of these produce an empty page (without pagenumber) and the layer at the 
intended position.

> or
>
> \dontleavehmode
>
> or
>
> \null
>
> or

These two variants produce pages with the standard layout (in this easy setup 
this consists only of the page number at the top).

The last alternative I know of: instead of defining the layer as background 
for the page, you can just call

  \flushlayer[mylayer]

But this positions the layer relative to the textarea (and not the pagearea) 
and produces a standard layout with pagenumber, too, if you don't use 
standardmakeup.

This has helped, to make some concepts regarding layers clear to me;-)
Regards
Uwe
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2008-07-08 23:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08 12:17 Oliver Buerschaper
2008-07-08 12:24 ` Wolfgang Schuster
2008-07-08 12:33   ` Wolfgang Schuster
2008-07-08 12:54     ` Oliver Buerschaper
2008-07-08 13:03       ` Wolfgang Schuster
2008-07-08 13:19         ` Oliver Buerschaper
2008-07-08 13:28           ` Wolfgang Schuster
2008-07-08 22:45             ` Uwe Koloska
2008-07-08 12:28 ` Wolfgang Schuster
2008-07-08 23:09   ` Uwe Koloska [this message]

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=200807090109.19398.ml@koloro.de \
    --to=ml@koloro.de \
    --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).