From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28424 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Using Ralph Smith's Formal Script font Date: Mon, 5 Jun 2006 16:55:38 -0400 (EDT) Message-ID: References: <43DDFC16.6050202@wxs.nl> 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 1149541065 19969 80.91.229.2 (5 Jun 2006 20:57:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2006 20:57:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 05 22:57:44 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 1FnM8j-0004LK-WA for gctc-ntg-context-518@m.gmane.org; Mon, 05 Jun 2006 22:57:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A72E31278F; Mon, 5 Jun 2006 22:57:33 +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 23259-02; Mon, 5 Jun 2006 22:57:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2CD221279A; Mon, 5 Jun 2006 22:55:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F25661279A for ; Mon, 5 Jun 2006 22:55:46 +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 22952-06-4 for ; Mon, 5 Jun 2006 22:55:43 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 8A4911278F for ; Mon, 5 Jun 2006 22:55:43 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 44849A4D.CAF6C.30404 ; 5 Jun 2006 16:55:41 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <43DDFC16.6050202@wxs.nl> 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:28424 Archived-At: On Mon, 30 Jan 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> How do I use Ralph Smith's formal script font [1] within context. I >> want to define a command like \mathrsfs{A} that will use A in this >> font. >> > one can make symbols (see symb-*.tex), which is probably the best > way to go here; otherwise peek into math-*.tex files to see how math > symbols can be defined. (the tricky part is that normally math > script fonts have more chars so overloading one by a RS fotn may > give problems) This is an old mail. I could not figure out how to do this properly in CONTEXT. The closest that I managed was using scrload.tex from rsfs bundle, which uses %%------- scrload.tex---------------------------- \font\tenscr=rsfs10 % scaled \magstep1 \font\sevenscr=rsfs7 % scaled \magstep1 \font\fivescr=rsfs5 % scaled \magstep1 \skewchar\tenscr='177 \skewchar\sevenscr='177 \skewchar\fivescr='177 \newfam\scrfam \textfont\scrfam=\tenscr \scriptfont\scrfam=\sevenscr \scriptscriptfont\scrfam=\fivescr \def\scr{\fam\scrfam} %% ------------------------------------------ using this definition I get a command \scr which is same as \cal but uses ralph smith formal script font. The trouble is that the fonts are not scaled to document font size. Mojca's suggestion of using \def\mathrsfs#1{\text{\definedfont[RalfSmithFormalScript]#1}} and using $\mathrsfs{A}$ works, but does not give correct spacing for superscipts. Compare $\mathrsfs{A}^T$ with ${\scr A}^T. What is the context way of doing the same as scrload.tex. Looking at math-*.tex and font-ini.tex, I tried %----------------------------------- \def\scr{\mathortext{\fam\purefamily{ralphscript}}{\symbolicfont{RalphScript}}} \definefontsynonym [RalphScript][Serif] \def\ralphscript#1{\mathortext\domathtext\donothing{\scr #1}} \definefamilysynonym [default] [ralphscript] [rsfs] %------------------------------------------------ I do not understand this, and no wonder this does not work. What am I missing. Aditya