{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.

learn more… | top users | synonyms

3
votes
1answer
107 views

Storing contents of environment within align

Now we are at it here is another one that has been puzzling me. \documentclass[a4paper]{article} \usepackage{amsmath,environ} \def\storer#1{\def\data{#1}} \makeatletter ...
6
votes
2answers
2k views

Setting two math symbols directly above each other and vertically aligned

I am typesetting the Neyman Pearson decision rule and would like to set the greater than > and smaller than < symbols directly above each other. I tried \overset but that doesn't align the ...
9
votes
3answers
2k views

A vertically centered equation number on a multline environment

The multline environment does exactly what I want in splitting a long formula between lines by utilizing the horizontal space to the fullest. (I don't want the alignment features of the align ...
4
votes
1answer
391 views

Mixed Grouping in Subequations

I am looking to create a subequation environment with three equations. However, I want to group the 2nd and 3rd equations with a brace on the left side. I tried this (using the empheq package): ...
5
votes
1answer
442 views

The font of operator names: the size

A while ago, I asked what was the correct way of changing the font used to set operator names. I stabilized at: \DeclareSymbolFont{sfoperators}{OT1}{cmss}{m}{n} ...
9
votes
5answers
3k views

Using \label with amsmath nested environments

First of all, I'm not sure these environments are supposed to be nested, but the fact is the alignment comes out exactly how I wanted, and no errors are issued. \documentclass[a5paper]{article} ...
5
votes
3answers
3k views

Use mathematical equation in caption with onlyamsmath

Apparently it seems to raise a warning »LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.« if I want to use a mathematical equation in a figure's caption and I use the ...
2
votes
1answer
87 views

Converting legacy amstex picture with \LPic to latex

I am converting legacy amstex code to latex. I am stuck on vector pictures in the document. In the "main" document, there is code like this: \centerline{\input fig11.tex} In the fig11.tex file, ...
6
votes
3answers
24k views

Left-align math

I'm trying to left-align some math, like here (the center block with the arrows): I've tried the following: \begin{flalign*} (0, (2, q_1), (0, q_1)) \rightarrow (0, (0, q_1), (1, q_2)) \rightarrow ...
19
votes
1answer
1k views

Why is \global\let not always global?

As an LaTeX environment opens a local group, it is normally necessary to use a global definition if changes in the environment should be available after the environment: \documentclass{minimal} ...
9
votes
3answers
5k views

How to put your symbol explanation for the formula?

I have a formula written in LaTeX. What is the best way to explain what the symbols mean in the formula? For example I have this equation with a where: symbol definitions \begin{equation} ...
5
votes
3answers
1k views

Creating a \precneq symbol

Going through the comprehensive symbols list, and also Detexify, we see that through various packages (mostly amssymb) we can get the symbols \prec Precedes. Unicode U+227A: ≺ \preceq Precedes or ...
4
votes
1answer
2k views

Specification in `theorem` environment also bold

I'm using the following packages/options in my article: \documentclass[b4paper,12pt]{article} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} ...
5
votes
3answers
900 views

Any way to change color of \not

I often use command \not just to cancel off symbols in my equations and i would need an advice on how to change the color of this command.
2
votes
2answers
433 views

Patch newline (\\) in math environment using amsmath

I want to patch the newline command \\ in an align environment provided by amsmath. The patched version should execute some custom code and finally call the original definition, like in the following ...
13
votes
2answers
7k views

Equations inside enumerate aligned on item's number

If I type \begin{enumerate} \item \begin{align*} eqn 1 eqn 2 \end{align*} \end{enumerate} the label will appear on the first lines and the equations will ...
5
votes
1answer
4k views

Bad math environment delimiter: ntheorem with thmmarks, Display math and split

Using a combination of \usepackage[amsmath,thmmarks]{ntheorem}, display math enclosed in \[ \] and a \begin{split} environment inside it, pdflatex freaks out completely: ! LaTeX Error: Bad math ...
6
votes
1answer
389 views

Understanding ext@arrows

I don't quite understand how \ext@arrow of amsmath is working. When I look at the code, its functionality seems straight forward to me at the first glance. \def\ext@arrow#1#2#3#4#5#6#7{% ...
9
votes
2answers
424 views

Typesetting a pattern matching equation

I want to typeset an equation for a paper. In the field of computer science we can define an equation that depends upon the form of one of it's arguments. I want to typeset this with LaTeX & ...
0
votes
2answers
193 views

Force printing of parentheses around a single character in math mode [closed]

Although this is not strictly mathematical notation, I would like to denote an object with a calligraphy capital T and subscript non-italic P. I have this: ...
1
vote
1answer
467 views

Comma delimiter in pmatrix environment (for row vectors)

Is there a way to have a pmatrix environment from amsmath use non-whitespace delimiters such as a comma? I am mainly asking, because I would like to make a row vector this way. I take it, there are ...
2
votes
1answer
632 views

Need help with enumerated list with display math

I have an enumerated list from a Proposition and would like to put this into display math style (so the subscripts on the union and intersection symbols are below not beside those symbols) and keep ...
8
votes
2answers
2k views

Is it possible to typeset text inside math without amsmath?

Is it possible to typeset text properly inside math without amsmath? Typically I typeset short text using mathrm, or text (amsmath) within equation: $M_\mathrm{effective mass}$ $M_\text{effective ...
2
votes
1answer
662 views

Interference between amsmath and ntheorem

I am having some problems that `seem' to me to be a conflict between amsmath and ntheorem. Here is a MWE: \documentclass[12pt,a4paper,oneside]{report} ...
11
votes
1answer
723 views

showonlyrefs and cleveref

This question led to a new package: autonum I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
2
votes
1answer
310 views

Error in amsmath as primitive \eqno no longer primitive [closed]

I am trying to typeset (with XeLaTeX) a simple Tufte-LaTeX example (http://tufte-latex.googlecode.com/files/Week5Lecture.tex) and getting an error message like the following: ...
1
vote
0answers
62 views

error related to amsmath with latex but not pdflatex [duplicate]

Possible Duplicate: How can I see why a file isn't compiling somewhere else, if it does in my machine? I am getting a bunch of ! Incompatible list cannot be unboxed resulting from ...
15
votes
4answers
1k views

Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used

The problem I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...
48
votes
2answers
34k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
5
votes
2answers
298 views

How to make the amsxtra \accentedsymbol work with subscripts etc.?

The amsxtra package provides the \accentedsymbol command which typesets the argument and stores the result. This can speed up LaTeX compilation significantly if lots of accents etc. are used ...
7
votes
3answers
6k views

Tagging under an equation using underbrace

I would like to tag two parts of a huge equation using underbraces (and call them, say term A and term B). Later in the text, I want to talk about term A and term B. Is there a way to tag and label ...
6
votes
1answer
807 views

How to align equations when some inside are gathered

I have a set of equations where some are coupled with a brace and some text. I want all the equations aligned. Something like the following ASCII art: S = LR L = Ls \ | for s in {a, b} ...
10
votes
3answers
19k views

Centering in the \align* environment

I'm using the \align* environment from the amsmath package. How can I center one of the lines inside the environment? In the following example, I want to the \vdots to be centered, instead of ...
10
votes
1answer
1k views

Aligning sub-equations within align

Update: How do I align both the \sum signs and the = signs in the last two equations? I have updated the picture. Original Question: When I use the following code: \begin{equation} \begin{split} ...
0
votes
0answers
42 views

Multi-line brackets in align [duplicate]

Possible Duplicate: How to make \left, \right pairs of delimiter work over multiple lines? The following code (from the official User's Guide for the amsmath Package) works: ...
11
votes
1answer
2k views

unicode-math and amsmath incompatible

When I compile the following mwe with xelatex, I am told: ERROR: LaTeX Error: Command \dddot already defined. --- TeX said --- Or name \end... illegal, see p.192 of the manual. l.571 ...
8
votes
2answers
567 views

Interaction between \hdotsfor and colortbl: Bug/Feature?

When using package colortbl, the command \hdotsfor fails (partially), leaving too much white space before and after the dotted part. The mwe \documentclass{book} \usepackage{colortbl} ...
5
votes
2answers
222 views

Equation tags in lining numerals

This is a follow-up to this question; I'd like also the tags (typeset by the \tag command) to be in lining numerals. However, inspecting the definition of \tag in amsmath didn't reveal too much to me ...
12
votes
1answer
705 views

Lost labels using intertext with varioref and hyperref

I have a problem using \intertext together with \vref when hyperref is also used. Consider the following minimal example: \documentclass{article} \usepackage{amsmath, varioref} ...
8
votes
1answer
601 views

Footnote from intertext

I want to be able to send footnotes from intertexts I use within align. Is there an easy way to accomplish this (say using a package)? For example, I am a little teapot \begin{align} this ...
5
votes
1answer
325 views

Access every cell of amsmath's align environment

I'd like to create an environment that basically behaves like amsmath's (v. 2.13) align environment, i.e. line numbering, \label, \tag, \intertext ... are available. Since I don't want to reinvent ...
7
votes
1answer
679 views

Copy-able Matrix/Grid

I have grid-formatted data: 1 2 3 4 5 6 7 7 9 I'd like to display this as above in a LaTeX document compiled with pdfLaTeX. I've thought about using the TikZ Matrix library and the AMSMath Matrix ...
3
votes
1answer
389 views

empheq conflict with ntheorem?

I am trying to use the empheq package as indicated here. But I am seeing some problems with where the tags to the equations are placed, since my document also uses the ntheorem package. (Remark: the ...
7
votes
3answers
1k views

A set of equations, vertically aligned, individually tagged, with subequations, and separate label

Can the following be achieved using just amsmath and mathtools? (If not, what other tools do I need?) I have a collection of equations \begin{align} A &= B \\ C &= D \\ E &= F ...
2
votes
1answer
236 views

How to set equation numbers in lining numerals?

I'm using XeLaTeX with Linux Libertine (using fontspec) and oldstyle numbers. I'd like, however, to set equation numbers (using amsmath's \eqref) in lining numbers. This does not work: ...
11
votes
3answers
26k views

Using \gather and \align together

I'm very picky regarding alignment inside my proofs. What's frustrating me right now is that I have some lines that I want to be center-aligned (using \begin{gather}) and others that I wish to align ...
6
votes
2answers
9k views

Argument of align has an extra '}'

Okay, this was compiling just fine yesterday. I've since been making some changes, and now get the following error: ! Argument of \align has an extra }. <inserted text> \par l.85 f(t) = ...
6
votes
1answer
494 views

error while using amsmath package

I try to run this: \documentclass{article} \usepackage{amsmath} \renewcommand\thesection{\arabic{section}.} \makeatletter \renewcommand{\section}{ \@startsection ...
3
votes
1answer
724 views

Is there an equivalent to \ddot for MnSymbol?

In my bibtex file (in Jabref) I have several authors that require an umlaut. I was using \ddot which was doing the trick. Unfortunately I've needed to load some other symbols from MnSymbol that ...
4
votes
1answer
1k views

Amsbook: Theoremstyles definition and remark identical?

If I understand the documentation of the AMS classes correctly, then a theorem in the style "plain" should have bold heading and italic body text, in the style "definition", there should be bold ...