[NTG-context] wrong positioning of MP graphic in layer

Hans Hagen pragma at wxs.nl
Mon Oct 7 22:48:30 CEST 2013


On 10/7/2013 10:04 PM, Pablo Rodríguez wrote:
> On 10/07/2013 07:16 PM, luigi scarso wrote:
>> On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote:
>>   Dear list,
>>
>>   I have the following sample:
>>   [...]
>
> Many thanks for your reply, Luigi.
>
> I need to insist on this sample, because the layer doesn’t behave as such:
>
> \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
> \setuplayer[wrongpositioned]{\startMPcode draw
> (0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
> \setupbackgrounds[page][background={wrongpositioned}]
> \starttext
> \input knuth
> \stoptext
>
> x and y are outside the page in the layer definition (50 meters).
>
> It should be a stupid error, but I cannot say which one.
>
> It is a line that I need for my work.
>
>>   Could anyone be so kind to explain me what location and corner mean in
>>   layers?
>>
>> You can start from here
>> [...]
>
> Many thanks for this excellent example. Playing with it is the best way
> to learn.

you confuse \setuplayer with setlayer

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list