Debian Codegraph @

doc/texnames.sty

raw
1 % /u/sy/beebe/tex/texnames/texnames.sty, Sat Oct 26 11:19:21 1991
2 % Edit by Nelson H. F. Beebe <[email protected]>
3 %%% ====================================================================
4 %%% @TeX-style-file{
5 %%% author = "Nelson H. F. Beebe",
6 %%% version = "1.09",
7 %%% date = "16 March 1993",
8 %%% time = "10:08:05 MST",
9 %%% filename = "texnames.sty",
10 %%% address = "Center for Scientific Computing
11 %%% Department of Mathematics
12 %%% South Physics Building
13 %%% University of Utah
14 %%% Salt Lake City, UT 84112
15 %%% USA
16 %%% Tel: (801) 581-5254
17 %%% FAX: (801) 581-4148",
18 %%% checksum = "15888 291 1374 12268",
19 %%% email = "[email protected] (Internet)",
20 %%% codetable = "ISO/ASCII",
21 %%% keywords = "TeX names",
22 %%% supported = "yes",
23 %%% docstring = "This style file for AmSTeX, LaTeX, and TeX
24 %%% defines macros for the names of TeX
25 %%% and METAFONT programs, in several
26 %%% letter-case variants:
27 %%%
28 %%% \AMSTEX, \AMSTeX, \AmSTeX
29 %%% \BIBTEX, \BIBTeX, \BibTeX
30 %%% \LAMSTeX, \LAmSTeX
31 %%% \LaTeX, \LATEX
32 %%% \METAFONT, \MF
33 %%% \SLITEX, \SLITeX, \SLiTeX, \SliTeX
34 %%%
35 %%% It will NOT redefine any macro that
36 %%% already exists, so it can be included
37 %%% harmlessly after other style files.
38 %%%
39 %%% In AmSTeX or Plain TeX, just do
40 %%%
41 %%% \input texnames.sty
42 %%%
43 %%% In LaTeX, do
44 %%%
45 %%% \documentstyle[...,texnames]{...}
46 %%%
47 %%% This file grew out of original work by
48 %%%
49 %%% Richard Furuta
50 %%% Department of Computer Science
51 %%% University of Maryland
52 %%% College Park, MD 20742
53 %%%
54 %%% [email protected]
55 %%% seismo!umcp-cs!furuta
56 %%%
57 %%% 22 October 1986, first release (1.00)
58 %%%
59 %%% 1 April 1987 (1.01): Modified by William
60 %%% LeFebvre, Rice University to include
61 %%% definitions for BibTeX and SLiTeX, as they
62 %%% appear in the LaTeX Local User's Guide
63 %%% template (the file latex/local.tex in
64 %%% standard distributions)
65 %%%
66 %%% 26 October 1991 (1.02): Modified by
67 %%% Nelson H. F. Beebe <[email protected]> to
68 %%% add several new macro names, and adapt for
69 %%% use with Plain TeX and AmSTeX.
70 %%%
71 %%% 26 October 1991 (1.03): Add \LaTeX and
72 %%% \LATEX
73 %%%
74 %%% 25 November 1991 (1.04): Add \LamSTeX
75 %%% and \LAMSTeX
76 %%%
77 %%% 27 January 1991 (1.05 and 1.06): Add slanted
78 %%% font support for \MF. Make several comment
79 %%% changes. Add a couple of missing % at end
80 %%% of line, and replace blank lines by empty
81 %%% comments.
82 %%%
83 %%% 30 December 1992 (1.07): Use \TeX in
84 %%% definitions of \BibTeX and \LaTeX. Remove
85 %%% occurrences of \rm. Change \sc to use
86 %%% \scriptfont instead of hardwiring cmcsc10.
87 %%% Use \cal for \LAMSTeX.
88 %%%
89 %%% 1 March 1993 (1.08): Consolidate \ifx's onto
90 %%% single lines for brevity. Add
91 %%% \spacefactor1000 to definitions for \TeX and \MF.
92 %%%
93 %%% 16 March 1993 (1.09): Add \AmS, \AMS, \AmSLaTeX,
94 %%% and \AMSLaTeX.
95 %%%
96 %%% The checksum field above contains a CRC-16
97 %%% checksum as the first value, followed by the
98 %%% equivalent of the standard UNIX wc (word
99 %%% count) utility output of lines, words, and
100 %%% characters. This is produced by Robert
101 %%% Solovay's checksum utility.",
102 %%%
103 %%% }
104 %%% ====================================================================
105 %
106 \immediate\write16{This is texnames.sty, Version 1.09 <16 March 1993>}%
107 %
108 % This has a chance of working in different styles and sizes, although
109 % it's not perfect. If \sc actually selects a caps-and-small caps font,
110 % we want to use lowercase letters (to get the small caps). But if \sc
111 % selects a smaller point size, we want to use uppercase letters.
112 % \uppercasesc is called on every letter we typeset in \sc, so both
113 % forms can be accommodated.
114 \ifx\sc\undefined
115 \def\sc{%
116 % If there is no \scriptfont for the current family, use a fixed
117 % font. What more can we do?
118 \expandafter\ifx\the\scriptfont\fam\nullfont
119 \font\temp = cmr7 \temp
120 \else
121 \the\scriptfont\fam
122 \fi
123 \def\uppercasesc{\char\uccode`}%
124 }%
125 \fi
126 \ifx\uppercasesc\undefined
127 \let\uppercasesc = \relax
128 \fi
129 %
130 % In the following, we first give the ``official'' definition,
131 % then follow it with spelling variants. Alternate definitions
132 % are discarded in favor of the official one. Each family is
133 % separated by a line like the following one.
134 %
135 %=======================================================================
136 %
137 % Only change from plain.tex is the \spacefactor assignment (suggested
138 % by Phil Taylor), so that \TeX at the end of a sentence isn't treated
139 % as an abbreviation.
140 %
141 \def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000 }%
142 %
143 %=======================================================================
144 % From the AMS tex/ams/amslatex/fontsel/nfssinst.tex file:
145
146 \ifx\AmS\undefined
147 \def\AmS{{\the\textfont2 A}\kern-.1667em\lower.5ex\hbox
148 {\the\textfont2 M}\kern-.125em{\the\textfont2 S}}
149 \fi
150 \ifx\AMS\undefined \let\AMS=\AmS \fi
151 \ifx\AmSLaTeX\undefined
152 \def\AmSLaTeX{\AmS-\LaTeX}
153 \fi
154 \ifx\AMSLaTeX\undefined \let\AMSLaTeX=\AmSLaTeX \fi
155 %=======================================================================
156 %
157 % Mike Spivak's amstex/amstex.tex 1.1d [26-Aug-1988] has
158 % \def\AmSTeX{{\textfontii A}\kern-.1667em\lower.5ex\hbox
159 % {\textfontii M}\kern-.125em{\textfontii S}-\TeX}
160 % and 2.1 [05-Apr-1991] has an equivalent definition.
161 % AmSTeX's \textfontii is exactly the same as \cal, which
162 % all TeX variants understand.
163 %
164 \ifx\AmSTeX\undefined
165 \def\AmSTeX{$\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}%
166 \kern-.125em$\cal S$-\TeX}%
167 \fi
168 %
169 % Leslie Lamport's latex/tmanual.tex [10-Jul-1984] (an early
170 % draft of the book) defines it in uppercase with the standard
171 % definition.
172 \ifx\AMSTEX\undefined \let\AMSTEX=\AmSTeX \fi
173 %
174 % Barbara Beeton's latex/deproc.sty [24-Apr-1986] and inputs/tugbot.sty
175 % [11-Jan-1988] uses this spelling, but the definition
176 % \leavevmode\hbox{$\cal A\kern-.2em\lower.376ex \hbox{$\cal
177 % M$}\kern-.2em\cal S$-\TeX}
178 \ifx\AMSTeX\undefined \let\AMSTeX=\AmSTeX \fi
179 %
180 %=======================================================================
181 %
182 % The definitions of \BibTeX and \SLiTeX in Leslie Lamport's
183 % latex/local.tex lower the E by 0.7ex, while \TeX in plain.tex lowers
184 % it by 0.5ex. Oren Patashnik's bibtex/btxdoc.tex and bibtex/btxhak.tex
185 % [08-Feb-1988] and bibtex/bibtex.web 0.99c [xx-Feb-1988] use this same
186 % name and definition, but Oren said using \TeX here is ok. (Curiously,
187 % LaTeX itself does not define macros for any TeXware except LaTeX and
188 % TeX!)
189 \ifx\BibTeX\undefined
190 \def\BibTeX{B{\sc \uppercasesc i\kern-.025em \uppercasesc b}\kern-.08em
191 \TeX}%
192 \fi
193 %
194 % Leslie Lamport uses this spelling in latex.tex, but not as a
195 % macro. We include it for consistency with AMSTeX.
196 \ifx\BIBTeX\undefined \let\BIBTeX=\BibTeX \fi
197 %
198 % Leslie Lamport's latex/slides.tex [05-Jun-1984],
199 % latex/tmanual.tex [10-Jul-1984] (an early draft of the book),
200 % and latex/lerrata.tex [23-Jul-1985] have this spelling, but the
201 % definition BIB\kern-.1em\TeX.
202 \ifx\BIBTEX\undefined \let\BIBTEX=\BibTeX \fi
203 %
204 %=======================================================================
205 %
206 % From tugboat.com 1.08 [24-Oct-1990].
207 \ifx\LAMSTeX\undefined
208 \def\LAMSTeX{L\raise.42ex\hbox{\kern-.3em\the\scriptfont2 A}%
209 \kern-.2em\lower.376ex\hbox{\the\textfont2 M}%
210 \kern-.125em {\the\textfont2 S}-\TeX}%
211 \fi
212 %
213 \ifx\LamSTeX\undefined \let\LamSTeX=\LAMSTeX \fi
214 %
215 % This variant seems likely to appear:
216 \ifx\LAmSTeX\undefined \let\LAmSTeX=\LAMSTeX \fi
217 %
218 %=======================================================================
219 %
220 % The definition from latex.tex (LATEX VERSION 2.09 <14 January 1991>)
221 % and bibtex.web 0.99c [xx-Feb-1988] lowers the E slightly more than
222 % \TeX, but consistency seems more desirable. See comments at \BibTeX.
223 % Different definitions are given by latex/deproc.sty [24-Apr-1986],
224 % amstex/man.sty [15-Dec-1986] inputs/tugbot.sty [11-Jan-1988], and
225 % latex/tugboat.com 1.08 [24-Oct-1990].
226 %
227 \ifx\LaTeX\undefined
228 \def\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc \uppercasesc a}\kern-.15em\TeX}%
229 \fi
230 %
231 % latex/slides.tex [05-Jun-1984] and latex/lerrata.tex [23-Jul-1985]
232 % have this spelling, but different definitions
233 \ifx\LATEX\undefined \let\LATEX=\LaTeX \fi
234 %
235 %=======================================================================
236 %
237 % Don Knuth's mf.web 2.7 [xx-Sep-1990] and Barbara Beeton's
238 % latex/deproc.sty [24-Apr-1986] use an equivalent of this definition.
239 % The font is variously named \logo, \manfnt, and \mf. plain.tex
240 % preloads \manfnt. manfnt has the letters A, E, F, M, N, O, T in
241 % various sizes plus extra symbols for Don Knuth's books Computers and
242 % Typesetting, and Concrete Mathematics, while logo10 has only those
243 % letters in one size. AmSTeX uses \logo in amsppt.sty and imappt.sty,
244 % so we should avoid it, and tugboat.com uses \mf for {\smc Metafont}.
245 % We therefore use \manfnt here, defining it if necessary. QUESTION:
246 % should we use manfnt, or logo10?
247 \ifx\MF\undefined
248 \ifx\manfnt\undefined
249 \font\manfnt=logo10
250 \fi
251 \ifx\manfntsl\undefined
252 \font\manfntsl=logosl10
253 \fi
254 \def\MF{{\ifdim\fontdimen1\font>0pt \let\manfnt = \manfntsl \fi
255 {\manfnt META}\-{\manfnt FONT}}\spacefactor1000 }%
256 \fi
257 %
258 % I cannot find any `official' uses of this alternate, but it
259 % seems likely that people will use it.
260 \ifx\METAFONT\undefined \let\METAFONT=\MF \fi
261 %
262 %=======================================================================
263 %
264 % Leslie Lamport's latex/slides.tex [05-Jun-1984]. His
265 % latex/lerrata.tex [23-Jul-1985] and latex/tmanual.tex
266 % [10-Jul-1984] (an early draft of the book) define it as
267 % SLI\TeX! The LaTeX User's Guide and Reference Manual (1986)
268 % appears to use small caps, and possibly kerning, for Sli.
269 % I need to ask Leslie to suggest a preferred definition.
270 \ifx\SLITEX\undefined
271 \def\SLITEX{S\kern-.065em L\kern-.18em\raise.32ex\hbox{i}\kern-.03em\TeX}%
272 \fi
273 %
274 % latex/local.tex (sample Local Guide) [27-Oct-1988] uses
275 % this name, but defines it as
276 % {\rm S\kern-.06em{\sc l\kern-.035emi}\kern-.06em T\kern
277 % -.1667em\lower.7ex\hbox{E}\kern-.125emX}
278 % with an extra-low E, and kerned Sli in small caps. Is this
279 % what the LaTeX User's Guide and Reference Manual (1986) used?
280 \ifx\SLiTeX\undefined \let\SLiTeX=\SLITEX \fi
281 %
282 % latex/slitex.tex [08-Jun-1988] uses SliTeX in typeouts,
283 % but not as a macro -- what a way to confuse the user.
284 \ifx\SliTeX\undefined \let\SliTeX=\SLITEX \fi
285 %
286 % I cannot find a use of this one, but it seems a likely
287 % candidate anyway, and is consistent with AMSTeX and BIBTeX.
288 \ifx\SLITeX\undefined \let\SLITeX=\SLITEX \fi
289 %
290 \endinput
291 %=========================[End of texnames.sty]=========================