28 Jul
2010
28 Jul
'10
10:10 a.m.
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