From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52994 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: \overrightarrow not working in mathmode in Metapost? Date: Fri, 18 Sep 2009 14:39:20 +0200 Message-ID: <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: multipart/mixed; boundary="===============0267607463==" X-Trace: ger.gmane.org 1253277577 18550 80.91.229.12 (18 Sep 2009 12:39:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 12:39:37 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 18 14:39:30 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 1MockK-0004WD-7I for gctc-ntg-context-518@m.gmane.org; Fri, 18 Sep 2009 14:39:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DCDFC9AAA; Fri, 18 Sep 2009 14:39:27 +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 8uMlUbZqre9l; Fri, 18 Sep 2009 14:39:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A685C9A92; Fri, 18 Sep 2009 14:39:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1F12C9A92 for ; Fri, 18 Sep 2009 14:39:22 +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 2sDr43hDKDcJ for ; Fri, 18 Sep 2009 14:39:20 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by balder.ntg.nl (Postfix) with ESMTP id 3D3F3C9A90 for ; Fri, 18 Sep 2009 14:39:20 +0200 (CEST) Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MockC-0004nV-18 for ntg-context@ntg.nl; Fri, 18 Sep 2009 14:39:20 +0200 Mail-Followup-To: Mailing list for ConTeXt users X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) 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:52994 Archived-At: --===============0267607463== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IfjLu832HdL/xSp1" Content-Disposition: inline --IfjLu832HdL/xSp1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've been trying to use the \overrightarrow command within a metapost graph= ic, 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: ! Undefined control sequence. \dodosmash [#1]->\edef \@@smash=20 {#1}\futurelet \nexttoken \dododosmash \relbar ->\mathrel {\smash=20 -} \mtharrowfill ...inmuskip \thickmuskip \relax #8#5 \mkern -#1mu \cleaders \hb... \dodohandlemathoverarrow ...{\ialign {##\crcr #2#3 \crcr \noalign {\kern #1\n... \mathpalette ...>\mathchoice {#1\displaystyle {#2} }{#1\textstyle {#2}}{#1\sc... ...ex; draw btex $\overrightarrow {foo} $ etex; ... l.5 \stopMPcode It seems the \overrightarrow command uses \@@smash, which isn't defined when running from metapost? Is this expected? Is this a bug? Gr. Matthijs --IfjLu832HdL/xSp1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkqzf3cACgkQz0nQ5oovr7ygygCg5aClF4pNOSg6Rws/JVyNT2uV HYcAnRuHsV1SwHk/TpepU/DIopUbDJa3 =4rXL -----END PGP SIGNATURE----- --IfjLu832HdL/xSp1-- --===============0267607463== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0267607463==--