Wolfgang Schuster wrote:
On Tue, Sep 16, 2008 at 4:28 PM, Hans Hagen
wrote: Wolfgang Schuster wrote:
Hi all,
any new news about my question below.
Wolfgang
On Fri, Jun 6, 2008 at 9:51 AM, Wolfgang Schuster
wrote: Hi,
what is the best method to add labels to a figure; I want them not only on the figure but their position should be relative to the figure size. how about just using a layer ...
And how could they help me, I want to pisition the label relative to the figure size with fraction of the figure width and heigth.
I could write my own macros to do this but I hoped you have already something available to do this.
hm, i thought that you knew all those things -) wikifyable ... \definelayer[figure][width=\overlaywidth,height=\overlayheight] \defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}] \setupcolors[state=start] \starttext \startsetups figure \setlayerframed[figure][preset=rightbottom,x=.25\layerwidth,y=.25\layerheight]{HERE} \setlayerframed[figure][preset=leftbottom, x=.15\layerwidth,y=.35\layerheight]{THERE} \stopsetups \externalfigure[cow][background={foreground,figure},width=4cm,height=8cm] \startsetups figure \setlayerframed[figure][preset=righttop,x=.25\layerwidth,y=.25\layerheight]{MORE} \setlayerframed[figure][preset=middle,foregroundcolor=green]{EVEN MORE} \stopsetups \externalfigure[cow][background={foreground,figure},width=14cm,height=2cm] \defineexternalfigure[whatever][background={foreground,figure}] \startsetups figure \setlayerframed[figure][preset=righttop,x=.25\layerwidth,y=.25\layerheight]{\red MORE} \setlayerframed[figure][preset=middle,foregroundcolor=green]{EVEN MORE} \stopsetups \externalfigure[cow][whatever][width=14cm,height=4cm] \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------