% /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.09",
%%%     date            = "16 March 1993",
%%%     time            = "10:08:05 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        = "15888 291 1374 12268",
%%%     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.
%%%
%%%                        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.09 <16 March 1993>}%
%
% 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
%
%=======================================================================
%
% 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]=========================
