
Cutting an A4 landscape in half is plain vanilla 148.5 mm, folding the sheet in two, so why would there be a need to draw a line (that you have to cut exactly in two to avoid bleeding) (just thinking) .F On 08/04/2025 12:36, Henning Hraban Ramm wrote:
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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________