From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78290 Path: news.gmane.org!not-for-mail From: Alessandro Perucchi Newsgroups: gmane.comp.tex.context Subject: Re: MKII & MKIV difference between \textrule Date: Fri, 14 Sep 2012 23:50:12 +0200 Message-ID: References: <50525941.9060307@perucchi.org> <2C982BA9-30C9-40ED-8BCA-C4788F15EB94@gmail.com> 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 1347659424 7381 80.91.229.3 (14 Sep 2012 21:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 21:50:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 23:50:26 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 1TCdmM-0006aE-Kv for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 23:50:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3539010205; Fri, 14 Sep 2012 23:50:22 +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 N5gmfXCRNtPW; Fri, 14 Sep 2012 23:50:19 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 80B3C101F8; Fri, 14 Sep 2012 23:50:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46540101F8 for ; Fri, 14 Sep 2012 23:50:17 +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 IJsUyN2P1jor for ; Fri, 14 Sep 2012 23:50:16 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 233F0101F6 for ; Fri, 14 Sep 2012 23:50:15 +0200 (CEST) Original-Received: from smtp2.infomaniak.ch (smtp2.infomaniak.ch [IPv6:2001:1600:2:5:21d:9ff:fe65:e562]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8ELoDI7024450 for ; Fri, 14 Sep 2012 23:50:13 +0200 Original-Received: from [192.168.0.109] (80-218-70-224.dclient.hispeed.ch [80.218.70.224]) (authenticated bits=0) by smtp2.infomaniak.ch (8.14.2/8.14.2) with ESMTP id q8ELoCHh002856 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 14 Sep 2012 23:50:13 +0200 In-Reply-To: <2C982BA9-30C9-40ED-8BCA-C4788F15EB94@gmail.com> X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:1600:2:5:21d:9ff:fe65:e562; country=CH X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06HX9Odxt - 8baa859cea5c - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:78290 Archived-At: On 14 Sep 2012, at 13:26, Wolfgang Schuster wrote: > > 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} I've tried to patch pack-mrl.mkiv and I still get the error of spacing before the second \textrule. My version of context is mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /Users/ptitvert/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2012.09.11 20:36 > >> 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 But \starttext blah blah blah \starttextrule[top]{Testing head} blah blah blah \stoptextrule blah blah blah \stoptext doesn't, and this possibility is explain in the doc, but apparently it doesn't work. So either the doc is wrong, the command is wrong or I'm doing something wrong :-D Sincerely yours, Alessandro ___________________________________________________________________________________ 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 ___________________________________________________________________________________