From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60488 Path: news.gmane.org!not-for-mail From: Richard Stephens Newsgroups: gmane.comp.tex.context Subject: Re: Multi-line labels in MetaPost MKIV Date: Wed, 28 Jul 2010 15:08:01 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280326132 28562 80.91.229.12 (28 Jul 2010 14:08:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 14:08:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 28 16:08:49 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 1Oe7JQ-000535-0d for gctc-ntg-context-518@m.gmane.org; Wed, 28 Jul 2010 16:08:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58702C9C9C; Wed, 28 Jul 2010 16:08:47 +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 Va69b0NzCdEe; Wed, 28 Jul 2010 16:08:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87F86C9CA3; Wed, 28 Jul 2010 16:08:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CECFC9C8D for ; Wed, 28 Jul 2010 16:08: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 vhg-P2K4zOZ7 for ; Wed, 28 Jul 2010 16:08:31 +0200 (CEST) Original-Received: from eu1sys200aog112.obsmtp.com (eu1sys200aog112.obsmtp.com [207.126.144.133]) by balder.ntg.nl (Postfix) with ESMTP id CE654C9BCF for ; Wed, 28 Jul 2010 16:08:31 +0200 (CEST) Original-Received: from source ([74.125.82.179]) (using TLSv1) by eu1sys200aob112.postini.com ([207.126.147.11]) with SMTP ID DSNKTFA538TtvKHHgQnQRttqZR/Q3x1ZPKKo@postini.com; Wed, 28 Jul 2010 14:08:31 UTC Original-Received: by wyb42 with SMTP id 42so4018864wyb.38 for ; Wed, 28 Jul 2010 07:08:31 -0700 (PDT) Original-Received: by 10.216.10.5 with SMTP id 5mr10682343weu.81.1280326111431; Wed, 28 Jul 2010 07:08:31 -0700 (PDT) Original-Received: by 10.216.188.4 with HTTP; Wed, 28 Jul 2010 07:08:01 -0700 (PDT) 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:60488 Archived-At: >>>> What is the recommended method for creating multi-line labels in MetaP= ost >>>> in MKIV, please? >>>> I have the following code: >>>> >>>> \definetextext[mplabel]{\framed[frame=3Doff,align=3Dmiddle]} >>>> \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 fe= ed >>>> in MKIV. >>>> >>> >>> \defineframed[mplabel][frame=3Doff,align=3Dmiddle] >>> >>> \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 > =A0{\endgraf\ignorespaces} > > \unexpanded\def\hboxednewline > =A0{\unskip\normalspace\ignorespaces} > > and then remake the format > > (it's a side effect of nested framed usage) > > ----------------------------------------------------------------- > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0Hans Hagen | PRAGMA ADE Thanks Hans, that works. Will this change be added to the next release, or do I have to re-apply it manually? Is \sometxt not recommended now? Should I be using textext throughout? Richard Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registr= ation Number: 2416188 Registered in England and Wales. Registered office: B= oughton Road, Rugby, Warwickshire, CV21 1BU. CONFIDENTIALITY : This e-mail and any attachments are confidential and may = be privileged. = If you are not a named recipient, please notify the sender immediately and = do not disclose the contents to another person, use it for any purpose or s= tore or copy the information in any medium. http://www.converteam.com Please consider the environment before printing this e-mail. ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________