From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44774 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: metapost behaving different Date: Thu, 16 Oct 2008 12:57:28 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224154781 10463 80.91.229.12 (16 Oct 2008 10:59:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2008 10:59:41 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 16 13:00:40 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1KqQau-00037f-2l for gctc-ntg-context-518@m.gmane.org; Thu, 16 Oct 2008 13:00:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 712A41FD4A; Thu, 16 Oct 2008 12:59:33 +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 16378-02-14; Thu, 16 Oct 2008 12:58:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CD3C41FCE3; Thu, 16 Oct 2008 12:58:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0EEF1FCE3 for ; Thu, 16 Oct 2008 12:58:29 +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 16332-03-4 for ; Thu, 16 Oct 2008 12:57:35 +0200 (CEST) Original-Received: from postduif.ic.uva.nl (postduif.ic.uva.nl [145.18.40.180]) by ronja.ntg.nl (Postfix) with ESMTP id E081F1FC3E for ; Thu, 16 Oct 2008 12:57:35 +0200 (CEST) Original-Received: from Mindolluin.lan (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by postduif.ic.uva.nl (8.13.1/8.13.1) with ESMTP id m9GAvTN9028778 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 16 Oct 2008 12:57:30 +0200 X-Mailer: Apple Mail (2.929.2) X-CanItPRO-Stream: auth (inherits from default) X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 145.18.40.180 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44774 Archived-At: Drawing with a square pen gives better rectangles My metapost code is something like: pickup square pen draw rectangle with label within (macro call) label drawing within the rectangle is essentially done with % prevent wobbling of text boxes with uneven depth pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); % pic goes into rectangle Under mkii this worked but under mkiv the text is mangled. To restore proper text I had to surround this with pen commands: pentemp := savepen; pickup pencircle scaled 0pt; % apparently any size will do % prevent wobbling of text boxes with uneven depth pic := textext("\setbox0=\hbox{"&labeltext&"}\dp0=0pt\box0"); % pic goes into rectangle pickup pentemp; Why is mkii behaving differently and not affected by pen changes? Is this to be expected from metapost (and thus to be considered normal behaviour) or did a bug creep in? Using luatex 0.30.1 and 2008.08.05 18:47 MKIV. [By the way, sometxt doesn't work here and I have to stick with textext.] Hans van der Meer ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________