ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Some math symbols fail in MetaPost in MKIV
@ 2009-11-02 13:22 Andreas Schneider
  2009-11-02 17:19 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schneider @ 2009-11-02 13:22 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vbtest.tex --]
[-- Type: text/x-tex; name="vbtest.tex", Size: 166 bytes --]

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

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


[-- Attachment #3: Type: text/plain, Size: 486 bytes --]

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

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

* Re: Some math symbols fail in MetaPost in MKIV
  2009-11-02 13:22 Some math symbols fail in MetaPost in MKIV Andreas Schneider
@ 2009-11-02 17:19 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2009-11-02 17:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-11-02 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 13:22 Some math symbols fail in MetaPost in MKIV Andreas Schneider
2009-11-02 17:19 ` Aditya Mahajan

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