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

learn more… | top users | synonyms

24
votes
3answers
7k views

\DeclareMathOperator won't take arguments

I'd like to define a family of math operators that have the same superscript, but different subscripts. My first attempt was: \DeclareMathOperator{\Upd}[1]{U^M_{#1}} But the log tells me that: l.3 ...
11
votes
4answers
11k views

How to show two groups of equations side by side: one implies the other?

I would like to show a bunch of equations can imply another bunch of equations, with double right arrow in between. Here are two trials of mine: one is to use another level of math mode to enclose the ...
9
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
1
vote
0answers
138 views

How to type a double limit? [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? I'm interested in typesetting the following double-limit:
15
votes
6answers
30k views

\qed for theorems without proofs

It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement. How can I do this in LaTeX? If I place a qed-box at the end of ...
7
votes
2answers
202 views

Is gather* equivalent to displaymath?

Is gather* with one line of math equivalent to displaymath?
1
vote
1answer
986 views

\allowdisplaybreaks does not work anymore if empheq is loaded

I'm using the package mathtools using the option showonlyrefs. This works fine, however some equation numbers are skipped. If I understood the manual correctly I need to load empheq to fix this. This ...
12
votes
3answers
8k views

A version of colorbox that works inside math environments

I'd like to highlight particular parts of an amsmath environment. Here's a minimal working example: \documentclass{article} \usepackage{amsmath,color} \newcommand{\abs}[1]{\lvert#1\rvert} ...
4
votes
1answer
645 views

Left-hand vertical rule applied to flalign environment with automatic pagebreak

I am referring to the coderule environment (see Override \centering to left justify an image) presented earlier by @TH as answer to the following question: Override \centering to left justify an image ...
6
votes
1answer
1k views

Turn off numbering on unused equations [duplicate]

Possible Duplicate: How do I number equations only if they are referred to in the text? While I am writing a document, I like to use align rather than align* and label them for all ...
1
vote
1answer
2k views

split and intertext

I was wondering if there is a way of introducing intertext within a split environment. I would like to be able to write something like \documentclass{article}[10pt] \usepackage{amsmath, hyperref, ...
14
votes
2answers
4k views

inserting sentences between subequations

My apologies for asking so many questions here. I want to introduce a sentence in between 2 subequations which is not in math mode. Here is the code that I am using: ...
7
votes
2answers
364 views

How to stop fractions in display equations from running into each other?

Is there some standard way to create multiple display equations like the following without having to use: \renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
6
votes
2answers
3k views

Does the intlimits option work in amsmath package?

AMSMath manual states that (1) "sumlimits (default) Place the subscripts and superscripts of summation symbols above and below, in displayed equations." (2) "intlimits Like sumlimits, ...
10
votes
4answers
20k views

side-by-side equations, with equation numbers for each

The align command from amsmath allows me to put two equations side-by-side: \begin{align} x = y && a = b \end{align} Unfortunately for my purposes, this shows both equations under one ...
17
votes
5answers
2k views

Underbrace under sqrt content

I am trying to use underbrace to clarify the arguments to a sqrt. However this causes the square root sign to reach all the way down to the bottom of the text under the brace(s), which is not what I ...
6
votes
5answers
2k views

Breaking up an equation in the align* environment

I'm trying to produce the following formatting without use of all the \quad commands to get the last equation to align nicely across the break up (a(x), b(x), and c(x) are actually really long ...
5
votes
1answer
833 views

Use displaymath shorthand \[ \] for align and other amsmath environments

This question is closely related to this one: Using the displaymath shorthand \[ \] for equation or align instead. I use Multimarkdown (MMD) to generate my LaTeX documents. MMD uses the escape ...
5
votes
2answers
5k views

Must be equal and other stacked math symbols

Several times already I wanted to express something like ! A = B or n->0 X ------> oo in a math environment. How do I achieve this? On a related note: What is the correct term for ...
5
votes
1answer
5k views

How can I use an align environment flush right?

Is there an option analogous within the align environment to the left align for right align, i.e. fralign. MWE: \documentclass{article} \usepackage[fleqn]{amsmath} % Instead have [freqn]. ...
59
votes
2answers
23k views

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} ...
4
votes
4answers
1k views

Tagging equations with three \ast

I want to tag some equations with \ast, for \ast and \ast \ast it's good, but for the third I would like to have the three \ast placed like in a triangle, so two \ast at the bottom and the third in ...
23
votes
4answers
6k views

Separate labels in cases

As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package). Ideally, I would like to be able to write something like ...
21
votes
5answers
720 views

Conflict: onlyamsmath and TikZ

To force myself and collaborators to only use AMS-Math commands, I load this package in the preamble: \usepackage[all,warning]{onlyamsmath} However, when this is combined with TikZ, I get into ...
6
votes
1answer
7k views

how to write maximize over multiple conditions

All, I know how to write an equation if I am maximizing over one condition. For example, $\max_{0 \leq x \leq 1} f(x)$ But I an not sure how to write it if I have to maximize the function over two ...
4
votes
2answers
4k views

Multiple Tab stops in Math Split?

I am using mathmode with split. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more. \[ \begin{split} some& ...
2
votes
2answers
216 views

How can I properly reference equations numbered by default in an align block?

I have two equations in an align block: \begin{align} 4x-3y&=2\\ 3x+2y&=1 \end{align} Both of these equations are numbered (1) and (2) respectively. In a sentence beneath this align ...
7
votes
1answer
23k views

New line in math mode and indent this line

How can I have a indented new line in math mode? The line after \newindentedline should be indented and start in a new line. \[ X \subset Y \Rightarrow \forall x \in X: x \in Y \newindentedline ...
2
votes
2answers
5k views

Narrower columns in align environment

How to set the column width in the align environment. I've got a align environment to demonstrate how to do division by hand so the columns always contain only one number, but the columns are much ...
1
vote
1answer
1k views

Error using the package makeidx

My index is working smoothly with the command \makeindex alone. However, when I put \usepackage{makeidx}\makeindex compilation gives two errors as 1. Command \see already defined. ...
10
votes
2answers
3k views

Force line break inside a \lim argument in align environment

Inside an align environment I have a \lim with two variables which should be displayed in two lines: \begin{align} ... f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\ ...
5
votes
1answer
22k views

Any reason why \blacksquare and \box are causing errors?

I am using the amsmath package. I just want a black box at the end of a proof, right-justified. \blacksquare and \box both cause errors. Actually, I'd prefer a musical quarter note if that's ...
8
votes
2answers
405 views

Is $ … $ okay to use, while $$ … $$ is not recommended? [duplicate]

Possible Duplicate: Are \( and \) preferable to $? According to Why is \[ ... \] preferable to $$?, $$ ... $$ should not be used. My understanding is, it is because $$ ... $$ is not ...
28
votes
4answers
2k views

Why do arguments to nested \tilde or \breve commands reappear when amsmath is used?

On LaTeX-Community.org I've noticed a strange problem with nested \tilde and \breve commands, when amsmath is used. In this code the X appears also in the output of the second and the third formula: ...
72
votes
2answers
104k views

How can I get text underneath an underbrace?

I am looking to do something of the following: To get text underneath the underbrace. Is it involving \stackrel or some sort of similar command?
5
votes
2answers
576 views

pmatrix without changing font size

In Plain TeX with the amstex package, is there a way to tell \pmatrix to NOT change font size? E.g. when I do: \sum_{\pmatrix a \\ b \\ c \endpmatrix} I end up having to insert \scriptstyle three ...
2
votes
2answers
8k views

How can I use multline within an align environment?

I've been looking around and I know that there are possibilities to mimic the multline environment within the gather or align environments, or by using multlined but not in a way that I like, I think. ...
5
votes
6answers
6k views

How to type primed sum?

I need to type a "primed sum" (a summation symbol with a ' at the top right corner of the summation symbol) in latex. How can I do this?
4
votes
3answers
312 views

Format math definition

$$ A = \{ x_{1}y_{1}z_{1}...x_{k}y_{k}z_{k} : x_{i}, y_{i}, z_{i} \in \{0, 1\}, k \geq 1, \text{ and } x < y < z \text{ where } x = x_{1}...x_{k}, y = y_{1}...y_{k}, \text{ and } z = ...
16
votes
7answers
2k views

Aligning polynomial terms

In LaTeX align, I'm struggling to align polynomial terms and assume there's an easy way to do it. But I cannot find the simple/elegant solution. What I would like is something like this: x1 + x2 ...
20
votes
1answer
3k views

Changing the appearance of equation numbers with amsmath

For equations in my document, I use the facilities of the amsmath package. In order to make the equation numbers more eye-catching, I want them to be in boldface and a little bit indented to the ...
8
votes
5answers
10k views

How to properly subscript in a superscripted fraction?

the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...
15
votes
3answers
43k views

How can I use an align environment flush left?

Is there a way possible to imitate the align environment for math mode commands, without having all writing being placed toward the center on the output page? MWE: \documentclass{article} ...
3
votes
2answers
586 views

Adjust vspace between multiple align environments

I am using some independant align environments directly one after the other one and it produces some nasty space between them. Is there any workaround to shrink the size of the space a little bit? ...
10
votes
1answer
418 views

Conflict between amsmath and pdfcomment

I use both amsmath and pdfcomment in one document. This leads to the references produced by (\ref{}) to appear like (zref@1) instead of numbers like (1). Without amsmath or pdfcomment this problem ...
3
votes
2answers
2k views

Force aligned equation (all the way) to the left?

How do I force the following aligned output all the way to the upper left (right next to the enumerated list item)? I still want the 2nd and 3rd lines to be aligned with it's above equal sign. ...
3
votes
1answer
19k views

Best way to typeset the identity operator, or unit? [duplicate]

Possible Duplicate: Blackboard bold characters I have seen the unit (or identity operator) typeset via \newcommand{\unit}{1\!\!1} Is this really the best way to get a double-stroke 1? ...
5
votes
1answer
613 views

AMSsymb in ConTeXt

Where can I find some of the functionality, namely the symbols, from the LaTeX package AMSSymb in ConTeXt? For example, how do I place a \blacksquare? Is there an equivalent in ConTeXt? I didn't find ...
3
votes
3answers
2k views

Too much space between full paragraph and subequations env

I have a document using subequations and the parskip package. If the paragraph before a subequations environment is completely filled up to the last line, then additional vertical whitespace is ...
7
votes
4answers
1k views

Obstacles to simulating an amsmath matrix by a TiKZ matrix of math nodes

I'm trying to figure out a TiKZ-based solution to this problem involving arrows between matrix rows. To this end, I would like to at least be able to make a matrix of math nodes simulate the behaviour ...