Amsmath - What Does Each AMS Package Do_ - TeX - LaTeX Stack Exchange

Embed Size (px)

Citation preview

  • 8/12/2019 Amsmath - What Does Each AMS Package Do_ - TeX - LaTeX Stack Exchange

    1/3

    01/04/13 amsmath - What does each AMS package do? - TeX - LaTeX Stack Exchange

    tex.stackexchange.com/questions/32100/what-does-each-ams-package-do

    What does each AMS package do?What does each AMS package do?

    In my view, any document with a substantial amount of mathematics should load the packages

    from AMS-TeX. Hence, most of my document's preambles contain

    \usepackage{amsmath, amsthm, amssymb, amsfonts}

    (I could add to that the non-AMS , etc.). What do each of those packages do? Do I

    really need to list all of them, or do some of them load others? In particular, does any package

    load all of them, so that I can simply type

    mathtools

    \usepackage{ams-everything}

    shorter than the current list?

    {packages} {amsmath}

    asked Oct 20 '11 at 1:46

    Bruno Le Floch

    18.6k2 51 107

    2 loads .amssymb amsfonts Gonzalo Medina Oct 20 '11 at 2:13

    2 Answers

    Most of the answer was extracted from the sections of the documentation of

    and :

    Introduction

    amsmath amsthm

    1. provides miscellaneous enhancements for improving the information

    structure and printed output of documents containing mathematical formulas. Some of

    the features provided by this package are:

    amsmath

    The command (through the auxiliary package ) to

    define new "operator name" commands analogous to and , including

    proper side spacing and automatic selection of the correct font style and size (even

    when used in sub- or superscripts).

    \DeclareMathOperator amsopn

    \sin \lim

    Multiple substitutes for the environment to make various kinds of

    equation arrangements easier to write.

    eqnarray

    Equation numbers automatically adjust up or down to avoid overprinting on theequation contents (unlike ).eqnarray

    Spacing around equals signs matches the normal spacing in the

    environment (unlike ).

    equation

    eqnarray

    A way to produce multiline subscripts as are often used with summation or product

    symbols.

    An easy way to substitute a variant equation number for a given equation instead

    of the automatically supplied number.

    An easy way to produce subordinate equation numbers of the form (1.3a) (1.3b)

    http://tex.stackexchange.com/questions/32100/what-does-each-ams-package-dohttp://tex.stackexchange.com/questions/32100/what-does-each-ams-package-dohttp://tex.stackexchange.com/questions/32100/what-does-each-ams-package-dohttp://tex.stackexchange.com/questions/32100/what-does-each-ams-package-do#comment63266_32100http://tex.stackexchange.com/users/3954/gonzalo-medinahttp://tex.stackexchange.com/users/2707/bruno-le-flochhttp://tex.stackexchange.com/questions/tagged/amsmathhttp://tex.stackexchange.com/questions/tagged/packageshttp://tex.stackexchange.com/questions/32100/what-does-each-ams-package-do
  • 8/12/2019 Amsmath - What Does Each AMS Package Do_ - TeX - LaTeX Stack Exchange

    2/3

    01/04/13 amsmath - What does each AMS package do? - TeX - LaTeX Stack Exchange

    tex.stackexchange.com/questions/32100/what-does-each-ams-package-do

    (1.3c) for selected groups of equations.

    The command (through the auxiliary package ) for typesetting a

    fragment of text inside a display.

    \text amstext

    2. helps to define theorem-like structures; the introduction to the documentation

    gives a nice concise description of the package:

    amsthm

    The package provides an enhanced version of LaTeX's

    command for defining theorem-like environments. The enhancedrecognizes a specification (as in Mittelbach's package) and

    has a form for defining unnumbered environments. The package also

    defines a environment that automatically adds a QED symbol at the end. AMS

    document classes incorporate the package, so everything described here

    applies to them as well.

    amsthm \newtheorem

    \newtheorem\theoremstyle theorem

    * amsthm

    proof

    amsthm

    If the package is used with a non-AMS document class and with the

    package, must be loaded after , not before.

    amsthm amsmath

    amsthm amsmath

    3. provides an extended symbol collection. For example, after loading

    you have the following additional binary relation symbols: , ,, , , , (and many more), the arrow ,

    and some other symbols such as and . Another useful feature is the

    command to produce blackboard bold characters

    amssymb amssymb

    \barwedge \boxdot

    \boxminus \boxplus \boxtimes \Cap \Cup \leadsto

    \Box \Diamond

    \mathbb

    Since internally loads , it's enough to load the former.amssymb amsfonts

    s far as I know, there's not a single package loading , , and so all

    hree of them will have to be loaded when using the standard classes ( , ,

    ).

    amsmath amsthm amssymb

    book report

    article

    If one of the document classes of the AMS-collection ( , ) is being used,

    here's no need to load , or ; will have to be explicitly loaded.

    amsbook amsart

    amsmath amsthm amssymb

    edited Oct 20 '11 at 11:25

    barbara beeton

    18.3k 1 31 80

    answered Oct 20 '11 at 2:50

    Gonzalo Medina

    117k 9 259 41

    also defines andamsmath \eqref \tag Seamus Oct 20 '11 at 11:32

    Here is the package dependency hierarchy in terms of the :AMS-LaTeX bundle

    amsmath

    amstext

    amsgen*

    amsbsy

    amsgen*

    amsopn

    amsgen*

    amssymb

    *

    chat with an expertnot now

    never

    http://ctan.org/pkg/amsfontshttp://ctan.org/pkg/amssymbhttp://mirrors.ctan.org/macros/latex/required/amslatex/math/amsgen.styhttp://ctan.org/pkg/amsopnhttp://mirrors.ctan.org/macros/latex/required/amslatex/math/amsgen.styhttp://ctan.org/pkg/amsbsyhttp://mirrors.ctan.org/macros/latex/required/amslatex/math/amsgen.styhttp://ctan.org/pkg/amstexthttp://ctan.org/pkg/amsmathhttp://www.ctan.org/pkg/amslatexhttp://tex.stackexchange.com/questions/32100/what-does-each-ams-package-do#comment63368_32102http://tex.stackexchange.com/users/215/seamushttp://tex.stackexchange.com/users/3954/gonzalo-medinahttp://tex.stackexchange.com/users/579/barbara-beetonhttp://tex.stackexchange.com/posts/32102/revisions
  • 8/12/2019 Amsmath - What Does Each AMS Package Do_ - TeX - LaTeX Stack Exchange

    3/3

    01/04/13 amsmath - What does each AMS package do? - TeX - LaTeX Stack Exchange

    tex.stackexchange.com/questions/32100/what-does-each-ams-package-do

    amsthm

    amsfonts*

    t the moment, there exists no (say) package that would load the entire

    bundle.

    ams-all

    This package has no dependencies.

    answered Oct 20 '11 at 2:55Werner

    112k 6 200 41

    Nice and concise answer. Bruno Le Floch Oct 20 '11 at 5:33

    http://tex.stackexchange.com/questions/32100/what-does-each-ams-package-do#comment63278_32103http://tex.stackexchange.com/users/2707/bruno-le-flochhttp://tex.stackexchange.com/users/5764/wernerhttp://ctan.org/pkg/amsfontshttp://ctan.org/pkg/amsthmhttp://ctan.org/pkg/amsfonts