MP and multiline text
Hello, is it possible to create multiline text only with \crlf, \par etc. inside a MP block? The following example treats \par (or \crlf resp.) as a space (or skips it completely), so is there another trick? ---- \setMPtext{Text}{TEXT\par UUU} \startuseMPgraphic{Test} fill fullsquare xyscaled(10cm, 5cm) withcolor red; label(btex AAA aaa etex, (0, 1cm)); label(btex BBB \crlf bbb etex, (0, 0cm)); label(btex CCC \par ccc etex, (0, -1cm)); label(\MPbetex{Text}, (0, -2cm)); \stopuseMPgraphic \starttext \useMPgraphic{Test} \stoptext ---- Or - if multiline text is wanted - each line of the text must be placed separately by MP code? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
On 29-7-2011 12:05, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
\setMPtext{Text}{TEXT\par UUU}
\startuseMPgraphic{Test} fill fullsquare xyscaled(10cm, 5cm) withcolor red; label(btex AAA aaa etex, (0, 1cm)); label(btex BBB \crlf bbb etex, (0, 0cm)); label(btex CCC \par ccc etex, (0, -1cm)); label(\MPbetex{Text}, (0, -2cm)); \stopuseMPgraphic
\starttext \useMPgraphic{Test} \stoptext \startuseMPgraphic{Test} fill fullsquare xyscaled(10cm, 5cm) withcolor red; label(textext("\framed[align=normal,width=10cm]{\input{knuth}}"), (0, 0cm)); \stopuseMPgraphic
\starttext \useMPgraphic{Test} \stoptext -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Procházka Lukáš Ing. - Pontex s. r. o.