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
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
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
(...)
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