From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60469 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 11:22:07 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2045113243==" X-Trace: dough.gmane.org 1280312574 13641 80.91.229.12 (28 Jul 2010 10:22:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 10:22:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 28 12:22:52 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 1Oe3mg-00019N-Qs for gctc-ntg-context-518@m.gmane.org; Wed, 28 Jul 2010 12:22:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 105DBC9CAF; Wed, 28 Jul 2010 12:22:46 +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 KICgsBrApthT; Wed, 28 Jul 2010 12:22:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42BE0C9C8D; Wed, 28 Jul 2010 12:22:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C424C9C8D for ; Wed, 28 Jul 2010 12:22:42 +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 SraxbkEuDFp0 for ; Wed, 28 Jul 2010 12:22:38 +0200 (CEST) Original-Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com [207.126.144.139]) by balder.ntg.nl (Postfix) with ESMTP id 918AAC9BFF for ; Wed, 28 Jul 2010 12:22:38 +0200 (CEST) Original-Received: from source ([74.125.82.42]) (using TLSv1) by eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKTFAE7r3L/FlrcHIWH9AYogBl8uD67Dwr@postini.com; Wed, 28 Jul 2010 10:22:38 UTC Original-Received: by wwf26 with SMTP id 26so5155060wwf.5 for ; Wed, 28 Jul 2010 03:22:37 -0700 (PDT) Original-Received: by 10.216.236.146 with SMTP id w18mr10409967weq.19.1280312557290; Wed, 28 Jul 2010 03:22:37 -0700 (PDT) Original-Received: by 10.216.188.4 with HTTP; Wed, 28 Jul 2010 03:22:07 -0700 (PDT) In-Reply-To: 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:60469 Archived-At: --===============2045113243== Content-Type: multipart/alternative; boundary=000e0cd5272e2dc678048c6fff6a --000e0cd5272e2dc678048c6fff6a Content-Type: text/plain; charset=ISO-8859-1 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? Richard Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188 Registered in England and Wales. Registered office: Boughton 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 store or copy the information in any medium. http://www.converteam.com Please consider the environment before printing this e-mail. --000e0cd5272e2dc678048c6fff6a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=A0Am 28= .07.10 10:03, schrieb Richard Stephens:
Hello all,

What is the recommended method for creating multi-line labels in MetaPost i= n 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 feed 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, ha= s something changed since then?

Richard=A0
Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. =
Registration Number: 2416188 Registered in England and Wales. Registered =
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and ma=
y be privileged. =

If you are not a named recipient, please notify the sender immediately an=
d do not disclose the contents to another person, use it for any purpose =
or store or copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
=0D
--000e0cd5272e2dc678048c6fff6a--

--===============2045113243==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

___________________________________________________________________________________
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
___________________________________________________________________________________

--===============2045113243==--