From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31461 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: textrules Date: Sat, 21 Oct 2006 10:47:15 +0200 Message-ID: <9E6BD512-7FBA-40D5-A68A-8F62807EDA9C@uni-bonn.de> 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 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161420484 3149 80.91.229.2 (21 Oct 2006 08:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Oct 2006 08:48:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 21 10:48:02 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 1GbCWQ-00045M-0T for gctc-ntg-context-518@m.gmane.org; Sat, 21 Oct 2006 10:48:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F5701FF3F; Sat, 21 Oct 2006 10:48:01 +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 25569-02-8; Sat, 21 Oct 2006 10:47:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE3A11FF42; Sat, 21 Oct 2006 10:47:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B72591FF44 for ; Sat, 21 Oct 2006 10:47:53 +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 25569-02-7 for ; Sat, 21 Oct 2006 10:47:52 +0200 (CEST) Original-Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by ronja.ntg.nl (Postfix) with SMTP id EE8D21FF3F for ; Sat, 21 Oct 2006 10:47:51 +0200 (CEST) Original-Received: from fwd27.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1GbCWF-0007QG-00; Sat, 21 Oct 2006 10:47:51 +0200 Original-Received: from [192.168.0.2] (E4soKUZZrep8BWjAswu69GKOTitmggutCbe71-QcvH1eQeOHHsc5U8@[84.172.109.216]) by fwd27.sul.t-online.de with esmtp id 1GbCW7-1yT5Tk0; Sat, 21 Oct 2006 10:47:43 +0200 In-Reply-To: Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-ID: E4soKUZZrep8BWjAswu69GKOTitmggutCbe71-QcvH1eQeOHHsc5U8@t-dialin.net X-TOI-MSGID: 79cd9d5e-ce1e-4552-b155-65d922037550 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:31461 Archived-At: On Oct 20, 2006, at 1:32 AM, Aditya Mahajan wrote: > \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 Aditya, thanks for this in-depth explanation! One mystery solved! I have now tweaked my output so it looks the way it should. Best Thomas