home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / unixtex-6.1b-bin0.lha / lib / texmf / tex / latex2e / base / nfssfont.tex < prev    next >
Encoding:
Text File  |  1996-10-12  |  11.9 KB  |  283 lines

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