ConTeXt equivalent of plain tex method of loading fonts
Hi, I was using rsfs (RalfSmithFormalScript) using the definition \def\mathrsfs#1{\text{\definedfont[RalfSmithFormalScript]#1\/}} rsfs comes in three design sizes, 10, 7, and 5. However $\max_{x \in \mathrsfs{X}}$ uses rsfs10 rather than 7. This is because RalfSmithFormalScript is a synonyn for rsfs10. If I use the plain tex method of loading rsfs \font\tenscr = rsfs10 at 12pt %bodyfontsize \font\sevenscr = rsfs7 at 9pt %scriptfontsize \font\fivescr = rsfs5 at 7pt %scriptscriptfontsize \skewchar\tenscr = '177 \skewchar\sevenscr = '177 \skewchar\fivescr = '177 \newfam\scrfam \textfont\scrfam = \tenscr \scriptfont\scrfam = \sevenscr \scriptscriptfont\scrfam = \fivescr \def\scr{\fam\scrfam} then I get rsfs7 in the subscripts. So, what is the ConTeXt equivalent of the above plain tex method of loading rsfs? Aditya
Aditya Mahajan wrote:
Hi,
I was using rsfs (RalfSmithFormalScript) using the definition
then I get rsfs7 in the subscripts. So, what is the ConTeXt equivalent of the above plain tex method of loading rsfs?
Something like this, I guess (probably not enough, but it should give you an idea) \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] [scr] [mc] \def\mathrsfs#1{{\scr #1}} Best, Taco
On Fri, 12 Jan 2007, Taco Hoekwater wrote:
Aditya Mahajan wrote:
Hi,
I was using rsfs (RalfSmithFormalScript) using the definition
then I get rsfs7 in the subscripts. So, what is the ConTeXt equivalent of the above plain tex method of loading rsfs?
Something like this, I guess (probably not enough, but it should give you an idea)
\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] [scr] [mc]
\def\mathrsfs#1{{\scr #1}}
Thank you. This is what I finally ended up using \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] \def\scr{\fam\purefamily{scriptfamily}} \definetypeface [modern] [mm] [math] [modern] [ams] [encoding=texnansi] \setupbodyfont[reset,modern,11pt] \starttext $\sum_{x \in \scr X}$ \stoptext Aditya
participants (2)
-
Aditya Mahajan
-
Taco Hoekwater