![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 06.05.2013 um 08:26 schrieb H. Özoguz
Hi,
I use a vertical line (realized as a layer) for a bilingual project. My question is: 1. How can I set this line on all pages?
When this is the text where you place both columns with a table you can just enable the rule between both columns.
2. How can I control, on which pages it is set, and on which not? I tried it with state=start/stop/repeat, but that did not work.
Here my try:
\definelayer[mybg] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight] \setlayer[mybg] [hoffset=10cm, voffset=4cm] {\blackrule[width=1pt, height=\vsize, depth=0.5ex]} \setupbackgrounds[page][background=mybg] \setuptolerance[tolerant,stretch]
\starttext \input knuth \page \input knuth \stoptext
\newconditional\placeRULE \definelayer[rule][state=repeat] \setlayer[rule][x=.5\textwidth]{\blackrule[width=1pt,height=\textheight]} \defineoverlay[rule][{\ifconditional\placeRULE\placelayer[rule]\fi}] \setupbackgrounds[text][background=rule] \starttext \input knuth \page \settrue\placeRULE \input tufte \page \input zapf \page \setfalse\placeRULE \input ward \stoptext Wolfgang