ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* No output for layers
@ 2008-07-08 12:17 Oliver Buerschaper
  2008-07-08 12:24 ` Wolfgang Schuster
  2008-07-08 12:28 ` Wolfgang Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: Oliver Buerschaper @ 2008-07-08 12:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear all,

somehow the following won't produce any PDF output:

---
\definelayer
	[mylayer]
	[x=78mm,
	 y=3mm,
	 height=43.5mm,
	 width=128mm]

\starttext

\setlayer[mylayer][preset=middle]{Hello world!}

\stoptext
---

Any ideas?

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


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

* Re: No output for layers
  2008-07-08 12:17 No output for layers Oliver Buerschaper
@ 2008-07-08 12:24 ` Wolfgang Schuster
  2008-07-08 12:33   ` Wolfgang Schuster
  2008-07-08 12:28 ` Wolfgang Schuster
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-07-08 12:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jul 8, 2008 at 2:17 PM, Oliver Buerschaper
<oliver.buerschaper@mpq.mpg.de> wrote:
> Dear all,
>
> somehow the following won't produce any PDF output:
>
> ---
> \definelayer
>        [mylayer]
>        [x=78mm,
>         y=3mm,
>         height=43.5mm,
>         width=128mm]
>
> \starttext
>
> \setlayer[mylayer][preset=middle]{Hello world!}
>
> \stoptext
> ---
>
> Any ideas?

\flushlayer{mylayer}

or

\setupbackgrounds[text|page|...][background=mylayer]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 12:17 No output for layers Oliver Buerschaper
  2008-07-08 12:24 ` Wolfgang Schuster
@ 2008-07-08 12:28 ` Wolfgang Schuster
  2008-07-08 23:09   ` Uwe Koloska
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-07-08 12:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jul 8, 2008 at 2:17 PM, Oliver Buerschaper
<oliver.buerschaper@mpq.mpg.de> wrote:
> Dear all,
>
> somehow the following won't produce any PDF output:
>
> ---
> \definelayer
>        [mylayer]
>        [x=78mm,
>         y=3mm,
>         height=43.5mm,
>         width=128mm]
>
> \starttext
>
> \setlayer[mylayer][preset=middle]{Hello world!}
>
> \stoptext
> ---
>
> Any ideas?
>
> Oliver

You have to invoke the OTR.

You could use

\startstandardmakeup
\stopstandardmakeup

or

\page[empty]

or

\dontleavehmode

or

\null

or

...

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 12:24 ` Wolfgang Schuster
@ 2008-07-08 12:33   ` Wolfgang Schuster
  2008-07-08 12:54     ` Oliver Buerschaper
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-07-08 12:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jul 8, 2008 at 2:24 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> On Tue, Jul 8, 2008 at 2:17 PM, Oliver Buerschaper
> <oliver.buerschaper@mpq.mpg.de> wrote:
>> Dear all,
>>
>> somehow the following won't produce any PDF output:
>>
>> ---
>> \definelayer
>>        [mylayer]
>>        [x=78mm,
>>         y=3mm,
>>         height=43.5mm,
>>         width=128mm]
>>
>> \starttext
>>
>> \setlayer[mylayer][preset=middle]{Hello world!}
>>
>> \stoptext
>> ---
>>
>> Any ideas?
>
> \flushlayer{mylayer}

\flushlayer[mylayer]

> or
>
> \setupbackgrounds[text|page|...][background=mylayer]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 12:33   ` Wolfgang Schuster
@ 2008-07-08 12:54     ` Oliver Buerschaper
  2008-07-08 13:03       ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Oliver Buerschaper @ 2008-07-08 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> \flushlayer[mylayer]

Yes, that's it! Thanks a lot …

Do you perhaps also know how to draw a frame around the layer  
boundary? The command \setlayerframed only seems to encapsulate the  
actual content with a frame …

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


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

* Re: No output for layers
  2008-07-08 12:54     ` Oliver Buerschaper
@ 2008-07-08 13:03       ` Wolfgang Schuster
  2008-07-08 13:19         ` Oliver Buerschaper
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-07-08 13:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jul 8, 2008 at 2:54 PM, Oliver Buerschaper
<oliver.buerschaper@mpq.mpg.de> wrote:
>> \flushlayer[mylayer]
>
> Yes, that's it! Thanks a lot …
>
> Do you perhaps also know how to draw a frame around the layer
> boundary? The command \setlayerframed only seems to encapsulate the
> actual content with a frame …

Can you be more concrete, what do you mean by boundry oround the layer.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 13:03       ` Wolfgang Schuster
@ 2008-07-08 13:19         ` Oliver Buerschaper
  2008-07-08 13:28           ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Oliver Buerschaper @ 2008-07-08 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> Do you perhaps also know how to draw a frame around the layer
>> boundary? The command \setlayerframed only seems to encapsulate the
>> actual content with a frame …
>
> Can you be more concrete, what do you mean by boundry oround the  
> layer.

I'm thinking of a frame that visualizes the actual drawable rectangle  
of the layer … that is, for

\definelayer
	[mylayer]
	[x=78mm,
	 y=3mm,
	 height=43.5mm,
	 width=128mm]

I would like a frame to be drawn around the box whose dimensions and  
location on the page are specified by x, y, height and width. I'd also  
be fine if this area could be shaded with some background colour.

With \setlayerframed I seem to only get a frame which fits the actual  
content snugly, e.g. if I draw the text "Hello world" into the layer  
then a small frame will be drawn around this text only and not around  
the entire layer box …

See what I mean?

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


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

* Re: No output for layers
  2008-07-08 13:19         ` Oliver Buerschaper
@ 2008-07-08 13:28           ` Wolfgang Schuster
  2008-07-08 22:45             ` Uwe Koloska
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2008-07-08 13:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jul 8, 2008 at 3:19 PM, Oliver Buerschaper
<oliver.buerschaper@mpq.mpg.de> wrote:
>>> Do you perhaps also know how to draw a frame around the layer
>>> boundary? The command \setlayerframed only seems to encapsulate the
>>> actual content with a frame …
>>
>> Can you be more concrete, what do you mean by boundry oround the
>> layer.
>
> I'm thinking of a frame that visualizes the actual drawable rectangle
> of the layer … that is, for
>
> \definelayer
>        [mylayer]
>        [x=78mm,
>         y=3mm,
>         height=43.5mm,
>         width=128mm]
>
> I would like a frame to be drawn around the box whose dimensions and
> location on the page are specified by x, y, height and width. I'd also
> be fine if this area could be shaded with some background colour.
>
> With \setlayerframed I seem to only get a frame which fits the actual
> content snugly, e.g. if I draw the text "Hello world" into the layer
> then a small frame will be drawn around this text only and not around
> the entire layer box …

Set the values with \setlayer and not with \definelayer.

> See what I mean?

\definelayer
  [mylayer]

\starttext

\setlayerframed
  [mylayer]
  [x=78mm,
   y=3mm,
   height=43.5mm,
   width=68mm]
  {framed layer}

\flushlayer[mylayer]

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 13:28           ` Wolfgang Schuster
@ 2008-07-08 22:45             ` Uwe Koloska
  0 siblings, 0 replies; 10+ messages in thread
From: Uwe Koloska @ 2008-07-08 22:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

Am Dienstag, 8. Juli 2008 schrieb Wolfgang Schuster:
> Set the values with \setlayer and not with \definelayer.

But then you can't use 'preset=middle' cause this relies on the actual 
dimensions of the layer. So if you wanna use placements relative to the right 
or bottom side of the layer you have to provide the position and dimensions 
with \definelayer.

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
___________________________________________________________________________________


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

* Re: No output for layers
  2008-07-08 12:28 ` Wolfgang Schuster
@ 2008-07-08 23:09   ` Uwe Koloska
  0 siblings, 0 replies; 10+ messages in thread
From: Uwe Koloska @ 2008-07-08 23:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-07-08 23:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-08 12:17 No output for layers 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 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).