Thank you very much. Just a comment: it is better to define
\def\scr #1{\text{\ralfsmithfs #1}}
In this way, font sizes (superscript and subscript) are also available.
MO

On 3/5/2010 2:15 PM, views63 wrote:
2010/3/4 Mehdi Omidali<mehd...@gmail.com>:
Hi,
I followed http://wiki.contextgarden.net/rsfs and compile the sample file in
this page with MKIV and got the following error:

! Undefined control sequence.

\scr ->\fam \purefamily

{scriptfamily}

l.18 ${\scr

ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

?

1. put the archive keep file structure to "\context\tex\texmf\fonts "

2. luatools --generate

3. context --make

test

\starttypescript [math] [modern,computer-modern,latin-modern,ams] [size]
      \definebodyfont [17.3pt,14.4pt,12pt,11pt,10pt,9pt][mm][mc=rsfs10 sa 1]
      \definebodyfont [8pt,7pt] [mm] [mc=rsfs7 sa 1]
      \definebodyfont [6pt,5pt,4pt] [mm] [mc=rsfs5 sa 1]
\stoptypescript

\definefamilysynonym [default] [scriptfamily] [mc]

\definefont [ralfsmithfs] [RalfSmithFormalScript sa \currentfontscale]
\def\scr #1{\ifmmode\hbox{\ralfsmithfs #1}\else\ralfsmithfs #1\fi}

\definetypeface [modern] [mm] [math] [modern] [ams] [encoding=texnansi]

\setupbodyfont[reset,modern,11pt]

\starttext

$\scr {ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

\stoptext

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to