From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11455 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Margin rules Date: Mon, 17 Mar 2003 09:14:20 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030317091118.03941870@server-1> References: <000b01c2e8f7$97a2f300$6401a8c0@victorfi> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1047890018 12120 80.91.224.249 (17 Mar 2003 08:33:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2003 08:33:38 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Mar 17 09:33:36 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18uq3s-00039F-00 for ; Mon, 17 Mar 2003 09:33:36 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6789110B20; Mon, 17 Mar 2003 09:34:26 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 4D43610B12 for ; Mon, 17 Mar 2003 09:29:45 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2H8Tgcr020088 for ; Mon, 17 Mar 2003 09:29:43 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2H8TgEY032111 for ; Mon, 17 Mar 2003 09:29:43 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <000b01c2e8f7$97a2f300$6401a8c0@victorfi> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11455 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11455 At 05:50 PM 3/12/2003 +0300, you wrote: >Hello, Hans! > >One year ago you and Giuseppe Bilotta talked about >margin rules: > >GB>> You can set the level, but you cannot customize its >GB>> color/position/etc, which is what I was talking about. > >HH> i can easily implement that (with cross page support and so), >HH> but definitely not today; so put it on the wish list and >HH> ask me again later > >Let me remind you of this topic, it is very necessary >for me too. > >Or, may be, there is another way to draw vertical lines at left >of some paragraphs with possibility of crossing page boundaries? Hm, i thought that i posted something some time ago, but maybe it was not to the list. Can you download the latest beta? It now has a module m-plus: %D Somewhere in 2001 i started collecting new functionality %D in a module \type {m-yesno}. As the name suggests, I was %D not entirely sure if this functionality belonged in the %D kernel. When (again) on the \CONTEXT\ list a request for %D side bars was posted, I decided to move such code to plus %D modules. Users who want this additional functionality can %D put the following call in their \type {cont-sys.tex} file: %D %D \starttyping %D \usemodule[plus] %D \stoptyping This loads: %D \definesidebar[whow][rulecolor=green,distance=] %D %D \starttext %D %D \input tufte \par %D \startsidebar %D \input tufte \par %D \input tufte \par %D \startsidebar[whow] %D \input tufte \par %D \input tufte \par %D \input tufte \stopsidebar \par %D \input tufte \par %D \input tufte \stopsidebar \par %D \input tufte \par %D \input tufte \par %D \startsidebar %D \input tufte \par %D \input tufte \par %D \input tufte \par %D \input tufte \par %D \input tufte \stopsidebar \par %D \input tufte \par %D \input tufte \par %D \startsidebar %D \input tufte %D \input tufte %D \input tufte %D \input tufte %D \input tufte %D \stopsidebar and %D We now reimplement the margin rules handler defined in %D \type {core-rul}: %D %D \setupmarginrules[level=5] %D %D \startmarginrule[1] %D First we set the level at~5. Next we typeset this first %D paragraph as a level~1 one. As expected no rule show up. %D \stopmarginrule %D %D \startmarginrule[5] %D The second paragraph is a level~5 one. As we can see here, %D the marginal rule gets a width according to its level. %D \stopmarginrule %D %D \startmarginrule[8] %D It will of course be no surprise that this third paragraph %D has a even thicker margin rule. This behavior can be %D overruled by specifying the width explictly. %D \stopmarginrule There are some moreplus modules, bit not yet suited for usage. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------