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

learn more… | top users | synonyms

4
votes
1answer
1k views

How to typeset elementary combinatorics?

How would one typeset basic combinatorics, like variation and combination? For example, when using \(V'_n^k\) for variation with repetition, n and k are not vertically aligned. Something like ...
4
votes
3answers
7k views

amsmath - multiple labels in one equation

I would like to use multiple labels in the same equation when using amsmath. Basic latex already has this feature, but not amsmath, which seems to manipulate labels in complicated ways. Is it possible ...
5
votes
2answers
9k views

Set horizontal width of matrix in amsmath [duplicate]

Possible Duplicate: Is there a way to slightly shrink a table, including font size, to fit within the column boundaries? I have a 16x16 pmatrix. How do i set the width so it doesn't ...
7
votes
3answers
3k views

Implication symbol

I'm looking for a good implication symbol. I understood I was supposed to use \to, but it's longer than \land and \lor and it kinda bugs me. Is it possible to type an arrow of the exact same length?
9
votes
1answer
762 views

ignoring vertical space due to underbraces in cases environment

In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried \smash and negative ...
16
votes
4answers
17k views

Diagonal dots spanning multiple lines/columns of a matrix

I'm filling in large sparse matrices, for example \begin{bmatrix} 0 & -2 & 1 & & -1 & 2 \\ 2 & \ddots & \ddots & \ddots & & -1 \\ ...
5
votes
1answer
985 views

How to redefine \label command in align environment

I have a problem with the redefinition of \label inside of the align environment. The goal is to allow a different behavior of the label command inside of the align environment than outside of it ...
10
votes
2answers
976 views

Custom alignment of columns in align environment

I need to typeset two columns of equations, each row typeset with an equation number to the right as with an ordinary equation. The first column must be centered, and the second column must be ...
6
votes
4answers
1k views

Resetting alignment in the align environment

I have a few aligned lists of coefficients. One set of coefficients has three columns and the other has four. At the moment I display them with two align environments: \begin{align} \gamma_1 ...
9
votes
2answers
2k views

Compact collapsing of equations and paragraphs

I want to duplicate the compact look of G. K. Batchelor's fluid dynamics book. Where a paragraph terminates such that the mathematical expression can collapse up into the vertical space of the ...
3
votes
1answer
4k views

Problem with latex2rtf. Unknown commands. How to solve it?

I'm having some difficulties to convert a TeX document into an MS-Word readable one. I'm trying to use latex2rtf but I had this output (pastebin). Looks like the main problem is some unrecognized ...
5
votes
2answers
12k views

Theorem environment - line break after label [duplicate]

Possible Duplicate: ntheorem environment with indentation Skipping line after “Proof” in proof environment \begin{theorem}[label] The theorem text. \end{theorem} I want to ...
5
votes
2answers
950 views

Theorem environment - centered line

\begin{theorem} Let apples be fruits and let tomatos be a veg. Then the following is true: \centerline{apples are veg} \end{theorem} I just read that one shouldn't use centerline because it's TeX ...
8
votes
3answers
553 views

Clash between aligned environment and TikZ?

The following code mis-renders the multi-line label: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} \begin{equation} \begin{aligned} \begin{tikzpicture} \node (A) at ...
1
vote
0answers
70 views

Referring to a whole eqnarray [duplicate]

Possible Duplicate: numbering few equations together I've got an eqnarray with multiple equations and a label on it, e.g.: \begin{eqnarray} \hat{\delta}(q_0,\epsilon) & = & ...
1
vote
1answer
7k views

Left-align {align} environment

I have a problem writing my report in LaTeX. I dearly need this block of equations to be aligned on the left side of the page, in fact I want all my equations to be left-aligned and have the option of ...
1
vote
1answer
376 views

Display math formula in the middle of a line

I am writing a report using some template with amsmath. The equations are displayed in a way that they are flushed to the left with certain space in front. Does anyone know how it happens? How can I ...
3
votes
1answer
858 views

Redefining the amsmath equation* environment

For the background to this, see my previous question I've been trying to make changes in my LaTeX document so that math displays in black and text in red. Thanks to Stefan Kottwitz and Torbjørn T. ...
9
votes
3answers
24k views

Clean-Looking Piecewise-Defined Functions

I want to write a clean-looking piecewise defined function. There's a similar post here: How to write a function (piecewise) with bracket outside?, but I have follow-up questions. The two options I ...
4
votes
2answers
413 views

Making \[ and \] behave as \begin{gather*} and \end{gather*}

I'm trying to redefine \[ and \] so that they behave as \begin{gather*} and end{gather*}. I've been doing this using \DeclareRobustCommmand; however, when I try to compile the following minimal ...
16
votes
2answers
12k views

Normal subgroups

To typeset that H is a normal subgroup of G, I would use H\unlhd G. However, the result doesn't satisfy myself, since the G seems too close to the triangle: Adding a space \ makes "too much ...
10
votes
2answers
193 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
15
votes
1answer
823 views

How does this macro for augmented matrices work?

I've used this code I found somewhere to typeset literally hundreds of augmented matrices, and it's been amazing: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} ...
7
votes
1answer
1k views

Conflict: kluwer and amsmath

When I try to use the document class kluwer together with amsmath there seems to be a conflict. Is is possible to avoid this conflict? I have tried to add \let\iint\noexists before loading amsmath as ...
3
votes
2answers
768 views

Amsmath, spacing, left alignment

It was recommended that I include amsmath package to use \tag{} (which works). When I do this however, it somehow changes my predefined spacing; I would like everything to be left aligned, no left ...
5
votes
1answer
3k views

\alert within align in Beamer

I am trying to use alert within the AMS-math align environment, so that sets of equations uncover sequentially and are highlighted. I would expect something like this to work: \begin{align} ...
11
votes
1answer
2k views

Referencing subequations with cleveref

I try to refer to the parent number of subequations with \cref from the cleveref package. However, I would like to change the output "eq. (...)" into "eqs. (...)" when I refer to parent numbers ...
8
votes
4answers
1k views

Better transitive closure of labelled arrow

I think the answer will be easy, but I haven't found it yet: I use labelled arrows like \xrightarrow\tau a lot. Sometimes, I need the transitive closure of such relations, which I write ...
7
votes
1answer
256 views

Using “found” code to typeset augmented matrices, want [] instead of ()

Here's a minimal example of what I'm doing presently: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols ...
2
votes
1answer
354 views

Unwanted line breaks after equation tag when using fleqn and leqno

When you use fleqn and leqno and assign your own equations tags with \tag to equations in environments such as gather and align and you assign a tag with a certain length, then there's a line break ...
1
vote
1answer
2k views

Strange Underfull \vbox problem [closed]

This is the code: \[ \left. \begin{aligned} K_1 \cos{\theta^{(1)}_4} - K_2 \cos{\theta^{(1)}_2} + K_3 & = \cos(\theta^{(1)}_4 - \theta^{(1)}_2) \\ K_1 \cos{\theta^{(2)}_4} - K_2 ...
2
votes
1answer
3k views

\numcases with \tag

I would like to label some cases with specific tags, and was hoping for something like \begin{numcases}{A = } \frac{r}{a} & r > a \tag{G} \\ \frac{a}{r} & r < a \tag{H} \end{numcases} ...
0
votes
0answers
110 views

How to type hyperbolic secant (sech)? [duplicate]

Possible Duplicate: Define additional math operators to be typeset in roman I'm trying to type the sech (Hyperbolic Secant) in LaTeX, but when I do use \sech(z) it will be known as an ...
6
votes
1answer
910 views

Strange behavior of XITS Math in XeLaTeX for \underset and \underaccent commands

Prompted in part by the question Is there an "underscript" command?, I started wondering if the \underset (from amsmath) and \underaccent (from accents) commands work equally when using XeLaTeX ...
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
10k 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 ...
8
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:
12
votes
6answers
26k 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
197 views

Is gather* equivalent to displaymath?

Is gather* with one line of math equivalent to displaymath?
1
vote
1answer
968 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 ...
11
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
632 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
347 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
18k 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 ...