From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \overrightarrow not working in mathmode in Metapost?
Date: Fri, 18 Sep 2009 09:25:38 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.00.0909180924060.6124@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20090918123919.GK8930@katherina.student.utwente.nl>
On Fri, 18 Sep 2009, Matthijs Kooijman wrote:
> Hi,
>
> I've been trying to use the \overrightarrow command within a metapost graphic,
> but it doesn't work. Math mode does work, for example \vec works like
> expected. Outside of metapost, \overrightarrow works as expected.
>
> To illustrate the problem, I've created the following simple testcase:
>
> \starttext
> \startMPcode
> draw btex $\vec{foo}$ etex;
> draw btex $\overrightarrow{foo}$ etex;
> \stopMPcode
> \stoptext
>
> This gives the following error output:
>
> It seems the \overrightarrow command uses \@@smash, which isn't defined when
> running from metapost?
>
> Is this expected? Is this a bug?
This is a bug in math-arr. All arrow macros should be unexpanded (but I
could not figure out how). Here is a workaround
\let\normaloverrightarrow\overrightarrow
\unexpanded\def\overrightarrow{\normaloverrightarrow}
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-09-18 13:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 12:39 Matthijs Kooijman
2009-09-18 13:25 ` Aditya Mahajan [this message]
2009-09-18 13:31 ` Matthijs Kooijman
2009-09-18 16:02 ` Hans Hagen
2009-10-30 11:30 ` Matthijs Kooijman
2009-10-30 11:32 ` Taco Hoekwater
2009-10-30 11:57 ` Matthijs Kooijman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.0909180924060.6124@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).