ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unicode error in embedded metapost
@ 2007-09-24 21:58 Maurí­cio
  2007-09-25  7:19 ` Thomas A. Schmitz
  0 siblings, 1 reply; 4+ messages in thread
From: Maurí­cio @ 2007-09-24 21:58 UTC (permalink / raw)
  To: ntg-context

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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unicode error in embedded metapost
  2007-09-24 21:58 Unicode error in embedded metapost Maurí­cio
@ 2007-09-25  7:19 ` Thomas A. Schmitz
  2007-09-25 10:18   ` Mojca Miklavec
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2007-09-25  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unicode error in embedded metapost
  2007-09-25  7:19 ` Thomas A. Schmitz
@ 2007-09-25 10:18   ` Mojca Miklavec
  2007-09-26 16:50     ` Maurí­cio
  0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2007-09-25 10:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unicode error in embedded metapost
  2007-09-25 10:18   ` Mojca Miklavec
@ 2007-09-26 16:50     ` Maurí­cio
  0 siblings, 0 replies; 4+ messages in thread
From: Maurí­cio @ 2007-09-26 16:50 UTC (permalink / raw)
  To: ntg-context

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

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-26 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-24 21:58 Unicode error in embedded metapost Maurí­cio
2007-09-25  7:19 ` Thomas A. Schmitz
2007-09-25 10:18   ` Mojca Miklavec
2007-09-26 16:50     ` Maurí­cio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).