[NTG-context] problems with images, layers and crop marks

Henning Hraban Ramm texml at fiee.net
Mon Jul 8 16:39:27 CEST 2019


Zitat von Hans Hagen <j.hagen at xs4all.nl>:

> On 7/8/2019 12:26 PM, Henning Hraban Ramm wrote:
>> I found the culprit, it’s \clip :
>>
>>
>> \setuppapersize[A6][C6]
>> \setuplayout[
>>     location=middle,
>>     marking=on,
>> ]
>>
>> \starttext
>>     \clip[
>>         hoffset=\textwidth,
>>         voffset=5mm,
>>         width=\pagewidth,
>>         height=\pageheight]{%
>>     \externalfigure[hacker][height=\pageheight]}
>>
>> \page[right]
>> \strut
>
> beware: \pagewidth and \pageheight are low level engine variables,  
> use \paperwidth and \paperheight instead as these engine ones will  
> be nilled

Thank you for the hint. In my actual code I use other measures.


>> \stoptext
>>
>>
>> Crop marks as well as some layers (not shown in example) are  
>> shifted by \clip’s hoffset and voffset.
>> I guess there’s some internal variables bleeding or the like?
> hm, i'll apply a bit more agressive grouping there; i'll send you a test

Thank you, that seems to fix it.


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD



More information about the ntg-context mailing list