[NTG-context] Multi-line labels in MetaPost MKIV

Richard Stephens richard.stephens at converteam.com
Wed Jul 28 10:03:11 CEST 2010


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.

Thanks,

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100728/75b06cf4/attachment.html>


More information about the ntg-context mailing list