ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Using Ralph Smith's Formal Script font
Date: Mon, 5 Jun 2006 16:55:38 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0606051645230.3224@nqvgln> (raw)
In-Reply-To: <43DDFC16.6050202@wxs.nl>

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

  reply	other threads:[~2006-06-05 20:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-28  7:03 Aditya Mahajan
2006-01-28 16:49 ` Mojca Miklavec
2006-01-30 11:44 ` Hans Hagen
2006-06-05 20:55   ` Aditya Mahajan [this message]
2006-06-06  9:54     ` Taco Hoekwater
2006-06-06 13:45       ` Aditya Mahajan
2006-06-06 14:56     ` Hans Hagen
2006-06-06 15:15       ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.WNT.4.63.0606051645230.3224@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).