From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82339 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Layer for all pages and for specific pages Date: Mon, 6 May 2013 12:19:08 +0200 Message-ID: <6C7CADE4-63A8-475C-BBBB-880E0D572D57@gmail.com> References: <51874CFE.3000605@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367835567 12477 80.91.229.3 (6 May 2013 10:19:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 May 2013 10:19:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 06 12:19:28 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UZIVz-0000Fn-4j for gctc-ntg-context-518@m.gmane.org; Mon, 06 May 2013 12:19:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 266A1101EB; Mon, 6 May 2013 12:19:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 47hSqfcb8Iyk; Mon, 6 May 2013 12:19:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E9789101E4; Mon, 6 May 2013 12:19:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B861101E4 for ; Mon, 6 May 2013 12:19:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZbWF0ZHKqv5b for ; Mon, 6 May 2013 12:19:21 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 90C6A101E0 for ; Mon, 6 May 2013 12:19:11 +0200 (CEST) Original-Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r46AJAce019632 for ; Mon, 6 May 2013 12:19:10 +0200 Original-Received: by mail-ee0-f44.google.com with SMTP id t10so1711401eei.3 for ; Mon, 06 May 2013 03:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=QA5Ke3fQ8hnm73DHia6lrqdQvdT72R5xWLMjnq8DlCc=; b=X6C51iCpiv7QRGgq3KGKfM44hag5J5JEOnFwaZGHtfyscU8XU0PXDdn5uvmE+ZBUjb TreECkBxEeq9noL18t+4O+f1XudEDGO57WSijQyqDHFhaCqIsAhIHjS6CcLX75X03GH7 c51vdc/ZH+y+UEt2jxDv83l+6/jWVDIngT9FS1BA1iweqN+K/klHJt4PXppECsnLh6LW uIp5grn03+qQgNmZE+3cBDZ44djnPxcZZSHhCBjt5ej1fx9qaAn+ews2DYs7eTYJx/Ut A4o6pS/ae/Dn+q/LpaJFoFka0jtk4Tk1w07BzaKu/JZUijd3gQf3rwV+kYkPuiXxN+IJ OvAg== X-Received: by 10.14.102.9 with SMTP id c9mr58760052eeg.29.1367835549977; Mon, 06 May 2013 03:19:09 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf8dd9.pool.mediaWays.net. [77.191.141.217]) by mx.google.com with ESMTPSA id r10sm32377423eez.10.2013.05.06.03.19.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 03:19:09 -0700 (PDT) In-Reply-To: <51874CFE.3000605@mmnetz.de> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.44; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJwyja19 - 913d8659cc3e - 20130506 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82339 Archived-At: Am 06.05.2013 um 08:26 schrieb H. =D6zoguz : > Hi, > = > I use a vertical line (realized as a layer) for a bilingual project. My q= uestion 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 jus= t 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=3Dstart/stop/repeat, but that did not work. > = > Here my try: > = > \definelayer[mybg] > [x=3D0mm, y=3D0mm, > width=3D\paperwidth, height=3D\paperheight] > \setlayer[mybg] > [hoffset=3D10cm, voffset=3D4cm] > {\blackrule[width=3D1pt, height=3D\vsize, depth=3D0.5ex]} > \setupbackgrounds[page][background=3Dmybg] > \setuptolerance[tolerant,stretch] > = > \starttext > \input knuth > \page > \input knuth > \stoptext \newconditional\placeRULE \definelayer[rule][state=3Drepeat] \setlayer[rule][x=3D.5\textwidth]{\blackrule[width=3D1pt,height=3D\textheig= ht]} \defineoverlay[rule][{\ifconditional\placeRULE\placelayer[rule]\fi}] \setupbackgrounds[text][background=3Drule] \starttext \input knuth \page \settrue\placeRULE \input tufte \page \input zapf \page \setfalse\placeRULE \input ward \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________