[NTG-context] columnset & layers

Hans Hagen pragma at wxs.nl
Tue Dec 6 10:29:09 CET 2005


Vit Zyka wrote:

> Hello,
>
> there is some collision between columnset and layer. See following 
> example:
>
> -----------------------------------------------------
> \newdimen\tgrX \newdimen\tgrY
> \tgrX=3cm      \tgrY=2cm
>
> \starttext
> \startcolumnset
>   \definelayer[tgr-cow][position=no,corner=top]
>   \setlayer[tgr-cow][x=.0\tgrX,y=.0\tgrY,location=middle]{O}%
>   \framed
>     [width=fit,height=fit,offset=none,
>      background={foreground,tgr-cow},frame=off]
>     {\externalfigure[cow][width=\tgrX,height=\tgrY]}%
> \stopcolumnset
> \stoptext
> -------------------------------------------------------
>
> I got the error:
>
> ! Bad character code (361).
> <recently read> \@@layerboxtgr-cow
>
> I am a bit puzzled by strange error message. If the columnset is 
> commented, the code is proceeded as expected.

define the layer outside the columnset; it's probably a grouping problem

Hans



More information about the ntg-context mailing list