From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78280 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: MKII & MKIV difference between \textrule Date: Fri, 14 Sep 2012 13:26:13 +0200 Message-ID: <2C982BA9-30C9-40ED-8BCA-C4788F15EB94@gmail.com> References: <50525941.9060307@perucchi.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347621995 6001 80.91.229.3 (14 Sep 2012 11:26:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 11:26:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 13:26:36 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCU2V-0004Ra-KB for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 13:26:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C5C710208; Fri, 14 Sep 2012 13:26:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zCFDHHPeEzEA; Fri, 14 Sep 2012 13:26:21 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4C03F10200; Fri, 14 Sep 2012 13:26:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 280AD10200 for ; Fri, 14 Sep 2012 13:26:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id frUjOB32QBSM for ; Fri, 14 Sep 2012 13:26:18 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 7DA6D101F8 for ; Fri, 14 Sep 2012 13:26:18 +0200 (CEST) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8EBQHK5011328 for ; Fri, 14 Sep 2012 13:26:17 +0200 Original-Received: by bkcjc3 with SMTP id jc3so1241606bkc.14 for ; Fri, 14 Sep 2012 04:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=DCI5q2XBSYQjijvXX28neC6vVditV0ozQK1b108ftPk=; b=qpIEI374OovDgPxhivowiZvZg7gNke8plDMCAzoGNJZv8fw9XEKHrpjc2Xy+YLk4NL ugUibh+qNQxi3pnbNnvXsJFrYPzV1JKWzBE/ag5IkwUAJyvsGQ4gEwmpU2yc9ySXAmJm 8v8SPGuc4T4n6gy0KHxxz3BCUTQJ3WB8HMVjPdN5/TnuTHJ52lbNVBAAgkUn+aBYxBxY Xvl9p4ChA5eShpjBDN6aBqddbhAPPA8Ui3wib732750OygUKqkS/gW9+QRLmLic+WyZt C6bJ6jzv3ZzATSJbqrPeK+kWq+AJwh1BegQXLBOiDxCynUcf1Y+dCWtIFZjdLwkaK3Fo ILOw== Original-Received: by 10.204.148.86 with SMTP id o22mr984046bkv.59.1347621976740; Fri, 14 Sep 2012 04:26:16 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf9f6a.pool.mediaWays.net. [77.191.159.106]) by mx.google.com with ESMTPS id x12sm838871bkv.12.2012.09.14.04.26.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 04:26:15 -0700 (PDT) In-Reply-To: <50525941.9060307@perucchi.org> X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08HWXqheS - 9af9d39b5b71 - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78280 Archived-At: Am 14.09.2012 um 00:08 schrieb Alessandro Perucchi : > Hello, > > In my experimentation, I've found that in mkii and mkiv the behavior of \textrule and \setuptextrule are different... > > What I did was quite simple: > > \textrule{Testing head} > blah blah blah > \textrule > > in mkii the text in well centered between the lines. > But in mkiv the bottom line is too near the text, and I need to add something like \blank[halfline] to have a similar behavior as mkii. There is a vertical skip missing in the MkIV version of the macros. pack-mrl.mkiv \def\pack_textrule_following#1% {\doifelsenothing{#1} - {\nointerlineskip + {\vskip\dimexpr\strutdp+.5ex\ifdim\prevdepth>\strutdp\else\ifdim\prevdepth>\zeropoint-\prevdepth\fi\fi\relax + \nointerlineskip \dontleavehmode\vbox {\color[\directtextrulesparameter\c!rulecolor] {\hrule\s!depth\directtextrulesparameter\c!rulethickness\s!height\zeropoint\s!width\availablehsize}}} {\pack_textrule_with_text{#1}}% \ifvmode \prevdepth\zeropoint \fi} > And apparently the command \starttextrule ... \stoptextrule doesn't work (this was explain in the cont-entp.pdf page 204) in either mkii & mliv. This does work for me: \starttext blah blah blah \starttextrule{Testing head} blah blah blah \stoptextrule blah blah blah \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________