Re: [NTG-context] columnset & layers
Vit Zyka wrote: But generally it is not a clean solution. Can be solved counting number of layers in one pass and defining in the second, but... Hans, do you think is the grouping problem doable? If yes I will put the note to the collector. it's kind of tricky to make definitions global (since it hooks into framed and such) so, the best is to do more testing and/or do assignment in layer definitions global you can make it a low priority entru in the collection Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] columnset & layers
Hans Hagen wrote: 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). \@@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 OK, it works and is sufficient for me since I know a number of needed layers. But generally it is not a clean solution. Can be solved counting number of layers in one pass and defining in the second, but... Hans, do you think is the grouping problem doable? If yes I will put the note to the collector. Thanks Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] columnset & layers
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). \@@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 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] columnset & layers
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). \@@layerboxtgr-cow I am a bit puzzled by strange error message. If the columnset is commented, the code is proceeded as expected. Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context