From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31537 Path: news.gmane.org!not-for-mail From: "M.J. Kallen" Newsgroups: gmane.comp.tex.context Subject: Re: how to define a new math symbol Date: Wed, 25 Oct 2006 01:18:04 -0700 (PDT) Message-ID: <20061025081804.95085.qmail@web51812.mail.yahoo.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 1161764331 11336 80.91.229.2 (25 Oct 2006 08:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 08:18:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 25 10:18:49 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 1Gcdy9-0000kn-6l for gctc-ntg-context-518@m.gmane.org; Wed, 25 Oct 2006 10:18:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 252591FE07; Wed, 25 Oct 2006 10:18:32 +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 19333-08; Wed, 25 Oct 2006 10:18:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 99E4C1FEC3; Wed, 25 Oct 2006 10:18:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DC381FEC4 for ; Wed, 25 Oct 2006 10:18:18 +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 19598-01 for ; Wed, 25 Oct 2006 10:18:16 +0200 (CEST) Original-Received: from web51812.mail.yahoo.com (web51812.mail.yahoo.com [206.190.39.231]) by ronja.ntg.nl (Postfix) with SMTP id B66921FE07 for ; Wed, 25 Oct 2006 10:18:15 +0200 (CEST) Original-Received: (qmail 95087 invoked by uid 60001); 25 Oct 2006 08:18:04 -0000 Original-Received: from [145.50.39.8] by web51812.mail.yahoo.com via HTTP; Wed, 25 Oct 2006 01:18:04 PDT Original-To: mailing list for ConTeXt users 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:31537 Archived-At: Taco, I'm not sure I understand your question. I'm using TexLive on a linux system. I do not use any other fonts other than CM. The file prodint.afm has the following contents: StartFontMetrics 4.0 Comment This is prodint.afm created from prodint.pfb by t1lib V. 1.0.0. Comment File creation date: Thu Mar 8 00:02:51 2001 Comment t1lib is copyright (c) Rainer Menzner, 1996, 1997, 1998. Comment t1lib is distributed under the GNU General Public Library License (LGPL) FontName prodint FullName prodint FamilyName prodint Weight Plain ItalicAngle 0 IsFixedPitch false FontBBox 0 -53 2581 2298 UnderlinePosition 0 UnderlineThickness 0 Version 000.001 Notice 2001, JC Loredo-Osti. Based in R. Gill's `pi.ps'. Right to use, copy, distribute and modify this file is granted. EncodingScheme FontSpecific StdHW 47 StdVW 47 StartCharMetrics 7 C 80 ; WX 785 ; N prodinttext ; B 0 0 713 999 ; C 82 ; WX 1255 ; N prodintdisplay ; B 0 0 1141 1599 ; C 84 ; WX 1804 ; N prodintbig ; B 0 0 1640 2298 ; C 120 ; WX 1205 ; N oldpitext ; B 13 -33 1237 966 ; C 122 ; WX 1928 ; N oldpidisplay ; B 23 -53 1982 1547 ; C 160 ; WX 1637 ; N ancientpitext ; B 50 -27 1611 974 ; C 162 ; WX 2619 ; N ancientpidisplay ; B 81 -40 2581 1561 ; EndCharMetrics EndFontMetrics End of file prodint.afm So based on some of the symb-xxx.tex files, I tried \loadmapfile[prodint.map] \definefontsynonym [Prodint] [prodint] \def\ProdintSymbol#1{\getglyph{Prodint}{\char#1}} \startsymbolset \definesymbol[prodi] [\ProdintSymbol{80}] \definesymbol[Prodi] [\ProdintSymbol{82}] \definesymbol[PRODI] [\ProdintSymbol{84}] \stopsymbolset but texexec stops when mktexfm cannot find the file 'prodint' or it says the TFM file is missing. Another problem with this approach is the fact that this does not define a MATH symbol, which is really what I would want. Based on the LaTeX style file prodint.sty, I'm guessing I'll at least need a command like: \definemathsymbol [prodi] [op] [prodint] ["xx] but I can't figure out the usage of this command. I also suspect that I can not used the prodint.tfm file, supplied with the LaTeX package, but need to run Texfont to create one for ConTeXt. Can you confirm this? I greatly appreciate any help! Maarten-Jan ----- Original Message ---- From: Taco Hoekwater To: mailing list for ConTeXt users Sent: Tuesday, October 24, 2006 5:31:10 PM Subject: Re: [NTG-context] how to define a new math symbol MJK wrote: > Hi, > > I would like to use of the product integral (a curly \prod-like > symbol which is to \prod what \int is to \sum) in Context. There is a > LaTeX package (not official) available from Richard Gill's website > (http://www.math.uu.nl/people/gill/, all the way at the bottom), > which supplies a .sty file with the following contents: What font setup do you use in ConTeXt? Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context