layer documentation?
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
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 -------------------------------------------------------------------------
Hans Hagen
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)
At 21:48 13/04/2003 +0200, you wrote:
Hans Hagen
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 -------------------------------------------------------------------------
Hans Hagen
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
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 -------------------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Patrick Gundlach