ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columnset & layers
@ 2005-12-06  0:40 Vit Zyka
  2005-12-06  9:29 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Vit Zyka @ 2005-12-06  0:40 UTC (permalink / raw)


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.

Vit

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: columnset & layers
  2005-12-06  0:40 columnset & layers Vit Zyka
@ 2005-12-06  9:29 ` Hans Hagen
  2005-12-06 14:06   ` Vit Zyka
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2005-12-06  9:29 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: columnset & layers
  2005-12-06  9:29 ` Hans Hagen
@ 2005-12-06 14:06   ` Vit Zyka
  2005-12-06 16:10     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Vit Zyka @ 2005-12-06 14:06 UTC (permalink / raw)


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).
>> <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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: columnset & layers
  2005-12-06 14:06   ` Vit Zyka
@ 2005-12-06 16:10     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2005-12-06 16:10 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-06 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-06  0:40 columnset & layers Vit Zyka
2005-12-06  9:29 ` Hans Hagen
2005-12-06 14:06   ` Vit Zyka
2005-12-06 16:10     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).