• No results found

The amsxtra package American Mathematical Society Michael Downes Version v1.2c, 1999/11/15

N/A
N/A
Protected

Academic year: 2021

Share "The amsxtra package American Mathematical Society Michael Downes Version v1.2c, 1999/11/15"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

The amsxtra package

American Mathematical Society

Michael Downes

Version v1.2c, 1999/11/15

This file is maintained by the LATEX Project team.

Bug reports can be opened (category amslatex) at https://latex-project.org/bugs/.

1

Introduction

The amsxtra package contains a few rarely used commands that were present in version 1.1 of the amstex package: \fracwithdelims, accentedsymbol, \sphat, \spcheck, \sptilde, \spdot, \spddot, \spdddot, \spbreve. If any of these commands were used in existing documents, the amsxtra package provides a way to get them. But for 99% of documents using the amstex package these commands are just wasted overhead.

\ProvidesPackage{amsxtra}[1999/11/15 v1.2c AMS extra commands]

We need to ensure that either the amstex package or the amsmath package is loaded. This means we need something a little more complicated than \RequirePackage.

\@ifpackageloaded{amstex}{}{%

\RequirePackage{amsmath}[1996/10/01 v1.2]}

Superscripted accent characters.

\def\sphat{^{\mathchoice{}{}% {\,\,\smash[b]{\hbox{\lower4\ex@\hbox{$\m@th\widehat{\null}$}}}}% {\,\smash[b]{\hbox{\lower3\ex@\hbox{$\m@th\hat{\null}$}}}}}} \def\spcheck{^\vee} \def\sptilde{^\sim} \def\spdot{^{\hbox{\raise\ex@\hbox{\normalfont .}}}} \def\spddot{^{\hbox{\raise\ex@\hbox{\normalfont ..}}}} \def\spdddot{^{\hbox{\raise\ex@\hbox{\normalfont...}}}} \def\spbreve{^{\!\smash[b]{\hbox{\lower4\ex@\hbox{\u{}}}}}}

The \fracwithdelims command is skipped if the base package is amsmath; it is only needed if the base package is amstex.

\@ifpackageloaded{amstex}{%

\def\fracwithdelims#1#2{\new@ifnextchar[{\fracwithdelims@#1#2}% {\fracwithdelims@#1#2[\@empty]}}

(2)

2 THE AMSXTRA PACKAGE

\def\fracwithdelims@#1#2[#3]#4#5{\relax \ifx\@empty#3{#4\overwithdelims#1#2#5}\else {#4\abovewithdelims#1#2#3\relax#5}\fi} }{}

Perhaps \accentedsymbol should use \newsavebox, but I don’t know of any compelling reason at the moment.[mjd,5-Sep-1994] \accentedsymbol can only produce a single size of the given symbol, so you’d need two different versions for main size and subscript size.

\def\accentedsymbol#1#2{% \expandafter\newbox \csname\expandafter\@gobble\string#1@box\endcsname \expandafter\setbox \csname\expandafter\@gobble\string#1@box\endcsname \hbox{$\m@th#2$}% \newcommand{#1}{% \expandafter\copy \csname\expandafter\@gobble\string#1@box\endcsname{}}% }

Change the definition of ~ to automatically remove a preceding space as well as a following space, if present.

\def~{\nobreakspace}

\DeclareRobustCommand{\nobreakspace}{\unskip\nobreak\ \ignorespaces}

The usual \endinput to ensure that random garbage at the end of the file doesn’t get copied by docstrip.

Referenties

GERELATEERDE DOCUMENTEN

error, warning, self-warning If the snapshot package is invoked with the error option and also the document contains a \RequireVersions state- ment, then each subsequent

Exclusion ends with the first detected \end{〈name〉}, even if there are additional \begin{〈name〉} declarations in the skipped text; that is, nesting of environments is not

A trade-off between main memory space and hash size; using \Invalid@@ saves 14 bytes of main memory for each use of \Invalid@, at the cost of one control sequence name. \Invalid@

\x@calc@shift@rf To start, we need to know two quantities: the number of align structures in the current row and the “effective length” of the row, defined as the distance from the

The amsopn package provides a command \DeclareMathOperator for defining new ‘math operator names’ similar to the standard function names \sin, \lim, \max, etc.. Standard

If you used the plain.tex versions of \matrix, \pmatrix, or \cases in a doc- ument and then later converted the document to use the amsmath package (or one of the AMS

As is proven in the ontological manuals, it is obvious that the transcendental unity of apperception proves the validity of the Antinomies; what we have alone been able to show is

Redefine \printindex to specify the file to be included; provide an alternate command \Printindex that specifies both the file and the index title to be printed. Argument #1