From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29503 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Metapost/Metafun/Tex/Context question Date: Wed, 19 Jul 2006 10:00:54 -0400 (EDT) Message-ID: References: <44BE2058.1020706@cs.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153317710 27205 80.91.229.2 (19 Jul 2006 14:01:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jul 2006 14:01:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 19 16:01:46 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G3CcD-0005PA-12 for gctc-ntg-context-518@m.gmane.org; Wed, 19 Jul 2006 16:01:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01748127C7; Wed, 19 Jul 2006 16:01:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29604-03; Wed, 19 Jul 2006 16:01:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79AB7127E1; Wed, 19 Jul 2006 16:01:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D24F127E1 for ; Wed, 19 Jul 2006 16:01:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29560-03-2 for ; Wed, 19 Jul 2006 16:00:59 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id E8884127C7 for ; Wed, 19 Jul 2006 16:00:56 +0200 (CEST) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan59.public.engin.umich.edu [141.213.120.69]) BY skycaptain.mr.itd.umich.edu ID 44BE3B14.BC768.28417 ; 19 Jul 2006 10:00:54 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <44BE2058.1020706@cs.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29503 Archived-At: On Wed, 19 Jul 2006, WN wrote: > Hi all, > > I am trying to do the following in Metapost but my new math symbol is > not recognized. > Context knows about it but Tex does not. > > How can I make this work ? Hans and Taco have already explained the correct way to do this, so I will not go into that. This is one place where you can use the new sometxt feature. > % ================= Test code ======================== > \loadmapfile[original-youngryu-tx.map] > \definebodyfont [28pt,24pt,18pt, > 17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [ > mc=txexa sa 1] > > \setupbodyfont [11pt] > \definemathsymbol [varointctrclockwise] [op] [mc] ["2B] [mc] ["2C] > > \starttext > \startformula > \varointctrclockwise_{\gamma} f(z) \: dz = 0 > \stopformula > \startMPcode > picture p ; > path q; > numeric u; > > u := 1cm; > > p := btex $\varointctrclockwise_{\gamma} f(z) \: dz = 0$ etex; Replace this by p := \sometxt{$\varointctrclockwise_{\gamma} f(z) \: dz = 0$} ; and everything works! > p := p scaled 0.15cm; > draw p; > \stopMPcode > \stoptext > Aditya