
Am 08.04.25 um 12:18 schrieb alan.caruanambom@gmail.com:
I modified it, but it only affects the first page.
The mark appears on the edge of the page; I just want a line in the middle.
\setuppapersize[A5][A4,landscape] \setuparranging[2*2]
\setuplayout[middle]
\startuniqueMPgraphic{MPfoldmark} pickup pensquare scaled 0.5pt ; drawoptions(dashed evenly withcolor "registration") ; xd := OverlayWidth/2; draw (xd,0)--(xd,\pagecutmarklength); draw (xd,OverlayHeight)--(xd,(OverlayHeight - \pagecutmarklength));
I wanted the marks outside, just change the draw coordinates to draw (xd,0)--(xd,OverlayHeight); Then you also don’t need the \pagecutmarklength anywhere.
\stopuniqueMPgraphic
\defineoverlay[foldmark][\uniqueMPgraphic{MPfoldmark}]
\definelayer[PagePlus][ x=-\pagecutmarklength, y=-\pagecutmarklength, width=1\paperwidth+2\pagecutmarklength, height=1\paperheight+2\pagecutmarklength, repeat=yes, ] \setupbackgrounds[page][background=PagePlus, state=repeat, ]
If a layer should be repeated on all pages, you must define it with "repeat=yes" and set it as background with "state=repeat". Have fun, Hraban