From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26585 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \setupmarginrules Date: Tue, 28 Mar 2006 18:42:26 +0200 Message-ID: <44296772.3090508@wxs.nl> References: <20060315235342.GI11831@obiit.org> <44194036.4000500@wxs.nl> <20060316225749.GC13262@obiit.org> <441B04D5.1080005@boede.nl> <20060326194222.GZ15338@obiit.org> <4426F591.90307@seznam.cz> <20060326204125.GA15338@obiit.org> <44285105.1060902@seznam.cz> <44294D0B.6030702@boede.nl> <442951ED.3090207@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143564198 22336 80.91.229.2 (28 Mar 2006 16:43:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 16:43:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 28 18:43:04 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FOHH8-00064c-5M for gctc-ntg-context-518@m.gmane.org; Tue, 28 Mar 2006 18:42:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D44F9127F5; Tue, 28 Mar 2006 18:42:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20638-01-3; Tue, 28 Mar 2006 18:42:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64CAA127F1; Tue, 28 Mar 2006 18:42:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7CE1E127F1 for ; Tue, 28 Mar 2006 18:42:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20638-01-2 for ; Tue, 28 Mar 2006 18:42:26 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id BAD89127F0 for ; Tue, 28 Mar 2006 18:42:26 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 10170 for ; Tue, 28 Mar 2006 20:42:26 +0400 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: mailing list for ConTeXt users In-Reply-To: <442951ED.3090207@seznam.cz> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26585 Archived-At: Vit Zyka wrote: > Willi Egger wrote: > >> Hi Vit! >> >> Thanks for this patch. Do you know why the rulethickness must be given >> in integer dimension. e.g. 2.5pt will cause an error, telling that a >> wrong dimension is used. >> >> Willi >> > > Due to my fault. Sorry. This is a little bit better solution: > > ----------------------------------------------- > \defineparagraphs [poem][n=2,distance=20pt] > \setupparagraphs [poem][1][width=.25\textwidth] > \setupparagraphs [poem][2][rule=on,rulethickness=5.5pt] > > \unprotected > \def\doalinealijn#1#2% > {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on > {\dimen2=#1\relax > \dimen3=\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ > \hskip.5\dimen2 > % \hskip-\linewidth > \hskip-.5\dimen3 % VZ > % \vrule\!!width\linewidth > \vrule\!!width\dimen3 % VZ > \hskip-.5\dimen3 % VZ > \hskip.5\dimen2} > {\hskip#1}} > > \starttext > \startpoem > \input knuth > \nextpoem > \input knuth > \stoppoem > \stoptext > ---------------------------------------------------- > don't use dimen 3 locally (tex convention, has to do with stack build-up) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------