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));
\stopuniqueMPgraphic

\defineoverlay[foldmark][\uniqueMPgraphic{MPfoldmark}]

\definelayer[PagePlus][
   x=-\pagecutmarklength,
   y=-\pagecutmarklength,
   width=1\paperwidth+2\pagecutmarklength,
   height=1\paperheight+2\pagecutmarklength,
]
\setupbackgrounds[page][background=PagePlus]

\setlayerframed[PagePlus][
   y=-\measure{Trim},
   x=0mm,
   height=1\paperheight,
   width=1\paperwidth,
   background=foldmark,
]{}

\starttext
    \dorecurse{100}{\input knuth \relax}
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to