From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52271 Path: news.gmane.org!not-for-mail From: richard.stephens@converteam.com Newsgroups: gmane.comp.tex.context Subject: Re: Multi-line labels in MetaPost Date: Thu, 13 Aug 2009 09:34:41 +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="===============1213260460==" X-Trace: ger.gmane.org 1250152538 9385 80.91.229.12 (13 Aug 2009 08:35:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 08:35:38 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 10:35:31 2009 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.50) id 1MbVmU-0007Gj-S5 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Aug 2009 10:35:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C134AC9A97; Thu, 13 Aug 2009 10:35:27 +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 DpMHAhr9K0Pm; Thu, 13 Aug 2009 10:35:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DBD81C9A8A; Thu, 13 Aug 2009 10:35:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87EB7C9A8A for ; Thu, 13 Aug 2009 10:35:23 +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 nIb-jI+WL+FJ for ; Thu, 13 Aug 2009 10:35:21 +0200 (CEST) Original-Received: from mail.converteam.com (mail.converteam.com [212.155.191.29]) by balder.ntg.nl (Postfix) with ESMTP id A7A3DC9A86 for ; Thu, 13 Aug 2009 10:35:21 +0200 (CEST) In-Reply-To: X-Disclaimed: 19186 X-Mailer: Lotus Notes Release 7.0.3 September 26, 2007 X-MIMETrack: Serialize by Router on G-WWH20/SRV/ALSTOM(Release 7.0.3|September 26, 2007) at 13/08/2009 10:36:53, Serialize complete at 13/08/2009 10:36:53 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:52271 Archived-At: --===============1213260460== Content-Type: text/html; charset="US-ASCII"

> > Hello,
> >
> > Is it possible to generate multi-line labels in MetaPost?  I have  
> > naively tried the following hoping to get a line feed between the  
> > two words, but it doesn't work!
> >
> > label.rt( btex One \crlf Two etex, (0,0));
>
> \defineframed[mplabel][frame=off,align=right,width=fit]
>
> label.rt(textext("\mplabel{One\\Two}"),origin) ;
>
> Wolfgang


Thank-you for a very elegant solution, Wolfgang, unfortunately I get an error:

! Argument of \dododefinecolor has an extra }.

I have fixed this by using:

label.rt(textext("\framed[frame=off,align=right]{One\\Two}"),origin);

which works okay. It's not as elegant but as the code is generated
automatically it does not require any more typing on my part!

Thanks again.

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.



Please consider the environment before printing this e-mail



--===============1213260460== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1213260460==--