ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt equivalent of plain tex method of loading fonts
@ 2007-01-11  9:12 Aditya Mahajan
  2007-01-12 15:33 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-01-11  9:12 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ConTeXt equivalent of plain tex method of loading fonts
  2007-01-11  9:12 ConTeXt equivalent of plain tex method of loading fonts Aditya Mahajan
@ 2007-01-12 15:33 ` Taco Hoekwater
  2007-01-13  4:22   ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2007-01-12 15:33 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ConTeXt equivalent of plain tex method of loading fonts
  2007-01-12 15:33 ` Taco Hoekwater
@ 2007-01-13  4:22   ` Aditya Mahajan
  0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2007-01-13  4:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-13  4:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-11  9:12 ConTeXt equivalent of plain tex method of loading fonts Aditya Mahajan
2007-01-12 15:33 ` Taco Hoekwater
2007-01-13  4:22   ` Aditya Mahajan

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).