From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82342 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 17:06:09 +0200 Message-ID: <535133AA-A348-41C8-A25B-DBE1B9125408@gmail.com> References: <5187B662.5040403@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: multipart/mixed; boundary="===============0406854472==" X-Trace: ger.gmane.org 1367852793 2086 80.91.229.3 (6 May 2013 15:06:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 May 2013 15:06:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 06 17:06:34 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 1UZMzq-0000PB-3R for gctc-ntg-context-518@m.gmane.org; Mon, 06 May 2013 17:06:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C493101E9; Mon, 6 May 2013 17:06:33 +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 oD5pzUu335NG; Mon, 6 May 2013 17:06:27 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 21824101E4; Mon, 6 May 2013 17:06:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E8FE101E4 for ; Mon, 6 May 2013 17:06:25 +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 mxoQ5QS7Tu4a for ; Mon, 6 May 2013 17:06:20 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 4C330101E0 for ; Mon, 6 May 2013 17:06:10 +0200 (CEST) Original-Received: from mail-ea0-x235.google.com (mail-ea0-x235.google.com [IPv6:2a00:1450:4013:c01::235]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r46F69N5010699 for ; Mon, 6 May 2013 17:06:09 +0200 Original-Received: by mail-ea0-f181.google.com with SMTP id a11so1728224eae.26 for ; Mon, 06 May 2013 08:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:message-id:mime-version:subject:date :references:to:in-reply-to:x-mailer; bh=e/1Fbt5vVJCCSTZPp3qsj9PldGn4fBPI5yU5fkvko7A=; b=wP9w/rtFSII5U1f3TTXy0+J0/166aNBGhZ2hh+HQJ3Ru780hnOoUf0LJ3H3PX+Edta Idc1/a2CG/a/dAbv6TqRmCSSPwd4ePtx5eBp6qBHx+CdBsB0VC9Uoy2FddYP9zKs/XtY 3wFb1ak8Z5DMuU2WhQxQSJHYOTcasFvQlLCBckol3VBaGwmwgMS/aXms+Y23In1VZf7u /l90I4eAxcwVYurlpP6E7Mph0zxZzlFtbLmOVupZsSUDEXIkNDO5pxipo/t/pIBwt793 /BJoqPEdhbTxjH3dKiBIdZCCCWIvvJAfv0FgM9F7hIkskA/Rqos/UHK2caxJejAD2cbs 9tTw== X-Received: by 10.14.109.131 with SMTP id s3mr61242668eeg.26.1367852769401; Mon, 06 May 2013 08:06:09 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf8dd9.pool.mediaWays.net. [77.191.141.217]) by mx.google.com with ESMTPSA id m4sm7919194eeu.15.2013.05.06.08.06.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 08:06:08 -0700 (PDT) In-Reply-To: <5187B662.5040403@mmnetz.de> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.8732 (Score 2, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJwD69td - 859f7b1a56a0 - 20130506 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:82342 Archived-At: --===============0406854472== Content-Type: multipart/alternative; boundary="Apple-Mail=_237EBFD8-7B34-4264-8B79-9225A189078C" --Apple-Mail=_237EBFD8-7B34-4264-8B79-9225A189078C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 06.05.2013 um 15:55 schrieb H. =D6zoguz : >> > Hi, >> >=20 >> > 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? >>=20 >> When this is the text where you place both columns with a table you = can just enable the rule between both columns. >=20 > Thanks Wolfgang! >=20 > The reason for the use of the layer is the following: If I use frames = of the natural table, then I have this: >=20 > \def\arde[#1][#2]{% > \bTABLE > \setupTABLE[frame=3Doff] > \setupTABLE[c][1][rightframe=3Don] > \bTR=20 > \bTD #1 \eTD > \bTD #2 \eTD=20 > \eTR > \eTABLE} > \setuptolerance[tolerant,stretch] > \starttext > \arde[\input knuth][\input knuth] > \arde[\input knuth][\input knuth] > \stoptext >=20 > There you can see the problem, you have to zoom into the pdf: Between = the two tables, there is a tiny tiny (!) space betweeen the vertical = lines. Its not a big issue, but it is there. The space is inserted by TeX when characters in different lines are = touching. You can avoid this when you put everything in a single table. You should = also avoid to use brackets as delimiters for text, use normal braced arguments why = can be grouped without problems. \startsetups[arde] \setupTABLE[c][1][rightframe=3Don] \stopsetups \def\startarde {\bTABLE[frame=3Doff,width=3D.5\textwidth,setups=3Darde,split=3Dyes]} \def\stoparde {\eTABLE} \define[2]\arde {\bTR \bTD#1\eTD \bTD#2\eTD=20 \eTR} \setuptolerance[tolerant,stretch] \starttext \startarde \arde{\input knuth }{\input knuth } \arde{\input knuth }{\input knuth } \stoparde \stoptext Wolfgang= --Apple-Mail=_237EBFD8-7B34-4264-8B79-9225A189078C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 h.oezoguz@mmnetz.de>:
=20 =20
> Hi,
>=20
> 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.

Thanks Wolfgang!

The reason for the use of the layer is the following: If I use frames of the natural table, then I have this:

\def\arde[#1][#2]{%
\bTABLE
\setupTABLE[frame=3Doff]
\setupTABLE[c][1][rightframe=3Don]
\bTR
\bTD #1 \eTD
\bTD #2 \eTD
\eTR
\eTABLE}
\setuptolerance[tolerant,stretch]
\starttext
\arde[\input knuth][\input knuth]
\arde[\input knuth][\input knuth]
\stoptext

There you can see the problem, you have to zoom into the pdf: Between the two tables, there is a tiny tiny (!) space betweeen the vertical lines. Its not a big issue, but it is = there.

The space is inserted by TeX = when characters in different lines are = touching.

You can avoid this when you put = everything in a single table. You should also avoid
to use = brackets as delimiters for text, use normal braced arguments why can = be
grouped without = problems.

\startsetups[arde]
 = ; = \setupTABLE[c][1][rightframe=3Don]
\stopsetups

\def\startarde
  = {\bTABLE[frame=3Doff,width=3D.5\textwidth,setups=3Darde,split=3Dyes]}

\def\stoparde
  = {\eTABLE}

\define[2]\arde
  = {\bTR
     \bTD#1\eTD
    =  \bTD#2\eTD 
  =  \eTR}

\setuptolerance[tolerant,stretch]

\starttext
\startarde
\arde{\inp= ut knuth }{\input knuth }
\arde{\input knuth }{\input knuth = }
\stoparde
\stoptext

W= olfgang
= --Apple-Mail=_237EBFD8-7B34-4264-8B79-9225A189078C-- --===============0406854472== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0406854472==--