From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60470 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Multi-line labels in MetaPost MKIV Date: Wed, 28 Jul 2010 12:39:32 +0200 Message-ID: <4C5008E4.90601@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280313591 16846 80.91.229.12 (28 Jul 2010 10:39:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 10:39:51 +0000 (UTC) Cc: Richard Stephens To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 28 12:39:47 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe436-000095-7C for gctc-ntg-context-518@m.gmane.org; Wed, 28 Jul 2010 12:39:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8C228C9CC3; Wed, 28 Jul 2010 12:39:43 +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 qIXlcYrI-aG4; Wed, 28 Jul 2010 12:39:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70876C9CB7; Wed, 28 Jul 2010 12:39:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4E8AC9CB7 for ; Wed, 28 Jul 2010 12:39:38 +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 Du2tda25gxYS for ; Wed, 28 Jul 2010 12:39:36 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (sc-162.r-213-125-29.schoolconnect.nu [213.125.29.162]) by balder.ntg.nl (Postfix) with ESMTP id 68F1BC9CB6 for ; Wed, 28 Jul 2010 12:39:36 +0200 (CEST) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 4.3g4) with ESMTP id 3219-1713362 for multiple; Wed, 28 Jul 2010 12:38:35 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6 ThunderBrowse/3.3.1 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60470 Archived-At: On 28-7-2010 12:22, Richard Stephens wrote: > Am 28.07.10 10:03, schrieb Richard Stephens: >> >>> Hello all, >>> >>> What is the recommended method for creating multi-line labels in MetaPost >>> in MKIV, please? >>> I have the following code: >>> >>> \definetextext[mplabel]{\framed[frame=off,align=middle]} >>> \starttext >>> \startMPpage >>> input mp-tool; >>> >>> draw fullcircle scaled 5cm; >>> label(\sometxt[mplabel]{One\\Two}, (0,0)); >>> \stopMPpage >>> \stoptext >>> >>> which gives a line feed between One and Two using MKII, but no line feed >>> in MKIV. >>> >> >> \defineframed[mplabel][frame=off,align=middle] >> >> \starttext >> \startMPpage >> draw fullcircle scaled 5cm ; >> label(textext("\mplabel{One\\Two}"),origin)) ; >> \stopMPpage >> \stoptext >> >> Wolfgang >> > > Thanks for the suggestion, but I still don't get a line feed! I am using > ConTeXt from 15-May-2010, has something changed since then? in pack-rul.mkiv add \unexpanded here: \unexpanded\def\vboxednewline {\endgraf\ignorespaces} \unexpanded\def\hboxednewline {\unskip\normalspace\ignorespaces} and then remake the format (it's a side effect of nested framed usage) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________