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

learn more… | top users | synonyms

5
votes
2answers
297 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
797 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} ...
9
votes
3answers
18k 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: ...
10
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
554 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
698 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
592 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
324 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
657 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
388 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
25k 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
8k 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
479 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
713 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 ...
4
votes
2answers
709 views

Varying number of columns in multi-equation environment

Consider the following document: \documentclass{article} \usepackage{amsmath} \newcommand{\expr}[1]{\begin{pmatrix}x_#1\\y_#1\end{pmatrix}} \begin{document} \begin{equation} c = a \cdot b ...
12
votes
2answers
8k views

Putting equations in \intertext to annotate a proof

I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
11
votes
2answers
643 views

How to do grid typesetting with amsmath?

Following the advice in the answer to this question, I did set a huge negative \lineskiplimit. However, it turned out that align got quite upset about this. So my question is: what would you ...
5
votes
1answer
267 views

Can anyone explain why setting \lineskiplimit breaks align?

OK, so this is a follow-up to one of my previous questions: If you uncomment the \lineskiplimit line, LaTeX goes crazy. Why? Does anyone have an idea how to fix it (without manually changing ...
4
votes
2answers
2k views

Commutative diagram with parallel arrows in opposite direction

I have a diagram of the following form, written with the package amscd: \begin{align*} \begin{CD} W @>\phi>> X \\ @V{a}V{b}V @V{c}V{d}V \\ Y @>\phi>> Z \\ \end{CD} ...
6
votes
2answers
551 views

Equation environment for centered, equally-spaced columns of expressions

I want a environment for displaying rows and columns of mathematical expressions, such that the contents of each column is centered, and the columns are equally spaced. Rows must have optional ...
13
votes
2answers
14k views

Are \choose and \align incompatible?

I ran across a strange warning when trying to use the math command \choose inside the amsmath package's \align* environment: \documentclass{article} \usepackage{amsmath} \begin{document} ...
6
votes
1answer
1k views

Using \leftroot{}, \uproot{} with closed square root symbol

As mentioned in this answer to Nice-looking p-th roots the amsmath package provides \leftroot{} and \uproot{} which allow you to move the position of the root to the left, and up in small increments. ...
28
votes
1answer
36k views

Aligning equations with text with alignat

I'm trying to add this expression to my work: I understand that the best way to achieve this is using the alignat environment within the amsmath package, so I tried the following: ...
10
votes
2answers
2k views

QED symbol in a custom theorem environment

I have created my own theorem environment like this \newtheoremstyle{mythmstyle}{}{}{}{}{\scshape}{.}{ }{} \theoremstyle{mythmstyle} \newtheorem{mythm}{Theorem} How do I add the QED symbol (the ...
5
votes
1answer
767 views

too many math alphabets used in version bold (can't find a solution)

I know this is a common problem, but I searched for a solution and can't find one. I tried to play with bmmax/hmmax but it does not help. Below is the minimum part of the code to reproduce the ...
105
votes
3answers
40k views

What's the difference between \mathrm and \operatorname?

I apparently can't see the difference in a compilation (pdflatex) between \mathrm and \operatorname. So, as in the title the question is: is there a difference? Which one is preferable in what ...
3
votes
2answers
880 views

Using a math operator inside a 'cases' environment

When I do this: \begin{equation} b_i = \begin{cases} arg \min_{\forall p \in B} d(a_i, p) & \text{if } d(a_i, b_i) < D_{max} \\ \text{undefined} & \text{otherwise} \end{cases} ...
2
votes
1answer
2k views

Independent labelling of lines in a `cases` environment [duplicate]

Possible Duplicate: Separate labels in cases I am looking for a way to number and references independently individual lines in a cases environment. Here is an example: ...
11
votes
2answers
800 views

How can I add clips above matrix?

\documentclass{mwrep} \usepackage{kbordermatrix} \usepackage{amsmath} \begin{document} \begin{equation} \bar{P}= \kbordermatrix{ \mathrm{state} & 1 & 2 & 4 & 3 & 6 & ...
5
votes
1answer
229 views

Centering item along several nodes in bmatrix

How can I position X exactly in the middle of space between a and d column? \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} a & b & c & d & e \\ ...
7
votes
2answers
444 views

Workaround for align without using amsmath

I'm preparing a manuscript for a journal that demands a style file (copernicus2.cls) that's not compatible with amsmath. I want to display some aligned equations, but the lack of amsmath means I can't ...
8
votes
1answer
280 views

\vec{p_{\bar p}} renders strangely

When I do: \vec{p_{\bar p}} I get: instead of with the \vec shifted over a bit. Why does this happen? (Also, \vec{\mbox{p_{\bar p}}} renders identically, even though \mbox{p_{\bar p}} looks ...
11
votes
1answer
10k views

\hbar new letter

I would want to know in which package the symbol \hbar is defined. In fact I ask this because I need to create a letter like \hbar but with 'k' instead of 'h'.
8
votes
2answers
388 views

Writing specific versions of an operator for display and inline modes

I'm busy answering a question by constructing a new math operator that uses the sum symbol and some TikZ placed on top. My answer as it stands can be found here. It looks (I think) pretty good in ...
11
votes
1answer
449 views

What would be the appropriate technique for typesetting a “where” list of variable specifications after an equation?

I'm often finding I need to lay out an equation in a manner resembling the following source: \begin{align*} x = y + z \end{align*} where $y = $ the value of $y$; $z = $ the value of $z$. ...
1
vote
1answer
643 views

Inserting new line under \exists in math mode [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? Minimal example of my document. I'm using redesigned exists. \documentclass{article} ...
21
votes
4answers
2k views

Printing labels along with equation numbers

Working with documents with huge amount of equations it becomes cumbersome to go back and remind yourself what you labeled a certain equation to (I try to name them in a smart way, but there are too ...
5
votes
1answer
2k views

Customize the way eqref works with tags

I'd like to have a version of \eqref that treats equations with a custom tag differently from the usual numbered equation. In particular, if I assign a tag to an equation, I'd like \eqref not to put ...
6
votes
1answer
962 views

Trouble with hyperref when resetting the counter for equations (specifically with the align environment)

I am trying to reset a counter to zero; however hyperref tries to reference previous equations. I am using: \setcounter{equation}{0} And if I have labels in say align environments: ...
3
votes
2answers
959 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
436 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
837 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 ...