Hi Andrea, andrea valle wrote:
On 13 Oct 2006, at 00:00, Hans Hagen wrote:
indeed, layers put in overlays (there can be many layers on top of each others
Now, I tried with overlays and layers. That's fine. In any case, in a second approach I simply used \setlayer to fill repeatedly the same layer. The result seems to be the same. What's the difference? Is it safe to use the second approach?
Using different layers, you can change the order of appearance (background={1,2,3}|{1,3,2},..) for the layer content. Using only one layer, all layer content is placed stack like; the printing order is then fixed by the appearance order in the document (last overprints prior).
Then: changing layer dimension in \definelayer, I cannot see any differences in the output. Can anyone explain what it should happen?
I think the size is significant, if you use relative positioning (preset=bottomright and alike). Greetings, Peter
Thanks
Best
-a-
Two examples follow:
\setupcolors[state=start]
% first approach
\definelayer [layer1][] \definelayer [layer2][] \definelayer [layer3][]
\setlayer [layer1] [x=.5\paperwidth, y=.5\paperheight] {\externalfigure[layTest][]}
\setlayer [layer2] [x=.35\paperwidth, y=.45\paperheight] {\externalfigure[layTest][]}
\setlayer [layer3] [x=.5\paperwidth, y=.5\paperheight] {\color[darkred]{ \bf This is a text}}
\defineoverlay[overlay1][{\placelayer[layer1]}] \defineoverlay[overlay2][{\placelayer[layer2]}] \defineoverlay[overlay3][{\placelayer[layer3]}]
% end of first
% second approach \definelayer [layer1b][] % just one
\setlayer [layer1b] [x=.5\paperwidth, y=.5\paperheight] {\externalfigure[layTest][]}
\setlayer [layer1b] [x=.35\paperwidth, y=.45\paperheight] {\externalfigure[layTest][]}
\setlayer [layer1b] [x=.5\paperwidth, y=.5\paperheight] {\color[darkred]{ \bf This is a text}}
% end
\starttext
% using first \framed [height=\textheight,width=\textwidth,background={overlay1, overlay2, overlay3},align=right, frame=off] { % write if you need to }
% using second
\framed [height=\textheight,width=\textwidth,background=layer1b,align=right, frame=off] { % write if you need to }
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context