[NTG-context] new beta

Hans Hagen pragma at wxs.nl
Wed Aug 30 10:00:33 CEST 2006


Peter Rolf wrote:
> Hans Hagen wrote:
>   
>> Peter Rolf wrote:
>>     
>>> Hans Hagen wrote:
>>>   
>>>       
>>>> Peter Rolf wrote
>>>>     
>>>>         
>>>>> * 2 of 3 picture (png) are not found; both unfound file have a
>>>>>   "_" in the name
>>>>>   
>>>>>       
>>>>>           
>>>> hm, will look into it
>>>>
>>>>     
>>>>         
>>> I have found the cause of this one. If I don't use \usefigurebase the
>>> gfx are found and included.
>>>
>>>   
>>>       
>>>>> * position of some (not all) overlay backgrounds is wrong (shifted to
>>>>> the left); maybe only a side effect
>>>>>   
>>>>>       
>>>>>           
>>> Sadly the overlays are still placed at the wrong location.
>>>
>>> But one step after the other :)
>>>
>>> P
>>>       
>> of that you can make an example ... 
>>
>>     
> ....I really don't know. This is what I found out so far...
>
> First of all all macros are placed with \setlayer in the same layer,
> using \framed[background=...]{..} to set the content.
>
> For all macros with shifted overlays
> * the text is placed at the correct position
> * the overlay graphic ends exactly where the overlaybox starts
>  -----------------------------
> | overlay gfx  |     text     |
>  -----------------------------
>
> The two working (non shifted) macros contain
> * no text or
> * the text is encapsulated in a \smash[d]
>
> Mhh, weird. I *removed the text* in one shifted macro and the overlay
> gfx is placed correctly. Does that ring a bell?
>   
\starttext

\definelayer[test][width=10cm,height=10cm]

\setlayer[test]{xxx}
\setlayer[test][preset=rightbottom]{xxx}

\framed[background=test,width=10cm,height=10cm]{zz}

\stoptext

works ok here, so the question is: what is the width/height of your layer

-- 

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



More information about the ntg-context mailing list