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

learn more… | top users | synonyms

17
votes
3answers
3k views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
6
votes
1answer
239 views

Why “p” in pmatrix?

I am using the command \begin{pmatrix} [...] \end{pmatrix}. I wonder why this command is not just called \begin{matrix} [...] \end{matrix} and why a "p" before "matrix".
3
votes
1answer
61 views

Hyperref refer chapter and page in text

\documentclass[oneside,10pt]{book} \usepackage{amsmath, amsfonts, amsthm, amssymb} \usepackage{hyperref} \usepackage{blindtext} \begin{document} \chapter{something} \blindtext[1] \chapter{...
3
votes
2answers
173 views

How to give some text an equation number

I want to be able to write the following in LaTeX We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that $B^*=B$...
1
vote
1answer
120 views

Left align text in equation environment (no use of align environment)

I understand that you can left-align text using \intertext{...} inside \begin{align}...\end{align} environment, e.g. this answer. Is it possible to do the same but inside \begin{equation}...\end{...
6
votes
3answers
97 views

How to align equations in two columns?

Well, my problem is I'm trying to find a way to write many equations and divide these into columns as you would when writing on paper, cut in some part and continue. I have achieved almost using the ...
8
votes
1answer
2k views

Is there any AMS TeX or LaTeX macro for background color in math-mode

Is there any way to display math expressions with a background color (highlight) using AMS-Tex or AMS-LaTeX . For example, using AMS-TeX/LaTeX, we can display a math expression in font color using \...
1
vote
1answer
46 views

Missing } inserted and missing $ inserted using amsmath package

I'm using Texmaker 4.5 over Ubuntu 15.10 and trying to compile some amsmath code: \begin{eqnarray*} $\underset{\mathbf{S}}{\operatorname{arg\,min}}$ \displaystyle\sum\_{i=1}^{k} \sum\_{\mathbf x \...
1
vote
1answer
52 views

Align/Array equation - explain the options

I have searched and found a solution to a problem I had here: Horizontal alignment, but now I have a follow-up question (and can't comment there because I have little reputation): The code in the ...
3
votes
1answer
36 views

\setmainfont breaks \DeclareMathOperator

\DeclareMathOperator works fine without \setmainfont. \documentclass[a4paper]{standalone} \usepackage{amsmath} \DeclareMathOperator{\grad}{\nabla} \usepackage{unicode-math} \begin{document} $\nabla \...
2
votes
2answers
183 views

Auto-linebreaking in underset

I often find myself writing explanations to passages in (in)equality chains directly under the (in)equality signs, by putting an underset which puts a vertical line starting from the sign and going ...
8
votes
3answers
113 views

How do I display verification of propositional logic in this way?

I want to typeset something like the following picture. I came up with \documentclass[oneside,12pt]{article} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
22
votes
2answers
605 views

Is eqnarray really obsolete?

I just learned in eqnarray vs align that eqnarray should be avoided in general. Ok, so I started looking at my documents to get rid of it and (as suggested) use some environment of the amsmath package ...
3
votes
1answer
25 views

Centering text in aligned environment

How can I center the text between the inequalities? ATM it seems that they are right-aligned. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{aligned} 15 ...
2
votes
2answers
64 views

math: \textstyle won't work

I'm trying to reproduce this math thingy in LaTeX: What I've currently done is this: \documentclass[oneside,12pt,pointednumbers]{scrartcl} \usepackage[ngerman]{babel} %Deutsche Sprachunterstützung ...
3
votes
2answers
42 views

Alignat environment changes its behaviour in one document

I have the following problem: I am writing my PhD and the alignat environment changes the behaviour during the document. Here is an example: \documentclass[12pt, a4paper]{book} \usepackage[utf8]{...
1
vote
1answer
50 views

Align a cases equation with another equation vertically on the same line

I am using the following to align the two equations. However, they are not vertically on the same level. How should I fix it? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
2
votes
1answer
169 views

Aligning equations in tabular with aligned environment

I am trying to align equations in a tabular environment. Having read that align and align* don't work in tabular, I found this thread: Aligned equations in tables which suggests using the aligned ...
0
votes
1answer
26 views

How to used aligned environment and enable equation number

How is it possible to use the aligned environment and enable equation numbering for both equations in the example below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \...
1
vote
1answer
66 views

Use \Updownright between two vertical expressions

I have a long equation \ldots - m \neq 0 \Leftrightarrow \ldots \neq m where \ldots is a long expression. Instead of having this on one line, can I instead format it to obtain \ldots - m \neq 0 \...
28
votes
1answer
10k views

Is there a left-handed equivalent of \implies?

I’m aware of and use the \implies and \iff commands to denote right-handed implication and if and only if (so A=>B and A<=>B). I’ve been looking for a similar command for left-handed implication (i....
0
votes
2answers
193 views

How to typeset a math proof in beamer that displays line by line

I'd like to display a step-by-step proof of a mathematics result. I want to have steps following other steps inside amsmath's align environment, except I want to \pause the slide after each line in ...
1
vote
2answers
56 views

How can we force one line proof environment to stick to its associated theorem environment?

In my LaTeX document, some of the proofs are one-liners: \documentclass[letterpaper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{lipsum} \theoremstyle{plain} \newtheorem{theorem}{...
1
vote
1answer
77 views

multi line math in pgfplots labels

Quick and maybe easy question, did some research on my own but didn't lead anywhere... Is there a way to use a split or multline environment inside a pgfplot label? Maybe ditching the label altogether ...
3
votes
3answers
36 views

Error with ifacconf.cls and subequations with more than twelve equations

I'm working on a paper for an IFAC conference for which you're supposed to use their ifacconf.cls, resulting in a fairly standard layout. However, you get an error when you use subequations (amsmath) ...
2
votes
0answers
42 views

too much spacing between equations and text if line before equation is full [duplicate]

I have a problem when equations appear in the text without a linebreak. It seems like an additional spacing before an equation is inserted, when the line before the equation is just full until the end....
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$\...
4
votes
2answers
49 views

Not getting alignment that I want in an alignat environment

In the following display, $+ \frac{1}{4!}$ in the third line of the alignat environment should be aligned directly below $+ \frac{1}{2!}$ in the second line. Depending on the spacing in the corrected ...
0
votes
1answer
48 views

Use upright font (no italics) with svjour3 (springer)

I cannot find how to do that automatically for all the theorems in my latex document with the class svjour3 (provided by Springer). I use amsmath too in my document.
1
vote
1answer
115 views

TeXworks compilation error when using ^ as a plain text

In my TeXworks (MikTeX 2.9) editor, the following file compiles correctly. But when I change sin-1(x) to sin^-1(x) the following error occurs. I thought TeXworks would treat sin^-1(x) just as a plain ...
5
votes
1answer
67 views

Underbrace overlapping text

I am trying to type the equation in the figure below. The text on the brace is long and it does not wrap around. Can you help me to solve the problem? Thanks. Equation: \documentclass{article} \...
8
votes
1answer
125 views

How to raise the output of \genfrac?

I want to write rational numbers in mixed-numeral notation. To do so, I currently use \tfrac (AmSLaTeX): \frac{5}{4} = 1\tfrac{1}{4} But the fractional part is still too big for my taste. Therefore ...
3
votes
1answer
43 views

prevdepth related error only in case of abscence of whitespace

In the file given below, I am using macros for equations and their environment. The equations use breqn package for breaking them when the width available is not sufficient. I am getting the error ...
11
votes
3answers
4k views

Why doesn't lineno number a paragraph when it is followed by an indented equation?

While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when a space is included, e.g. the ...
6
votes
1answer
65 views

Having regular text within a lemma

I want the following lemma: Given k\"ahler metric $g_{\al \overline{\be}}$ with associated Ricci curvature $ \text{Ric} =R_{\al \overline{\be}}$ the Ricci form defined by \begin{equation*} \p (X,Y)...
4
votes
2answers
464 views

makeindex doesn't work

I have a file statuts.tex, and I would like to add indexes. Somebody says indexes belong to ams packages, so I did the following: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{...
2
votes
1answer
82 views

Monospace font in cases environment

I have this code: \[ text \begin{cases} text, text \rightarrow text\\ text \rightarrow text, text, text, text text \end{cases} \] ... \[ text \begin{cases} text text \rightarrow text, text text, text\...
3
votes
4answers
186 views

“Such that” typesetting for multi-variable equation having two variables after the pipe

What if I have a multi-variable equation and I want to put two 'given that' conditions? For example, say an equation contains two variables 'x' and 'y' and I want to state its values after the pipe, ...
23
votes
4answers
7k 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 \...
6
votes
1answer
1k views

Can't use some AMS binary operators

I'm using the amsmath package, and I want to put in a sentence, the not similar binary operator. I tried this: ... bla bla $ a \nsim b $ bla bla ... I get the error: "Undefined control ...
2
votes
0answers
30 views

What is the difference between \begin{gather} and \begin{gather*}? [duplicate]

I guess the asterisk has a general meaning at that position and probably should know it, but I just can't find it in amsmath manual.
5
votes
3answers
200 views

Split equation using alignat*

Consider the following MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} (b_{t+1}) &:\quad & \left(\frac{\beta}{1 + \gamma}\right) E_{t}\left\{\...
5
votes
1answer
96 views

How to get the straight vertical line next to derivatives?

I am trying to get this to display: My current attempt is : \begin{equation} \begin{align} \frac{\dd{x_c^{*}(t,u)}}{\dd{u}}=\gamma + \alpha \lambda \{[r(t)-x(t,0)]\\ + \frac{1}{1+\alpha\beta\...
2
votes
1answer
58 views

Spacing before parenthesis in math mode

Suppose, I have something like \overline{q}_{l m_1}'(i) \overline{q}_{l m_2}'(i) \overline{q}_{l m_3}'(i) Now, this renders to which looks rather unpleasant. How can I reduce the spaces in front ...
3
votes
2answers
168 views

How to display an integral equation in LaTeX?

I want to display something like: My current attempt is : \begin{equation} Z=min E \int_{0}^{\infty} exp(-\rho t)\{ \alpha^2[r(t)-x(t)]^2+[\lambda ^ {-1}\frac{\dd{x(t)}}{\dd{t}}]^2 \} \dd{t} \end{...
5
votes
4answers
189 views

Annoying long equations in LaTeX

I am giving up on this long and annoying equation. I tried in so many different ways to try to fit into my page, but no success so far...Any suggestions, please? How to break down this long equation ...
8
votes
1answer
48 views

How to define ReDeclareLargeMathOperator

I want alter an existing math operator by applying a macro to it. In the MWE the \ReDeclareLargeMathOperator applies the \ProcessSymbol macro which in this example changes the color of the symbol as ...
4
votes
1answer
94 views

Amsmath Cases syntax

The amsmath cases environment seems to require being placed within \[...\]. What is that syntax? Amsmath documentation does not include these square brackets, yet cases won't compile without them.
3
votes
1answer
109 views

Why does whitespace above \vdots disappear in bmatrix?

While creating presentations with beamer, I have the problem described in broken matrix gaps in brackets. Using the solution proposed by Loop Space, I discovered that \vdots have an annoying ...
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 ...