Re: [NTG-context] MetaPost, specifiy max width of a text?

2015-03-18 Thread Hans Hagen

On 3/18/2015 8:25 AM, Norbert Melzer wrote:

Hi there!

Is there a way to specify the with of a text so that the text gets
wrapped? Something simalar to the following TikZ-Example (wrapped in
ConTeXt):

```tex
\usemodule[tikz]
\starttext
   \starttikzpicture
 \draw (0, 0) node[text width=2.5cm,align=center] {Start new Game};
   \stoptikzpicture

   \startMPcode
 draw Start new Game infont defaultfont scaled defaultscale;
   \stopMPcode
\stoptext


\startMPpage
draw textext(\framed[width=6cm,align={normal,tolerant}]{\input 
tufte\relax}) ;

\stopMPpage



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

Re: [NTG-context] MetaPost, specifiy max width of a text?

2015-03-18 Thread Alan BRASLAU
On Wed, 18 Mar 2015 08:25:50 +0100
Norbert Melzer timmel...@gmail.com wrote:

 \starttext
   \startMPcode
     draw Start new Game infont defaultfont scaled defaultscale;
   \stopMPcode
 \stoptext

draw textext(\framed[frame=off,width=2.5cm,align=middle]{Start new Game});

Alan
___
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
___