Debian Codegraph @

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