home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / inputs / latex / unpacked / nfssfont.tex < prev    next >
Encoding:
Text File  |  1995-06-21  |  13.3 KB  |  317 lines

  1. %% 
  2. %% This is file `nfssfont.tex', generated 
  3. %% on <1995/6/21> with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% nfssfont.dtx  (with options: `code')
  8. %% 
  9. %% 
  10. %% This is a generated file. 
  11. %% 
  12. %% Copyright 1993-1995 the LaTeX3 project and any individual authors 
  13. %% listed elsewhere in this file. All rights reserved. 
  14. %% 
  15. %% For further copyright information see the file legal.txt, and any 
  16. %% other copyright notices in this file. 
  17. %% 
  18. %% This file is part of the LaTeX2e system. 
  19. %% ---------------------------------------- 
  20. %% This system is distributed in the hope that it will be useful, 
  21. %% but WITHOUT ANY WARRANTY; without even the implied warranty of 
  22. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  23. %% 
  24. %% For error reports concerning UNCHANGED versions of this file no more 
  25. %% than one year old, see bugs.txt. 
  26. %% 
  27. %% Please do not request updates from us directly. Primary 
  28. %% distribution is through the CTAN archives. 
  29. %% 
  30. %% 
  31. %% IMPORTANT COPYRIGHT NOTICE: 
  32. %% 
  33. %% You are NOT ALLOWED to distribute this file alone. 
  34. %% 
  35. %% You are allowed to distribute this file under the condition that it is 
  36. %% distributed together with all the files listed in manifest.txt. 
  37. %% 
  38. %% If you receive only some of these files from someone, complain! 
  39. %% 
  40. %% Permission is granted to copy this file to another file with a clearly 
  41. %% different name and to customize the declarations in that copy to serve 
  42. %% the needs of your installation, provided that you comply with 
  43. %% the conditions in the file legal.txt. 
  44. %% 
  45. %% However, NO PERMISSION is granted to generate or to distribute a 
  46. %% modified version of this file under its original name. 
  47. %% 
  48. %% You are NOT ALLOWED to change this file. 
  49. %% 
  50. %% 
  51. %% MODIFICATION ADVICE: 
  52. %% 
  53. %% If you want to customize this file, it is best to make a copy of the 
  54. %% source file(s) from which it was produced. Use a different name for 
  55. %% your copy(ies) and modify the copy(ies); this will ensure that your 
  56. %% modifications do not get overwritten when you install a new release of 
  57. %% the standard system. You should also ensure that your modified source 
  58. %% file does not generate any modified file with the same name as a 
  59. %% standard file. You can then easily distribute your modifications by 
  60. %% distributing the modified and renamed copy of the source file, taking 
  61. %% care to observe the conditions in legal.txt; this will ensure that 
  62. %% other users can safely use your modifications. 
  63. %% 
  64. %% You will also need to produce your own, suitably named, .ins file to 
  65. %% control the generation of files from your source file; this file 
  66. %% should contain your own preambles for the files it generates, not 
  67. %% those in the standard .ins files. 
  68. %% 
  69. %% The names of the source files used are shown above. 
  70. %% 
  71. %% 
  72. %% 
  73. \def\nfssfontfileversion{v2.0d}
  74. \def\nfssfontfiledate{1994/10/16}
  75.  
  76. %% \CharacterTable
  77. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  78. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  79. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  80. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  81. %%   Dollar        \$     Percent       \%     Ampersand     \&
  82. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  83. %%   Asterisk      \*     Plus          \+     Comma         \,
  84. %%   Minus         \-     Point         \.     Solidus       \/
  85. %%   Colon         \:     Semicolon     \;     Less than     \<
  86. %%   Equals        \=     Greater than  \>     Question mark \?
  87. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  88. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  89. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  90. %%   Right brace   \}     Tilde         \~}
  91. \documentstyle{article}               %FMi
  92. \nofiles                              %FMi
  93. \textwidth=470pt                      %FMi
  94. \oddsidemargin=0pt                    %FMi
  95. \textheight=1000pt                    %FMi
  96. \def\sevenrm{\fontsize{7}{9pt}\rmfamily}    %FMi
  97.  
  98. \typeout{**********************************************}
  99. \typeout{* NFSS font test program version <\nfssfontfileversion>}
  100. \typeout{*}
  101. \typeout{* Follow the instructions}
  102. \typeout{**********************************************}
  103. \typeout{}
  104.  
  105. \tracinglostchars=0
  106. \tolerance=1000
  107. \raggedbottom
  108. \parindent=0pt
  109. \hyphenpenalty=200
  110. \doublehyphendemerits=30000
  111. \newcount\m \newcount\n \newcount\p \newdimen\dim
  112. \chardef\other=12
  113.  
  114. \def\today{\ifcase\month\or
  115.   January\or February\or March\or April\or May\or June\or
  116.   July\or August\or September\or October\or November\or December\fi
  117.   \space\number\day, \number\year}
  118. \def\hours{\n=\time \divide\n 60
  119.   \m=-\n \multiply\m 60 \advance\m \time
  120.   \twodigits\n\twodigits\m}
  121. \def\twodigits#1{\ifnum #1<10 0\fi \number#1}
  122.  
  123. \def\init{\message{^^JName of the font to test = }
  124.   \read-1 to\fontname \startfont
  125.   \message{Now type a test command (\string\help\space for help):}}
  126. \def\startfont{\font\testfont=\fontname
  127.   \leftline{\sevenrm Test of \fontname\unskip\ on \today\ at \hours}
  128.   \medskip
  129.   \testfont \setbaselineskip
  130.   \ifdim\fontdimen6\testfont<10pt \rightskip=0pt plus 20pt
  131.   \else\rightskip=0pt plus 2em \fi
  132.   \spaceskip=\fontdimen2\testfont % space between words (\raggedright)
  133.   \xspaceskip=\fontdimen2\testfont \advance\xspaceskip
  134.   by\fontdimen7\testfont}
  135. {\catcode`\|=0 \catcode`\\=\other
  136. |gdef|help{|message{%
  137. \init switches to another font;^^J%
  138. \stop or \bye finishes the run;^^J%
  139. \table prints the font layout in tabular format;^^J%
  140. \text prints a sample text, assuming TeX text font conventions;^^J%
  141. \sample combines \table and \text;^^J%
  142. \mixture mixes a background character with a series of others;^^J%
  143. \alternation interleaves a background character with a series;^^J%
  144. \alphabet prints all lowercase letters within a given background;^^J%
  145. \ALPHABET prints all uppercase letters within a given background;^^J%
  146. \series prints a series of letters within a given background;^^J%
  147. \lowers prints a comprehensive test of lowercase;^^J%
  148. \uppers prints a comprehensive test of uppercase;^^J%
  149. \digits prints a comprehensive test of numerals;^^J%
  150. \math prints a comprehensive test of TeX math italic;^^J%
  151. \names prints a text that mixes upper and lower case;^^J%
  152. \punct prints a punctuation test;^^J%
  153. \bigtest combines many of the above routines;^^J%
  154. \help repeats this message;^^J%
  155. and you can use ordinary TeX commands (e.g., to \input a file).}}}
  156.  
  157. \def\setbaselineskip{\setbox0=\hbox{\n=0
  158. \loop\char\n \ifnum \n<255 \advance\n 1 \repeat}
  159. \baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 }
  160. \def\setchar#1{{\escapechar-1\message{\string#1 character = }%
  161.   \def\do##1{\catcode`##1=\other}\dospecials
  162.   \read-1 to\next
  163.   \expandafter\finsetchar\next\next#1}}
  164. \def\finsetchar#1#2\next#3{\global\chardef#3=`#1
  165.   \ifnum #3=`\# \global\chardef#3=#2 \fi}
  166. \def\promptthree{\setchar\background
  167.   \setchar\starting \setchar\ending}
  168.  
  169. \def\mixture{\promptthree \domix\mixpattern}
  170. \def\alternation{\promptthree \domix\altpattern}
  171. \def\mixpattern{\0\1\0\0\1\1\0\0\0\1\1\1\0\1}
  172. \def\altpattern{\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0}
  173. \def\domix#1{\par\chardef\0=\background \n=\starting
  174.   \loop \chardef\1=\n #1\endgraf
  175.   \ifnum \n<\ending \advance\n 1 \repeat}
  176.  
  177. \def\!{\discretionary{\background}{\background}{\background}}
  178. \def\series{\promptthree \!\doseries\starting\ending\par}
  179. \def\doseries#1#2{\n=#1\loop\char\n\!\ifnum\n<#2\advance\n 1 \repeat}
  180. \def\complower{\!\doseries{`a}{`z}\doseries{'31}{'34}\par}
  181. \def\compupper{\!\doseries{`A}{`Z}\doseries{'35}{'37}\par}
  182. \def\compdigs{\!\doseries{`0}{`9}\par}
  183. \def\alphabet{\setchar\background\complower}
  184. \def\ALPHABET{\setchar\background\compupper}
  185.  
  186. \def\lowers{\docomprehensive\complower{`a}{`z}{'31}{'34}}
  187. \def\uppers{\docomprehensive\compupper{`A}{`Z}{'35}{'37}}
  188. \def\digits{\docomprehensive\compdigs{`0}{`4}{`5}{`9}}
  189. \def\docomprehensive#1#2#3#4#5{\par\chardef\background=#2
  190.   \loop{#1} \ifnum\background<#3\m=\background\advance\m 1
  191.   \chardef\background=\m \repeat \chardef\background=#4
  192.   \loop{#1} \ifnum\background<#5\m=\background\advance\m 1
  193.   \chardef\background=\m \repeat}
  194. \def\names{ {\AA}ngel\aa\ Beatrice Claire
  195.   Diana \'Erica Fran\c{c}oise Ginette H\'el\`ene Iris
  196.   Jackie K\=aren {\L}au\.ra Mar{\'\i}a N\H{a}ta{\l}{\u\i}e {\O}ctave
  197.   Pauline Qu\^eneau Roxanne Sabine T\~a{\'\j}a Ur\v{s}ula
  198.   Vivian Wendy Xanthippe Yv{\o}nne Z\"azilie\par}
  199. \def\punct{\par\dopunct{min}\dopunct{pig}\dopunct{hid}
  200.   \dopunct{HIE}\dopunct{TIP}\dopunct{fluff}
  201.   \$1,234.56 + 7/8 = 9\% @ \#0\par}
  202. \def\dopunct#1{#1,\ #1:\ #1;\ `#1'\ ?`#1?\ !`#1!\ (#1)\ [#1]\
  203.                #1*\ #1.\par}
  204.  
  205. \def\bigtest{\sample
  206.   hamburgefonstiv HAMBURGEFONSTIV\par
  207.   \names \punct \lowers \uppers \digits}
  208.  
  209. \def\math{\textfont1=\testfont \skewchar\testfont=\skewtrial
  210.  \mathchardef\Gamma="100 \mathchardef\Delta="101
  211.  \mathchardef\Theta="102 \mathchardef\Lambda="103 \mathchardef\Xi="104
  212.  \mathchardef\Pi="105 \mathchardef\Sigma="106 \mathchardef\Upsilon="107
  213.  \mathchardef\Phi="108 \mathchardef\Psi="109 \mathchardef\Omega="10A
  214.  \def\ii{i} \def\jj{j}
  215.  \def\\##1{|##1|+}\mathtrial
  216.  \def\\##1{##1_2+}\mathtrial
  217.  \def\\##1{##1^2+}\mathtrial
  218.  \def\\##1{##1/2+}\mathtrial
  219.  \def\\##1{2/##1+}\mathtrial
  220.  \def\\##1{##1,{}+}\mathtrial
  221.  \def\\##1{d##1+}\mathtrial
  222.  \let\ii=\imath \let\jj=\jmath \def\\##1{\hat##1+}\mathtrial}
  223. \newcount\skewtrial \skewtrial='177
  224. \def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L \\M \\N
  225.  \\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z \\a \\b \\c \\d \\e \\f
  226.  \\g \\h \\\ii \\\jj \\k \\l \\m \\n \\o \\p \\q \\r \\s \\t \\u \\v \\w
  227.  \\x \\y \\z \\\alpha \\\beta \\\gamma \\\delta \\\epsilon \\\zeta
  228.  \\\eta \\\theta \\\iota \\\kappa \\\lambda \\\mu \\\nu \\\xi \\\pi
  229.  \\\rho \\\sigma \\\tau \\\upsilon \\\phi \\\chi \\\psi \\\omega
  230.  \\\vartheta \\\varpi \\\varphi \\\Gamma \\\Delta \\\Theta \\\Lambda
  231.  \\\Xi \\\Pi \\\Sigma \\\Upsilon \\\Phi \\\Psi \\\Omega \\\partial
  232.  \\\ell \\\wp$\par}
  233. \def\mathsy{\begingroup\skewtrial='060 % for math symbol font tests
  234.  \def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L
  235.   \\M \\N \\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z$\par}
  236.  \math\endgroup}
  237. \def\oct#1{\hbox{\rmfamily\'{}\kern-.2em\itshape
  238.            #1\/\kern.05em}} % octal constant
  239. \def\hex#1{\hbox{\rmfamily\H{}\ttfamily#1}} % hexadecimal constant
  240. \def\setdigs#1"#2{\gdef\h{#2}% \h=hex prefix; \0\1=corresponding octal
  241.  \m=\n \divide\m by 64 \xdef\0{\the\m}%
  242.  \multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}}
  243. \def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}%
  244.  \\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F%
  245.  \global\p=\lastpenalty}} % \p=1 if none of the characters exist
  246. \def\oddline{\cr
  247.   \noalign{\nointerlineskip}
  248.   \multispan{19}\hrulefill&
  249.   \setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr
  250.   \noalign{\nointerlineskip}}
  251. \newif\ifskipping
  252. \def\evenline{\loop\skippingfalse
  253.  \ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m
  254.  \expandafter\setdigs\meaning\next \testrow
  255.  \ifnum\p=1 \skippingtrue \fi\fi
  256.  \ifskipping \global\advance\n 16 \repeat
  257.  \ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi
  258.  \next}
  259. \def\morechart{\cr\noalign{\hrule\penalty5000}
  260.  \chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m}
  261.  \chartline \evenline}
  262. \def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&}
  263. \def\chartstrut{\lower4.5pt\vbox to14pt{}}
  264. \def\table{$$\global\n=0
  265.   \halign to\hsize\bgroup
  266.     \chartstrut##\tabskip0pt plus10pt&
  267.     &\hfil##\hfil&\vrule##\cr
  268.     \lower6.5pt\null
  269.     &&&\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline}
  270. \def\endchart{\cr\noalign{\hrule}
  271.   \raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B&
  272.   &\hex C&&\hex D&&\hex E&&\hex F&\cr\egroup$$\par}
  273. \def\:{\setbox0=\hbox{\char\n}%
  274.   \ifdim\ht0>7.5pt\reposition
  275.   \else\ifdim\dp0>2.5pt\reposition\fi\fi
  276.   \box0\global\advance\n 1 }
  277. \def\reposition{\setbox0=\vbox{\kern2pt\box0}\dim=\dp0
  278.   \advance\dim 2pt \dp0=\dim}
  279. \def\centerlargechars{
  280.   \def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}}
  281. \def\text{{\advance\baselineskip-4pt
  282. \setbox0=\hbox{abcdefghijklmnopqrstuvwxyz}
  283. \ifdim\hsize>2\wd0
  284.    \ifdim 15pc>2\wd0 \hsize=15pc \else \hsize=2\wd0 \fi
  285. \fi
  286. On November 14, 1885, Senator \& Mrs.~Leland Stanford called together
  287. at their San Francisco mansion the 24~prominent men who had been
  288. chosen as the first trustees of The Leland Stanford Junior University.
  289. They handed to the board the Founding Grant of the University, which
  290. they had executed three days before. This document---with various
  291. amendments, legislative acts, and court decrees---remains as the
  292. University's charter.  In bold, sweeping language it stipulates that
  293. the objectives of the University are ``to qualify students for
  294. personal success and direct usefulness in life; and to promote the
  295. publick welfare by exercising an influence in behalf of humanity and
  296. civilization, teaching the blessings of liberty regulated by law, and
  297. inculcating love and reverence for the great principles of government
  298. as derived from the inalienable rights of man to life, liberty, and
  299. the pursuit of happiness.'' \moretext
  300. (!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)\par}}
  301. \def\moretext{?`But aren't Kafka's Schlo{\ss} and {\AE}sop's
  302. {\OE}uvres often na{\"\i}ve vis-\`a-vis the d{\ae}monic ph{\oe}nix's
  303. official r\^ole in fluffy souffl\'es? }
  304. \def\omitaccents{\let\moretext=\relax}
  305.  
  306. \def\sample{\table\text}
  307. \def\bye{\end{document}}       %FMi
  308. \let\oldtypeout\typeout        %FMi
  309. \def\typeout#1{}               %FMi
  310. \begin{document}               %FMi
  311. \let\typeout\oldtypeout        %FMi
  312.  
  313. \ifx\noinit!\else\init\fi
  314. \endinput
  315. %% 
  316. %% End of file `nfssfont.tex'.
  317.