summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/beebe/texnames.sty
blob: 454726c3653094b841472ff68b8f0261df39c045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
% /u/sy/beebe/tex/texnames/texnames.sty, Sat Oct 26 11:19:21 1991
% Edit by Nelson H. F. Beebe <beebe@magna.math.utah.edu>
%%% ====================================================================
%%%  @TeX-style-file{
%%%     author          = "Nelson H. F. Beebe",
%%%     version         = "1.10",
%%%     date            = "02 March 1998",
%%%     time            = "08:36:13 MST",
%%%     filename        = "texnames.sty",
%%%     address         = "Center for Scientific Computing
%%%                        Department of Mathematics
%%%                        South Physics Building
%%%                        University of Utah
%%%                        Salt Lake City, UT 84112
%%%                        USA
%%%                        Tel: (801) 581-5254
%%%                        FAX: (801) 581-4148",
%%%     checksum        = "27723 296 1385 12423",
%%%     email           = "beebe@magna.math.utah.edu (Internet)",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "TeX names",
%%%     supported       = "yes",
%%%     docstring       = "This style file for AmSTeX, LaTeX, and TeX
%%%                        defines macros for the names of TeX
%%%                        and METAFONT programs, in several
%%%                        letter-case variants:
%%%
%%%                        \AMSTEX, \AMSTeX, \AmSTeX
%%%                        \BIBTEX, \BIBTeX, \BibTeX
%%%                        \LAMSTeX, \LAmSTeX
%%%                        \LaTeX, \LATEX
%%%                        \METAFONT, \MF
%%%                        \SLITEX, \SLITeX, \SLiTeX, \SliTeX
%%%
%%%                        It will NOT redefine any macro that
%%%                        already exists, so it can be included
%%%                        harmlessly after other style files.
%%%
%%%                        In AmSTeX or Plain TeX, just do
%%%
%%%                        \input texnames.sty
%%%
%%%                        In LaTeX, do
%%%
%%%                        \documentstyle[...,texnames]{...}
%%%
%%%                        This file grew out of original work by
%%%
%%%                        Richard Furuta
%%%                        Department of Computer Science
%%%                        University of Maryland
%%%                        College Park, MD  20742
%%%
%%%                        furuta@mimsy.umd.edu
%%%                        seismo!umcp-cs!furuta
%%%
%%%                        22 October 1986, first release (1.00)
%%%
%%%                        1 April 1987 (1.01): Modified by William
%%%                        LeFebvre, Rice University to include
%%%                        definitions for BibTeX and SLiTeX, as they
%%%                        appear in the LaTeX Local User's Guide
%%%                        template (the file latex/local.tex in
%%%                        standard distributions)
%%%
%%%                        26 October 1991 (1.02): Modified by
%%%                        Nelson H. F. Beebe <beebe@math.utah.edu> to
%%%                        add several new macro names, and adapt for
%%%                        use with Plain TeX and AmSTeX.
%%%
%%%                        26 October 1991 (1.03): Add \LaTeX and
%%%                        \LATEX
%%%
%%%                        25 November 1991 (1.04): Add \LamSTeX
%%%                        and \LAMSTeX
%%%
%%%                        27 January 1991 (1.05 and 1.06): Add slanted
%%%                        font support for \MF.  Make several comment
%%%                        changes.  Add a couple of missing % at end
%%%                        of line, and replace blank lines by empty
%%%                        comments.
%%%
%%%                        30 December 1992 (1.07): Use \TeX in
%%%                        definitions of \BibTeX and \LaTeX.  Remove
%%%                        occurrences of \rm.  Change \sc to use
%%%                        \scriptfont instead of hardwiring cmcsc10.
%%%                        Use \cal for \LAMSTeX.
%%%
%%% 			   1 March 1993 (1.08): Consolidate \ifx's onto
%%% 			   single lines for brevity.  Add
%%% 			   \spacefactor1000 to definitions for \TeX and \MF.
%%%
%%%                        16 March 1993 (1.09): Add \AmS, \AMS, \AmSLaTeX,
%%%                        and \AMSLaTeX.
%%%
%%%                        02 March 1998 (1.10): Add \LaTeXe.
%%%
%%%                        The checksum field above contains a CRC-16
%%%                        checksum as the first value, followed by the
%%%                        equivalent of the standard UNIX wc (word
%%%                        count) utility output of lines, words, and
%%%                        characters.  This is produced by Robert
%%%                        Solovay's checksum utility.",
%%%
%%%  }
%%% ====================================================================
%
\immediate\write16{This is texnames.sty, Version 1.10 <02 March 1998>}%
%
% This has a chance of working in different styles and sizes, although
% it's not perfect.  If \sc actually selects a caps-and-small caps font,
% we want to use lowercase letters (to get the small caps).  But if \sc
% selects a smaller point size, we want to use uppercase letters.
% \uppercasesc is called on every letter we typeset in \sc, so both
% forms can be accommodated.
\ifx\sc\undefined
    \def\sc{%
      % If there is no \scriptfont for the current family, use a fixed
      % font.  What more can we do?
      \expandafter\ifx\the\scriptfont\fam\nullfont
        \font\temp = cmr7 \temp
      \else
        \the\scriptfont\fam
      \fi
      \def\uppercasesc{\char\uccode`}%
    }%
\fi
\ifx\uppercasesc\undefined
  \let\uppercasesc = \relax
\fi
%
% In the following, we first give the ``official'' definition,
% then follow it with spelling variants.  Alternate definitions
% are discarded in favor of the official one.  Each family is
% separated by a line like the following one.
%
%=======================================================================
%
% Only change from plain.tex is the \spacefactor assignment (suggested
% by Phil Taylor), so that \TeX at the end of a sentence isn't treated
% as an abbreviation.
%
\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000 }%
%
%=======================================================================
% From the AMS tex/ams/amslatex/fontsel/nfssinst.tex file:

\ifx\AmS\undefined
    \def\AmS{{\the\textfont2 A}\kern-.1667em\lower.5ex\hbox
        {\the\textfont2 M}\kern-.125em{\the\textfont2 S}}
\fi
\ifx\AMS\undefined \let\AMS=\AmS \fi
\ifx\AmSLaTeX\undefined
    \def\AmSLaTeX{\AmS-\LaTeX}
\fi
\ifx\AMSLaTeX\undefined \let\AMSLaTeX=\AmSLaTeX \fi
%=======================================================================
%
% Mike Spivak's amstex/amstex.tex 1.1d [26-Aug-1988] has
% \def\AmSTeX{{\textfontii A}\kern-.1667em\lower.5ex\hbox
%             {\textfontii M}\kern-.125em{\textfontii S}-\TeX}
% and 2.1 [05-Apr-1991] has an equivalent definition.
% AmSTeX's \textfontii is exactly the same as \cal, which
% all TeX variants understand.
%
\ifx\AmSTeX\undefined
    \def\AmSTeX{$\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}%
            \kern-.125em$\cal S$-\TeX}%
\fi
%
% Leslie Lamport's latex/tmanual.tex [10-Jul-1984] (an early
% draft of the book) defines it in uppercase with the standard
% definition.
\ifx\AMSTEX\undefined \let\AMSTEX=\AmSTeX \fi
%
% Barbara Beeton's latex/deproc.sty [24-Apr-1986] and inputs/tugbot.sty
% [11-Jan-1988] uses this spelling, but the definition
% \leavevmode\hbox{$\cal A\kern-.2em\lower.376ex \hbox{$\cal
% M$}\kern-.2em\cal S$-\TeX}
\ifx\AMSTeX\undefined \let\AMSTeX=\AmSTeX \fi
%
%=======================================================================
%
% The definitions of \BibTeX and \SLiTeX in Leslie Lamport's
% latex/local.tex lower the E by 0.7ex, while \TeX in plain.tex lowers
% it by 0.5ex.  Oren Patashnik's bibtex/btxdoc.tex and bibtex/btxhak.tex
% [08-Feb-1988] and bibtex/bibtex.web 0.99c [xx-Feb-1988] use this same
% name and definition, but Oren said using \TeX here is ok.  (Curiously,
% LaTeX itself does not define macros for any TeXware except LaTeX and
% TeX!)
\ifx\BibTeX\undefined
    \def\BibTeX{B{\sc \uppercasesc i\kern-.025em \uppercasesc b}\kern-.08em
                \TeX}%
\fi
%
% Leslie Lamport uses this spelling in latex.tex, but not as a
% macro.  We include it for consistency with AMSTeX.
\ifx\BIBTeX\undefined \let\BIBTeX=\BibTeX \fi
%
% Leslie Lamport's latex/slides.tex [05-Jun-1984],
% latex/tmanual.tex [10-Jul-1984] (an early draft of the book),
% and latex/lerrata.tex [23-Jul-1985] have this spelling, but the
% definition BIB\kern-.1em\TeX.
\ifx\BIBTEX\undefined \let\BIBTEX=\BibTeX \fi
%
%=======================================================================
%
% From tugboat.com 1.08 [24-Oct-1990].
\ifx\LAMSTeX\undefined
    \def\LAMSTeX{L\raise.42ex\hbox{\kern-.3em\the\scriptfont2 A}%
                 \kern-.2em\lower.376ex\hbox{\the\textfont2 M}%
                 \kern-.125em {\the\textfont2 S}-\TeX}%
\fi
%
\ifx\LamSTeX\undefined \let\LamSTeX=\LAMSTeX \fi
%
% This variant seems likely to appear:
\ifx\LAmSTeX\undefined \let\LAmSTeX=\LAMSTeX \fi
%
%=======================================================================
%
% The definition from latex.tex (LATEX VERSION 2.09 <14 January 1991>)
% and bibtex.web 0.99c [xx-Feb-1988] lowers the E slightly more than
% \TeX, but consistency seems more desirable.  See comments at \BibTeX.
% Different definitions are given by latex/deproc.sty [24-Apr-1986],
% amstex/man.sty [15-Dec-1986] inputs/tugbot.sty [11-Jan-1988], and
% latex/tugboat.com 1.08 [24-Oct-1990].
%
\ifx\LaTeX\undefined
    \def\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc \uppercasesc a}\kern-.15em\TeX}%
\fi
%
% latex/slides.tex [05-Jun-1984] and latex/lerrata.tex [23-Jul-1985]
% have this spelling, but different definitions
\ifx\LATEX\undefined \let\LATEX=\LaTeX \fi
\ifx\LaTeXe\undefined
    \def\LaTeXe{\LaTeX{}\kern.05em2$_{\textstyle\varepsilon}$}
\fi
%
%=======================================================================
%
% Don Knuth's mf.web 2.7 [xx-Sep-1990] and Barbara Beeton's
% latex/deproc.sty [24-Apr-1986] use an equivalent of this definition.
% The font is variously named \logo, \manfnt, and \mf.  plain.tex
% preloads \manfnt.  manfnt has the letters A, E, F, M, N, O, T in
% various sizes plus extra symbols for Don Knuth's books Computers and
% Typesetting, and Concrete Mathematics, while logo10 has only those
% letters in one size.  AmSTeX uses \logo in amsppt.sty and imappt.sty,
% so we should avoid it, and tugboat.com uses \mf for {\smc Metafont}.
% We therefore use \manfnt here, defining it if necessary.  QUESTION:
% should we use manfnt, or logo10?
\ifx\MF\undefined
    \ifx\manfnt\undefined
            \font\manfnt=logo10
    \fi
    \ifx\manfntsl\undefined
            \font\manfntsl=logosl10
    \fi
    \def\MF{{\ifdim\fontdimen1\font>0pt \let\manfnt = \manfntsl \fi
      {\manfnt META}\-{\manfnt FONT}}\spacefactor1000 }%
\fi
%
% I cannot find any `official' uses of this alternate, but it
% seems likely that people will use it.
\ifx\METAFONT\undefined \let\METAFONT=\MF \fi
%
%=======================================================================
%
% Leslie Lamport's latex/slides.tex [05-Jun-1984].  His
% latex/lerrata.tex [23-Jul-1985] and latex/tmanual.tex
% [10-Jul-1984] (an early draft of the book) define it as
% SLI\TeX!  The LaTeX User's Guide and Reference Manual (1986)
% appears to use small caps, and possibly kerning, for Sli.
% I need to ask Leslie to suggest a preferred definition.
\ifx\SLITEX\undefined
    \def\SLITEX{S\kern-.065em L\kern-.18em\raise.32ex\hbox{i}\kern-.03em\TeX}%
\fi
%
% latex/local.tex (sample Local Guide) [27-Oct-1988] uses
% this name, but defines it as
% {\rm S\kern-.06em{\sc l\kern-.035emi}\kern-.06em T\kern
%   -.1667em\lower.7ex\hbox{E}\kern-.125emX}
% with an extra-low E, and kerned Sli in small caps.  Is this
% what the LaTeX User's Guide and Reference Manual (1986) used?
\ifx\SLiTeX\undefined \let\SLiTeX=\SLITEX \fi
%
% latex/slitex.tex [08-Jun-1988] uses SliTeX in typeouts,
% but not as a macro -- what a way to confuse the user.
\ifx\SliTeX\undefined \let\SliTeX=\SLITEX \fi
%
% I cannot find a use of this one, but it seems a likely
% candidate anyway, and is consistent with AMSTeX and BIBTeX.
\ifx\SLITeX\undefined \let\SLITeX=\SLITEX \fi
%
\endinput
%=========================[End of texnames.sty]=========================