On 2012-05-02 Aditya Mahajan <adit...@umich.edu> wrote:

> Metapost now runs as a library. All the text is first typeset by ConTeXt 
> and metapost only knows the bounding box of the labels.
> 
> You can try (untested):
> 
> \starttext
> 
> This is serif
> 
> \switchtobodyfont[sans]
> \startMPcode
> draw textext("This should be sans");
> \stopMPcode
> 
> \stoptext

This works, of course. However it continues with sans font even
after \stopMPcode. This is better (but clumsy):

\start
\switchtobodyfont[sans]
\startMPcode
draw textext("This should be sans");
\stopMPcode
\stop
Here serif again.

The text in Metapost adapts to the text set in ConTeXt. But the font
setup should *only* be set for MetaPost, not regular text.

Does that mean, that MPenvironment is deprecated and does not work
at all?

Marco


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

Reply via email to