Difference between revisions of "Rsfs"
Jump to navigation
Jump to search
Maarten-Jan (talk | contribs) m (changed linked to "Math structures) |
(→Using Ralph Smith Formal Font: Added the ConTeXt way of using the font) |
||
Line 4: | Line 4: | ||
Ralph Smith's Formal Font [http://www.ctan.org/tex-archive/fonts/rsfs/] provides a bit more cursive caligarphic symbols. They can be used inside ConTeX by | Ralph Smith's Formal Font [http://www.ctan.org/tex-archive/fonts/rsfs/] provides a bit more cursive caligarphic symbols. They can be used inside ConTeX by | ||
+ | |||
+ | <context source="yes"> | ||
+ | \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 | ||
+ | |||
+ | ${\scr ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ | ||
+ | |||
+ | $\sum_{\scr ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ | ||
+ | |||
+ | \stoptext | ||
+ | |||
+ | </context> | ||
+ | |||
+ | I less precise method of using them is | ||
<context source="yes"> | <context source="yes"> | ||
Line 9: | Line 36: | ||
\mathrsfs{ABCDEFGHIJKLMNOPQRSTUVWXYZ} | \mathrsfs{ABCDEFGHIJKLMNOPQRSTUVWXYZ} | ||
</context> | </context> | ||
+ | |||
+ | which does not use the correct font size. rsfs10 is used for bodyfont, scriptsize and scriptscriptsize. | ||
'''Note:''' Since this is an italic script, one needs italic correction <code>\/</code> in the definition. | '''Note:''' Since this is an italic script, one needs italic correction <code>\/</code> in the definition. | ||
− | + | ||
+ | The ''plain tex'' way of using the font is: | ||
<texcode> | <texcode> | ||
− | \font\tenscr=rsfs10 | + | \font\tenscr = rsfs10 at 12pt %bodyfontsize |
− | \font\sevenscr=rsfs7 at 9pt %scriptfontsize | + | \font\sevenscr = rsfs7 at 9pt %scriptfontsize |
− | \font\fivescr=rsfs5 at 7pt %scriptscriptfontsize | + | \font\fivescr = rsfs5 at 7pt %scriptscriptfontsize |
− | \skewchar\tenscr='177 \skewchar\sevenscr='177 \skewchar\fivescr='177 | + | |
− | \newfam\scrfam \textfont\scrfam=\tenscr \scriptfont\scrfam=\sevenscr | + | \skewchar\tenscr = '177 |
− | \scriptscriptfont\scrfam=\fivescr | + | \skewchar\sevenscr = '177 |
− | \def\scr{\fam\scrfam} | + | \skewchar\fivescr = '177 |
+ | |||
+ | \newfam\scrfam | ||
+ | |||
+ | \textfont\scrfam = \tenscr | ||
+ | \scriptfont\scrfam = \sevenscr | ||
+ | \scriptscriptfont\scrfam = \fivescr | ||
+ | |||
+ | \def\scr{\fam\scrfam} | ||
+ | |||
</texcode> | </texcode> | ||
Revision as of 17:14, 14 January 2007
< Main Page | Math with newmat | MathML | Multiline equations>
Using Ralph Smith Formal Font
Ralph Smith's Formal Font [1] provides a bit more cursive caligarphic symbols. They can be used inside ConTeX by
\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 ${\scr ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ $\sum_{\scr ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \stoptext
I less precise method of using them is
\def\mathrsfs#1{\text{\definedfont[RalfSmithFormalScript]#1\/}} \mathrsfs{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
which does not use the correct font size. rsfs10 is used for bodyfont, scriptsize and scriptscriptsize.
Note: Since this is an italic script, one needs italic correction \/
in the definition.
The plain tex way of using the font is:
\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}
With these defintions one can use \scr just like \cal. This method has the advantage that it uses different fonts (rsfs10, rsfs7, rsfs5) in body script and scriptscipt.