ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* layer documentation?
@ 2003-04-13 11:32 Patrick Gundlach
  2003-04-13 18:57 ` Hans Hagen
  2003-04-13 18:58 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick Gundlach @ 2003-04-13 11:32 UTC (permalink / raw)


Hello Hans and others,

is there any layer documentation out there that I have missed?

I found some fragments in the metafun manual, the details.pdf and
(well, of course!) the source.

Where should the layers be hooked in?

If I say \setupbackgrounds[text][text][background=relpos], the layer
relpos gets repeated; if I use \setupbackgrounds[page][..], the layer
won't be repeated, even if I say
\setupbackgrounds[page][background=..,state=repeat]. (Yes, I know
that I can use \setuplayer[...][state=repeat]; I try to understand
what is going on.)

So should I always use the [page] background to anchor the layer?

Patrick

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

* Re: layer documentation?
  2003-04-13 11:32 layer documentation? Patrick Gundlach
@ 2003-04-13 18:57 ` Hans Hagen
  2003-04-13 19:48   ` Patrick Gundlach
  2003-04-13 18:58 ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-04-13 18:57 UTC (permalink / raw)


At 13:32 13/04/2003 +0200, Patrick Gundlach wrote:
>Hello Hans and others,
>
>is there any layer documentation out there that I have missed?
>
>I found some fragments in the metafun manual, the details.pdf and
>(well, of course!) the source.
>
>Where should the layers be hooked in?
>
>If I say \setupbackgrounds[text][text][background=relpos], the layer
>relpos gets repeated; if I use \setupbackgrounds[page][..], the layer
>won't be repeated, even if I say
>\setupbackgrounds[page][background=..,state=repeat]. (Yes, I know
>that I can use \setuplayer[...][state=repeat]; I try to understand
>what is going on.)
>
>So should I always use the [page] background to anchor the layer?

   [text][text] and [page] are repeated indeed

others are if \setupbackgrounds[state=repeat]

another option is:

   \checktextbackgrounds

and put things in the predefined text-2,text-2,text+1,text+2 layers

(studying core-box may shed some light on this)

Hans



-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: layer documentation?
  2003-04-13 11:32 layer documentation? Patrick Gundlach
  2003-04-13 18:57 ` Hans Hagen
@ 2003-04-13 18:58 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-04-13 18:58 UTC (permalink / raw)


At 13:32 13/04/2003 +0200, you wrote:

>is there any layer documentation out there that I have missed?

probably not; there will be more some day soon

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: layer documentation?
  2003-04-13 18:57 ` Hans Hagen
@ 2003-04-13 19:48   ` Patrick Gundlach
  2003-04-14  6:49     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2003-04-13 19:48 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> writes:

Hello,

[...]
>>So should I always use the [page] background to anchor the layer?
>
>    [text][text] and [page] are repeated indeed

[page] is not repeated here:

%output=pdf
\showframe

\setupbackgrounds[page][background=abspos]
\setupbackgrounds[text][text][background=relpos]

\definelayer[abspos][option=test,
        width=\paperwidth,
        height=\paperheight,
         ]

\definelayer[relpos][option=test,position=yes]

\starttext 
\input tufte
\setlayer[abspos][x=1cm,y=1cm]{\bfd It Works!}
\setlayer[relpos][offset=1cm]{really?}
\input tufte

\page

\input tufte
\setlayer[relpos][hoffset=1cm,voffset=-1cm]{What does it look like?}
\input tufte
\page
\input tufte

\stoptext


layer relpos gets repeated, layer abspos not. 


Patrick (slightly confused)

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

* Re: Re: layer documentation?
  2003-04-13 19:48   ` Patrick Gundlach
@ 2003-04-14  6:49     ` Hans Hagen
  2003-04-14  7:44       ` Patrick Gundlach
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-04-14  6:49 UTC (permalink / raw)


At 21:48 13/04/2003 +0200, you wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>Hello,
>
>[...]
> >>So should I always use the [page] background to anchor the layer?
> >
> >    [text][text] and [page] are repeated indeed
>
>[page] is not repeated here:
>
>%output=pdf
>\showframe
>
>\setupbackgrounds[page][background=abspos]
>\setupbackgrounds[text][text][background=relpos]

sorry: can you try just one [text]

>Patrick (slightly confused)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: layer documentation?
  2003-04-14  6:49     ` Hans Hagen
@ 2003-04-14  7:44       ` Patrick Gundlach
  0 siblings, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2003-04-14  7:44 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> writes:

>> >>So should I always use the [page] background to anchor the layer?
>> >
>> >    [text][text] and [page] are repeated indeed
>>
>>[page] is not repeated here:
>>
>>%output=pdf
>>\showframe
>>
>>\setupbackgrounds[page][background=abspos]
>>\setupbackgrounds[text][text][background=relpos]
>
> sorry: can you try just one [text]

OK, I did and found out that here none of those two are
repeated. Even with state=repeat in \setupbackgrounds:

%output=pdf
\setupbackgrounds[page][background=abspos,state=repeat]
\setupbackgrounds[text][background=relpos,state=repeat]

\definelayer[abspos][option=test,
        width=\paperwidth,
        height=\paperheight,
         ]

\definelayer[relpos][option=test,position=yes]

\starttext 
\input tufte
\setlayer[abspos][x=1cm,y=1cm]{\bfd It Works!}
\setlayer[relpos][offset=1cm]{really?}
\input tufte

\page

\input tufte
\setlayer[relpos][hoffset=1cm,voffset=-1cm]{What does it look like?}
\input tufte
\page
\input tufte

\stoptext


Patrick

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

end of thread, other threads:[~2003-04-14  7:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-13 11:32 layer documentation? Patrick Gundlach
2003-04-13 18:57 ` Hans Hagen
2003-04-13 19:48   ` Patrick Gundlach
2003-04-14  6:49     ` Hans Hagen
2003-04-14  7:44       ` Patrick Gundlach
2003-04-13 18:58 ` Hans Hagen

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).