From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26574 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: \setupmarginrules Date: Tue, 28 Mar 2006 16:49:47 +0200 Message-ID: <44294D0B.6030702@boede.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> 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 1143557413 23908 80.91.229.2 (28 Mar 2006 14:50:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 14:50:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 28 16:50:10 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 1FOFW7-000802-S8 for gctc-ntg-context-518@m.gmane.org; Tue, 28 Mar 2006 16:49:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29C1A1279B; Tue, 28 Mar 2006 16:49:54 +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 18234-05; Tue, 28 Mar 2006 16:49:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57E3012796; Tue, 28 Mar 2006 16:49:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8BB9012796 for ; Tue, 28 Mar 2006 16:49:47 +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 18429-01 for ; Tue, 28 Mar 2006 16:49:46 +0200 (CEST) Original-Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by ronja.ntg.nl (Postfix) with SMTP id 6E8C51276F for ; Tue, 28 Mar 2006 16:49:46 +0200 (CEST) Original-Received: from [127.0.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) (authenticated bits=0) by smtp-vbr13.xs4all.nl (8.13.6/8.13.6) with ESMTP id k2SEnjnb093257 for ; Tue, 28 Mar 2006 16:49:46 +0200 (CEST) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <44285105.1060902@seznam.cz> X-Virus-Scanned: by XS4ALL Virus Scanner 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:26574 Archived-At: 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 Vit Zyka wrote: >frantisek holop wrote: > > >>hmm, on Sun, Mar 26, 2006 at 10:12:01PM +0200, Vit Zyka said that >> >> >> >>>>\defineparagraphs [poem][n=2] >>>>\setupparagraphs [poem][1][width=.25\textwidth] >>>>\setupparagraphs [poem][2][rule=on] >>>> >>>>\setupmarginrules [rulethickness=5pt] >>>> >>>> >>>this sets rules for margins. I guess the solution >>> >>>\setupparagraphs [poem][2][rule=on,rulethickness=5pt] >>> >>> >>sorry, i forgot to add, that i tried this one also :) >>seemed logical, but the result is the same. >> >>-f >> >> > >OK, there is a patch (with minor correction): > >----------------------------------------------------------- >\defineparagraphs [poem][n=2,distance=20pt] >\setupparagraphs [poem][1][width=.25\textwidth] >\setupparagraphs [poem][2][rule=on,rulethickness=10pt] > >\unprotected >\def\doalinealijn#1#2% > {\doifelsevalue{\??al#2\the\alteller\c!rule}\v!on > {\dimen2=#1\relax > \hskip.5\dimen2 >% \hskip-\linewidth > \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ >% \vrule\!!width\linewidth > \vrule\!!width\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ > \hskip-.5\getvalue{\??al#2\the\alteller\c!rulethickness}% VZ > \hskip.5\dimen2} > {\hskip#1}} > >\starttext >\startpoem >\input knuth >\nextpoem >\input knuth >\stoppoem >\stoptext >----------------------------------------------------------------- > >for distro it also should be accompanied by > > \c!rulethickness=\linewidth, > >in \def\dodefineparagraphs[#1][#2]% > >Vit >_______________________________________________ >ntg-context mailing list >ntg-context@ntg.nl >http://www.ntg.nl/mailman/listinfo/ntg-context > >