summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/stupid_names.sty
blob: c3cad7a024920609350d992da33ed2bd1dff903e (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
% a package derived from nelson beebe's texnames.sty; the name 
%
\ProvidesPackage{stupid_names}[2004/02/26 v0.00001]
%
% 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:
% hacked by RF 1994/03/31
\ifx\mathcal\undefined
    \def\mathcal#1{{\cal #1}}
\fi
\ifx\AmS\undefined
    \def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox
        {$\mathcal{M}$}\kern-.125em$\mathcal{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{\AmS-\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{$\mathcal{A}\kern-.2em\lower.376ex \hbox{$\mathcal{
% M}$}\kern-.2em\mathcal{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
  \ifx\textsc\undefined
    \def\BibTeX{B{\sc \uppercasesc i\kern-.025em \uppercasesc b}\kern-.08em
                \TeX}%
  \else
    \def\BibTeX{\textsc{Bib}\kern-.08em
                \TeX}%
  \fi
\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].
%
% note: this definition doesn't have a variant based on \textsc, since
% anything that's LaTeX2e-compatible ought to have it anyway...
%
\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
%
% LaTeX 2e `standard' logo (euuccchhhh!)
\ifx\LaTeXe\undefined
    \def\LaTeXe{\LaTeX\kern.15em 2${}_{\textstyle\varepsilon}$}
\fi
%
% and a corresponding thing for LaTeX _explicitly_ 2.09
%
\ifx\LaTeXo\undefined
    \def\LaTeXo{\LaTeX\kern.15em 2.09}
\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
  \ifx\textsc\undefined
    \def\SLITEX{S\kern-.065em L\kern-.18em\raise.32ex\hbox{\textsc{i}}%
                 \kern-.03em\TeX}%
  \else
    \def\SLITEX{S\kern-.065em L\kern-.18em\raise.32ex\hbox{i}%
                 \kern-.03em\TeX}%
  \fi
\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
%
%=======================================================================
%
% from pictex.tex:
\ifx\PiC\undefined \def\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC} \fi
\ifx\PiCTeX\undefined \def\PiCTeX{\PiC\kern-.11em\TeX} \fi
%
% from fantasy-land:
\ifx\VorTeX\undefined \def\VorTeX{V\kern-2.7pt\lower.5ex\hbox{O\kern-1.4pt R}%
            \kern-2.6ptT\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} \fi
%
\endinput
%=========================[End of texnames.sty]=========================