![](https://secure.gravatar.com/avatar/12b7e9a3ab6d2a0e0602000f7e6542bf.jpg?s=120&d=mm&r=g)
Hi, This small piece of code gives me a wrong result: \startuseMPgraphic{teste} z7 = (5cm,0); label.lrt("Pontão",z7); \stopuseMPgraphic I just have to change 'btex Pont\~ao etex' for 'Pontão' and everything goes fine. Best, Maurício
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Sep 24, 2007, at 11:58 PM, Maurí cio wrote:
Hi,
This small piece of code gives me a wrong result:
\startuseMPgraphic{teste} z7 = (5cm,0); label.lrt("Pontão",z7); \stopuseMPgraphic
I just have to change 'btex Pont\~ao etex' for 'Pontão' and everything goes fine.
Best, Maurício
\enableregime[utf] \starttext \startuseMPgraphic{teste} z7 = (5cm,0); label(\sometxt{Pontão},z7); \stopuseMPgraphic \useMPgraphic{teste} \stoptext http://dl.contextgarden.net/myway/sometxt.pdf http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl HTH Thomas
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 9/25/07, Thomas A. Schmitz wrote:
On Sep 24, 2007, at 11:58 PM, Maurí cio wrote:
Hi,
This small piece of code gives me a wrong result:
\startuseMPgraphic{teste} z7 = (5cm,0); label.lrt("Pontão",z7);
Metapost can only handle very basic strings. Don't use Metapost for writing text.
\stopuseMPgraphic
I just have to change 'btex Pont\~ao etex' for 'Pontão' and everything goes fine.
label(\sometxt{Pontão},z7);
Indeed. Using \sometxt{...} is strongly recommended. btex ... etex behaves strange and consumes a considerable amount of extra time to compile your document. Mojca
![](https://secure.gravatar.com/avatar/12b7e9a3ab6d2a0e0602000f7e6542bf.jpg?s=120&d=mm&r=g)
(...)
Metapost can only handle very basic strings. Don't use Metapost for writing text.
(...) Indeed. Using \sometxt{...} is strongly recommended. btex ... etex behaves strange and consumes a considerable amount of extra time to compile your document.
Mojca
Interesting. I also wasn't aware that btex ... etex could not handle string variables, as I learned from your documentation (I've just started learning metapost). Thanks, Maurício
participants (3)
-
Maurício
-
Mojca Miklavec
-
Thomas A. Schmitz