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? Then: changing layer dimension in \definelayer, I cannot see any differences in the output. Can anyone explain what it should happen? 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