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

learn more… | top users | synonyms

3
votes
2answers
990 views

Need help in order to rewrite a proof environment

I have the following document (that I have shortened considerably), and have several proofs that are of type: "Let x be in set A then go on iff this is true iff this is true, etc and end with ...
4
votes
1answer
454 views

How to have a matrix aligned with the rest of an equation?

When I include a matrix in an equation, the first part of the equation is separated off to the left of the page, while the matrix is spaced away in its own centred area on its own line. Here is what ...
2
votes
1answer
847 views

A problem with placing a formula at the left side of the page

I'm having the integral of a function over path C1 and C2 .I want to have both c1 and c2 on the left side of my page but anything I use doesn't work . I tried to put it with the align* , itemize , [...
23
votes
2answers
6k views

mathtools vs amsmath

I read on http://en.wikibooks.org/wiki/LaTeX/Mathematics: The mathtools package fixes some amsmath quirks and adds some useful settings, symbols, and environments to amsmath. It sounds like "...
18
votes
3answers
6k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
1
vote
0answers
83 views

amsmath possible bug: \dot over bracketed \dot{x} [duplicate]

Possible Duplicate: \dot over \vec over : amsmath bug/feature? Is this a bug (I can't see it reported anywhere)? \documentclass{article} \usepackage{amsmath} \begin{document} \[ \dot{[\dot{x}]...
13
votes
1answer
1k views

The font of operator names

What is the correct way of having all operator names be set in, say, sans serif? Saying \documentclass{article} \usepackage{amsmath} \makeatletter \def\operator@font{\sf} \makeatother \...
62
votes
3answers
70k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
12
votes
4answers
4k views

Text above matrices

I am new to latex and I am trying to create So far I have been able to create the matrices, like so: \[ N\textrm{ spectra} \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1M} \\ ...
7
votes
2answers
7k views

Creating non-math mode substitutes for \overset and \underset not dependent on the amsmath package

I have been using \overset and \underset to stack text, e.g.: \documentclass{article} \usepackage{amsmath} \begin{document} $\overset{\text{a}}{\text{b}}$ \\ $\underset{\text{c}}{\text{d}}$ \end{...
25
votes
3answers
28k views

Dot Derivative Discrepancy

I am trying to typeset some higher-order time derivatives using the dot notation, and I've noticed something strange. The expressions $\dot y + y = \cos(\dot y)$ $\ddot y + y = \cos(\dot y)$ give ...
3
votes
2answers
415 views

How to put a full stop at the bottom, not mid-line, after an aligned matrix?

How can I put a full stop at the bottom rather than at mid-line following the end of an aligned matrix expression such as $\begin{pmatrix} x\\ y \end{pmatrix}$?
9
votes
1answer
6k views

line break inside cases environment

I have an equation using a cases environment, with one case with a long description text: \begin{eqnarray*} \begin{cases} 1 \text{too long description of the first case, not ...
15
votes
4answers
2k views

mathop shifts the baseline, DeclareMathOperator doesn't

Here is a little example that illustrates this strange behaviour: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator\foo{\mathbf{l}} \begin{document} baseline$\mathbf{l}$baseline$\...
0
votes
1answer
344 views

GnuPlot terminal LaTeX: \Diamond not centered!

I use the following GnuPlot commands: set terminal latex size 12cm, 7cm set output "4Kalibratie.tex" set nokey set xlabel "kanaal $k$" set ylabel "$E$ (MeV)" plot [0:2000] [0:10] 0.00261937*x+4....
6
votes
2answers
2k views

Relation spacing error using =& in aligned equations

The middle equation in the following example seems to have wrong spacing around the = sign. The only difference is that I used =& for aligning around the = sign rather than &=. This worries ...
2
votes
3answers
9k views

eqnarray with subnumber

When I use eqnarray \begin{eqnarray} eq\\ eq\\ eq\\ \end{eqnarray} this show me eq (1) eq (2) eq (3) In some papers I see this output eq (1a) eq (1b) eq (1c) how I can make this way ?
10
votes
1answer
574 views

Diagnosing the “too many math alphabets” error

I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start ...
89
votes
4answers
24k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
10
votes
2answers
9k views

overset text over equal sign in in an Align environment

Look at the following example \begin{align} & x \\ \overset{\text{some long explanation}}= & foo \\ & = bar \end{align} what is the best way to get the equal signs ...
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 \(V'\...
4
votes
3answers
8k 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
11k 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 overflow ...
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
835 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 ...
17
votes
4answers
21k 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
1k 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 (e.g....
11
votes
2answers
1k 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 left-...
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 ...
4
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
14k 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 have ...
5
votes
2answers
1k 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
570 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) & = & {\color{...
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
404 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
903 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. I'...
11
votes
3answers
32k 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
424 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 ...
17
votes
2answers
14k 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 space"...
10
votes
2answers
196 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
856 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
791 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 ...
6
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} \alert<...
11
votes
1answer
3k 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 \xrightarrow\...
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
363 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 ...