From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52997 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \overrightarrow not working in mathmode in Metapost? Date: Fri, 18 Sep 2009 09:25:38 -0400 (EDT) Message-ID: References: <20090918123919.GK8930@katherina.student.utwente.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253280382 28143 80.91.229.12 (18 Sep 2009 13:26:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 13:26:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 18 15:26:15 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1ModTb-0001yT-D3 for gctc-ntg-context-518@m.gmane.org; Fri, 18 Sep 2009 15:26:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89BE5C9ABB; Fri, 18 Sep 2009 15:26:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OwGnspWp9lwB; Fri, 18 Sep 2009 15:26:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AE954C9A90; Fri, 18 Sep 2009 15:26:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42209C9A90 for ; Fri, 18 Sep 2009 15:26:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zDjgTOUYkvF6 for ; Fri, 18 Sep 2009 15:25:56 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by balder.ntg.nl (Postfix) with ESMTP id 16EC9C9A81 for ; Fri, 18 Sep 2009 15:25:55 +0200 (CEST) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By skycaptain.mr.itd.umich.edu ID 4AB38A62.5560C.660 ; Authuser adityam; 18 Sep 2009 09:25:54 EDT In-Reply-To: <20090918123919.GK8930@katherina.student.utwente.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:52997 Archived-At: 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 ___________________________________________________________________________________