From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31430 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: textrules Date: Thu, 19 Oct 2006 19:32:34 -0400 (EDT) Message-ID: References: <1161261479.6780.8.camel@g5.home> <4537940B.2000303@gmx.net> 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 1161300776 17859 80.91.229.2 (19 Oct 2006 23:32:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 23:32:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 20 01:32:53 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 1GahNa-0001mb-DS for gctc-ntg-context-518@m.gmane.org; Fri, 20 Oct 2006 01:32:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E53A1FEBA; Fri, 20 Oct 2006 01:32:49 +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 20324-03; Fri, 20 Oct 2006 01:32:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59FAE1FEC0; Fri, 20 Oct 2006 01:32:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4FD741FEC3 for ; Fri, 20 Oct 2006 01:32:40 +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 17608-07 for ; Fri, 20 Oct 2006 01:32:37 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id A95F91FEBA for ; Fri, 20 Oct 2006 01:32:36 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 45380B11.A37FB.28110 ; 19 Oct 2006 19:32:34 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: 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:31430 Archived-At: On Thu, 19 Oct 2006, Thomas A. Schmitz wrote: > > On Oct 19, 2006, at 5:04 PM, Peter Rolf wrote: > >> Hi Thomas, >> >> >>> >> add >> >> \showskips >> >> to your source (better a small one). I just tested a bit (between my >> current mp examples) and 'inbetween={\blank[2*big]}' and >> 'after={\blank[2*big]}' should do the job. If you dare, ask Hans about >> the meaning of 'before' ;) >> >> >> Greetings, Peter >> > > Thanks Peter, > > that was very helpful. I still had to tweak a bit, but by combining > "inbetween" and "after," I got an acceptable result. So the mystery > thickens: what is before? :-) \textrule[top] does before ----------- (rule) inbetween \textrule[bottom] does inbetween ---------- after \textrule with no argumet is equal to \textrule[bottom] There is a \domiddletextrule that does inbetween ------------ inbetween but this is not interfaced with \textrule. It only becomes active inside a \starttextrule. \starttextrule{whatever} \input knuth \textrule \input knuth \stoptextrule To use this, you can define your own rule as \def\midtextrule{\dosinglegroupempty\domiddletextrule} \setuptextrules[inbetween={\blank[big]}] And midtextrule will use inbetween on both side. Hans, does it make sense to add this to core-rul? \def\complextextrule[#1]% {\processaction [#1] [ \v!top=>\let\next\dotoptextrule, \v!bottom=>\let\next\dobottomtextrule, middle=>\let\next\domiddletextrule, %<------- Added \s!default=>\let\next\dobottomtextrule, \s!unknown=>\let\next\dobottomtextrule]% \dosinglegroupempty\next} Aditya