problems with images, layers and crop marks
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Hi all, I’m quite quiet at the moment, because I can access my mailing list address only via inconvenient webmail; since I updated MacOS, neither Apple Mail nor Thunderbird will take my password anymore... :-(( Besides, I’m currently well paid for working with LaTeX, and my other projects get less time. Anyway, one of our authors finally submitted her final corrections, and "of course" my ConTeXt setup that still worked well in May doesn’t behave any more: * stacked layers won’t work on the first page (there should be a title bar above an image; it works on the back cover, but not on the front; but I can enable one of both layers) That might be related to: * on some right pages, including p.1 (cover), crop marks are shifted one page width to the right. * on some pages, crop marks are shifted vertically; might be related to using \offset for image placement. I’m trying to cook up MWEs, but the behaviour is so strange and irregular, that I don’t know if I can reproduce it in a simpler environment... I suspect my combined use of postponing, makeups, layers and \offset might have grown side effects since May. Any ideas? Greetlings, Hraban Greetlings, Hraban Grüßlinge, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 7/8/2019 1:06 AM, Henning Hraban Ramm wrote:
Hi all, I’m quite quiet at the moment, because I can access my mailing list address only via inconvenient webmail; since I updated MacOS, neither Apple Mail nor Thunderbird will take my password anymore... :-(( Besides, I’m currently well paid for working with LaTeX, and my other projects get less time.
Anyway, one of our authors finally submitted her final corrections, and "of course" my ConTeXt setup that still worked well in May doesn’t behave any more:
* stacked layers won’t work on the first page (there should be a title bar above an image; it works on the back cover, but not on the front; but I can enable one of both layers)
That might be related to:
* on some right pages, including p.1 (cover), crop marks are shifted one page width to the right.
* on some pages, crop marks are shifted vertically; might be related to using \offset for image placement.
I’m trying to cook up MWEs, but the behaviour is so strange and irregular, that I don’t know if I can reproduce it in a simpler environment... I suspect my combined use of postponing, makeups, layers and \offset might have grown side effects since May.
Any ideas? afaik nothing fundamental changed in these areas (ok, maybe you operate out of the formal functionality) ... of course, if you're using lmtx it might be that something got fixed in there, as at that moment it was more experimental than it is now
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
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 \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? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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
\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
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Zitat von Hans Hagen
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
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm