From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26579 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: \setupmarginrules Date: Tue, 28 Mar 2006 17:10:37 +0200 Message-ID: <442951ED.3090207@seznam.cz> 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> 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 1143558663 29886 80.91.229.2 (28 Mar 2006 15:11:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Mar 2006 15:11:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 28 17:11:01 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 1FOFpx-0003tM-D9 for gctc-ntg-context-518@m.gmane.org; Tue, 28 Mar 2006 17:10:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 238EF127DE; Tue, 28 Mar 2006 17:10:25 +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 19049-06-3; Tue, 28 Mar 2006 17:10:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E41D1127D8; Tue, 28 Mar 2006 17:10:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F09E0127D8 for ; Tue, 28 Mar 2006 17:10:19 +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 19049-06-2 for ; Tue, 28 Mar 2006 17:10:19 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 2340C127D5 for ; Tue, 28 Mar 2006 17:10:18 +0200 (CEST) Original-Received: (qmail 1449 invoked from network); 28 Mar 2006 15:10:18 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (typokvitek@seznam.cz@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 28 Mar 2006 15:10:18 -0000 X-Seznam-User: typokvitek@seznam.cz User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <44294D0B.6030702@boede.nl> X-Antivirus: avast! (VPS 0611-2, 17.03.2006), Outbound message X-Antivirus-Status: Clean 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:26579 Archived-At: 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 ---------------------------------------------------- Vit > 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