On Mon, 2 Nov 2009, Andreas Schneider wrote:


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.


If your question is of interest to others as well, please add an entry to the 

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