home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texextr2 / !TeX / Misc / LaTeX / general / sfonts / tex
Text File  |  1991-11-25  |  29KB  |  586 lines

  1. % File SFONTS - Version of 25 November 1991
  2. % (Lyle Ramshaw replaced "circle" with "lcircle" on 22 Oct 89.)
  3. % (Lyle Ramshaw replaced "am*" with "cm*" on 27 Oct 89.)
  4. % (Corrected \twenty... --> \itwenty... in \itwentyninept,
  5. %   found 91/06/12 by Klaus Thull, corrected 91/06/21.)
  6. % (Added fonts for \sc typeface, RmS 91/10/27.)
  7. % (Introduced the \@setsize macro, RmS 91/10/27.)
  8. % (Added some \relax in front of conditionals, RmS 91/11/25.)
  9.  
  10. % This file needs to be customized for the fonts available at a particular
  11. % site.  There are three places where changes need to be made.  They
  12. % can be found by searching this file for the string  FONT-CUSTOMIZING.
  13. %
  14. % FONT CONVENTIONS
  15. %
  16. % A TYPESTYLE COMMAND is something like \it that defines a type style.
  17. % Each style command \xx is defined to be \protect\pxx, where
  18. % \pxx is defined to choose the correct font for the current size.
  19. % This allows style commands to appear in 'unsafe' arguments where
  20. % protection is required.
  21. %
  22. % A SIZE COMMAND is something like \normalsize that defines a type size.
  23. % It is defined by the document style.
  24. %
  25. % A FONT-SIZE COMMAND is one that defines \textfont, \scriptfont and
  26. % \scriptscriptfont for the font families corresponding to preloaded fonts,
  27. % as well as the typestyle commands for the preloaded fonts.  Each
  28. % font-size command has an associated @fontsize command, having the same
  29. % name except for an '@' at the front.   All font-size commands are defined
  30. % in SFONTS.  The naming convention is that a fifteenpt font has a font-size
  31. % name \fifteenpt, and so on.
  32. %
  33. % Each size command \SIZE executes the command
  34. %             \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  35. % which does the following.
  36. %   0. Executes \@nomath\SIZE to issue warning if in math mode.
  37. %   1. \def \@currsize {\@FONTSIZE}
  38. %   2. Sets \baselineskip to \baselinestretch * BASELINESKIP
  39. %      and
  40. %   3. Executes the \@FONTSIZE command.
  41. %   4. Switches to the default \rm font.
  42. %
  43. % It should then define all the typestyle commands not defined by the font-size
  44. % command, except for the one-size type styles. A typestyle command for which
  45. % the corresponding font exists but is not preloaded is defined to expand to a
  46. % \@getfont command.  A typestyle whose font does not exist is defined to
  47. % expand to a \@subfont command.
  48. %
  49.  
  50. \def\@setsize#1#2#3#4{\@nomath#1\def\@currsize{#4}\baselineskip
  51.    #2\relax\baselineskip\baselinestretch\baselineskip
  52.    \normalbaselineskip\baselineskip#4\rm}
  53.  
  54.  
  55. %  Definition of \newfont and \symbol
  56. %  Note that fonts defined with \newfont won't work
  57. %  with color slides---characters in that font will appear
  58. %  in all color layers and in `invisible' text.
  59. \def\newfont#1#2{\@ifdefinable #1{\font #1=#2\relax}}
  60. \def\symbol#1{\char #1\relax}
  61.  
  62. \message{fonts,}
  63.  
  64. % visible fourteen point fonts
  65. \font\fourteenrm   = lcmss8  scaled \magstep 3 % roman
  66. \font\fourteeni    = cmmi8   scaled \magstep 3 % math italic
  67.     \skewchar\fourteeni ='177                  %  for math accents
  68. \font\fourteensy   = cmsy8   scaled \magstep 3 % symbol
  69.     \skewchar\fourteensy ='60           %   for placement of math accents
  70. \font\fourteenit   = lcmssi8 scaled \magstep 3 % italic
  71. \font\fourteenbf   = lcmssb8 scaled \magstep 3 % bold
  72. \font\fourteentt   = cmtt8   scaled \magstep 3 % typewriter
  73.     \hyphenchar\fourteentt = -1         %  suppress hyphenation in \tt font
  74. \font\fourteensc   = cmcsc10 scaled \magstep 2 % caps and small caps
  75. \font\fourteenlasy = lasy8  scaled \magstep 3 % LaTeX symbol
  76.  
  77. % invisible fourteen point fonts
  78. \font\ifourteenrm   = ilcmss8  scaled \magstep 3 % roman
  79. \font\ifourteeni    = icmmi8   scaled \magstep 3 % math italic
  80.     \skewchar\ifourteeni ='177                  %  for math accents
  81. \font\ifourteensy   = icmsy8   scaled \magstep 3 % symbol
  82.     \skewchar\ifourteensy ='60           %   for placement of math accents
  83. \font\ifourteenit   = ilcmssi8 scaled \magstep 3 % italic
  84. \font\ifourteenbf   = ilcmssb8 scaled \magstep 3 % bold
  85. \font\ifourteentt   = icmtt8   scaled \magstep 3 % typewriter
  86.     \hyphenchar\ifourteentt = -1         %  suppress hyphenation in \tt font
  87. \font\ifourteensc   = icmcsc10 scaled \magstep 2 % caps and small caps
  88. \font\ifourteenlasy = ilasy8  scaled \magstep 3 % LaTeX symbol
  89.  
  90. % visible seventeen point fonts
  91. \font\seventeenrm   = lcmss8  scaled \magstep 4 % roman
  92. \font\seventeeni    = cmmi8   scaled \magstep 4 % math italic
  93.     \skewchar\seventeeni ='177                  %  for math accents
  94. \font\seventeensy   = cmsy8   scaled \magstep 4 % symbol
  95.     \skewchar\seventeensy ='60           %   for placement of math accents
  96. \font\seventeenit   = lcmssi8 scaled \magstep 4 % italic
  97. \font\seventeenbf   = lcmssb8 scaled \magstep 4 % bold
  98. \font\seventeentt   = cmtt8   scaled \magstep 4 % typewriter
  99.     \hyphenchar\seventeentt = -1         %  suppress hyphenation in \tt font
  100. \font\seventeensc   = cmcsc10 scaled \magstep 3 % caps and small caps
  101. \font\seventeenlasy = lasy8  scaled \magstep 4 % LaTeX symbol
  102.  
  103. % invisible seventeen point fonts
  104. \font\iseventeenrm   = ilcmss8  scaled \magstep 4 % roman
  105. \font\iseventeeni    = icmmi8   scaled \magstep 4 % math italic
  106.     \skewchar\iseventeeni ='177                  %  for math accents
  107. \font\iseventeensy   = icmsy8   scaled \magstep 4 % symbol
  108.     \skewchar\iseventeensy ='60           %   for placement of math accents
  109. \font\iseventeenit   = ilcmssi8 scaled \magstep 4 % italic
  110. \font\iseventeenbf   = ilcmssb8 scaled \magstep 4 % bold
  111. \font\iseventeentt   = icmtt8   scaled \magstep 4 % typewriter
  112.     \hyphenchar\iseventeentt = -1         %  suppress hyphenation in \tt font
  113. \font\iseventeensc   = icmcsc10 scaled \magstep 3 % caps and small caps
  114. \font\iseventeenlasy = ilasy8  scaled \magstep 4 % LaTeX symbol
  115.  
  116. % visible twenty point fonts 
  117. \font\twentyrm   = lcmss8  scaled \magstep 5 % roman
  118. \font\twentyi    = cmmi8   scaled \magstep 5 % math italic
  119.     \skewchar\twentyi ='177                  %  for math accents
  120. \font\twentysy   = cmsy8   scaled \magstep 5 % symbol
  121.     \skewchar\twentysy ='60           %   for placement of math accents
  122. \font\twentyit   = lcmssi8 scaled \magstep 5 % italic
  123. \font\twentybf   = lcmssb8 scaled \magstep 5 % bold
  124. \font\twentytt   = cmtt8   scaled \magstep 5 % typewriter
  125.     \hyphenchar\twentytt = -1         %  suppress hyphenation in \tt font
  126. \font\twentysc   = cmcsc10 scaled \magstep 4 % caps and small caps
  127. \font\twentylasy = lasy8  scaled \magstep 5 % LaTeX symbol
  128.  
  129. % invisible twenty point fonts
  130. \font\itwentyrm   = ilcmss8  scaled \magstep 5 % roman
  131. \font\itwentyi    = icmmi8   scaled \magstep 5 % math italic
  132.     \skewchar\itwentyi ='177                  %  for math accents
  133. \font\itwentysy   = icmsy8   scaled \magstep 5 % symbol
  134.     \skewchar\itwentysy ='60           %   for placement of math accents
  135. \font\itwentyit   = ilcmssi8 scaled \magstep 5 % italic
  136. \font\itwentybf   = ilcmssb8 scaled \magstep 5 % bold
  137. \font\itwentytt   = icmtt8   scaled \magstep 5 % typewriter
  138.     \hyphenchar\itwentytt = -1         %  suppress hyphenation in \tt font
  139. \font\itwentysc   = icmcsc10 scaled \magstep 4 % caps and small caps
  140. \font\itwentylasy = ilasy8  scaled \magstep 5 % LaTeX symbol
  141.  
  142. % visible twentyfour point fonts -- \magstep 6
  143. \font\twentyfourrm   = lcmss8  scaled 2986 % roman
  144. \font\twentyfouri    = cmmi8   scaled 2986 % math italic
  145.     \skewchar\twentyfouri ='177                  %  for math accents
  146. \font\twentyfoursy   = cmsy8   scaled 2986 % symbol
  147.     \skewchar\twentyfoursy ='60           %   for placement of math accents
  148. \font\twentyfourit   = lcmssi8 scaled 2986 % italic
  149. \font\twentyfourbf   = lcmssb8 scaled 2986 % bold
  150. \font\twentyfourtt   = cmtt8   scaled 2986 % typewriter
  151.     \hyphenchar\twentyfourtt = -1         %  suppress hyphenation in \tt font
  152. \font\twentyfoursc   = cmcsc10 scaled \magstep 5 % caps and small caps
  153. \font\twentyfourlasy = lasy8  scaled 2986 % LaTeX symbol
  154.  
  155. % invisible twentyfour point fonts
  156. \font\itwentyfourrm   = ilcmss8  scaled 2986 % roman
  157. \font\itwentyfouri    = icmmi8   scaled 2986 % math italic
  158.     \skewchar\itwentyfouri ='177                  %  for math accents
  159. \font\itwentyfoursy   = icmsy8   scaled 2986 % symbol
  160.     \skewchar\itwentyfoursy ='60           %   for placement of m