From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26546 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: \setupmarginrules Date: Mon, 27 Mar 2006 22:54:29 +0200 Message-ID: <44285105.1060902@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> 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 1143492884 9351 80.91.229.2 (27 Mar 2006 20:54:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 20:54:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 27 22:54:34 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 1FNyjE-0006Ag-9J for gctc-ntg-context-518@m.gmane.org; Mon, 27 Mar 2006 22:54:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3E436127B3; Mon, 27 Mar 2006 22:54: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 00691-04; Mon, 27 Mar 2006 22:54:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41DEB12783; Mon, 27 Mar 2006 22:54:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A26A112783 for ; Mon, 27 Mar 2006 22:54:12 +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 00826-02-2 for ; Mon, 27 Mar 2006 22:54:11 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id C3A5E12775 for ; Mon, 27 Mar 2006 22:54:11 +0200 (CEST) Original-Received: (qmail 2598 invoked from network); 27 Mar 2006 20:54:11 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (typokvitek@seznam.cz@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 27 Mar 2006 20:54:11 -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: <20060326204125.GA15338@obiit.org> 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:26546 Archived-At: 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