[NTG-context] Some math symbols fail in MetaPost in MKIV

2009-11-02 Thread Andreas Schneider
Hi,

as it seems, some symbols in math mode seem to fail when put inside 
MetaPost. In the example I tried, both ~ and | were causing processing 
errors when used inside MetaPost (I tried both btex...etex as well as 
\sometxt). It works fine in MKII however.

The minimal example is attached to this mail.

Best Regards,
Andreas.\starttext
  The \quote{formula} as it should look like: $a~b|c$.

  Metapost:
  \startMPcode
label(\sometxt{$a~b|c$}, (0, 0));
  \stopMPcode
\stoptext

___
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] Some math symbols fail in MetaPost in MKIV

2009-11-02 Thread Aditya Mahajan

On Mon, 2 Nov 2009, Andreas Schneider wrote:


Hi,

as it seems, some symbols in math mode seem to fail when put inside
MetaPost. In the example I tried, both ~ and | were causing processing
errors when used inside MetaPost (I tried both btex...etex as well as
\sometxt). It works fine in MKII however.

The minimal example is attached to this mail.


I don't know how to prevent expansion of ~ and | inside mp.  Hans, can you 
please check what is the right way to correct this.


However, note that ~ does not make sense in math mode anyways. As a 
work-around, you can use $a\ b\vert c$ inside metapost.


Aditya


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