{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
468 views

unicode-math breaks \DeclareMathOperator

Problem Statement I'd like to introduce a new math operator (the divergence operator). Unfortunately the macro I'd like to use is already defined, so I "free" it using \let\div\undefined and ...
5
votes
1answer
145 views

How to replace $$ .. $$ by \[…\] [duplicate]

Possible Duplicate: replace often used Tex-Literals ($ and $$) for math regions into \( or \) and \[ or \] When I started using latex, I wrote mathematical formulae separated from ...
5
votes
3answers
2k views

Use mathematical equation in caption with onlyamsmath

Apparently it seems to raise a warning »LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.« if I want to use a mathematical equation in a figure's caption and I use the ...
5
votes
2answers
116 views

Missing number, treated as zero with amsmath and calc

This simple code produces "Missing number, treated as zero" \documentclass{article} \newcounter{test} \newcounter{testtwo} \usepackage{calc} \usepackage{amsmath} \begin{document} ...
5
votes
3answers
154 views

Help with left align?

I was trying to left align this equation by using code $$\begin{equation} \begin{aligned} E_\theta(L(\delta_1(X)) &=& E_\theta[(1-\frac{b}{a+X^2}) X-\theta]^2\nonnumber\\ ...
5
votes
2answers
213 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 ...
5
votes
2answers
122 views

How to format a multi-line statement with a label

I am trying to format a multi-line statement with a label. \documentclass{article} \usepackage{amsmath} \usepackage[showframe,pass]{geometry} \begin{document} Let $P(n)$ denote the statement that ...
5
votes
2answers
3k views

Equation: How to create nested/multiple cases in LaTeX to align the qualifiers

I am having trouble with a particular equation as the cases are nested within a case. It would also be cool if I could align the qualifiers. I tried to post an image of the equation but I could not ...
5
votes
1answer
718 views

Seeking advice for my clumsy math homework template [closed]

I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
5
votes
2answers
331 views

Using align within savebox?

I have a custom environment called 'quiz' which puts its input into a savebox and then uses it later depending on a package option. The code works fine, unless I use an align* environment in which ...
5
votes
3answers
768 views

Creating a \precneq symbol

Going through the comprehensive symbols list, and also Detexify, we see that through various packages (mostly amssymb) we can get the symbols \prec Precedes. Unicode U+227A: ≺ \preceq Precedes or ...
5
votes
2answers
4k 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}}$ ...
5
votes
1answer
175 views

Define certain letter in math-mode to be always non-italic

Imagine I have a 500 page book about complex numbers. But I always wrote just j in math-mode as the imaginary unit. But I should have written \mathrm{j}. Is there a command I could write into my ...
5
votes
4answers
110 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
5
votes
1answer
233 views

Why does \begin{align} &&&\cr \end{align} give “Missing number”?

Consider the following MWE: \documentclass{article} \usepackage{amsmath,bbm} \begin{document} \begin{align} &&&\cr \end{align} \end{document} It generates both the "Missing number, ...
5
votes
2answers
3k views

How to get align or similar equation environment to use the whole line instead of centering around the equality sign

I'm creating a Beamer presentation in which a line in the equation environment should fill the whole screen and should not only be centered arround the equality sign. I think this looks nicer and is ...
5
votes
1answer
306 views

Declaring a newcommand for a single letter in mathcal

I am trying to enter a command that references the \mathcal font for single letter in LaTeX. Below is what I am trying and it doesn't seem to work, would appreciate any help. \newcommand {\until} ...
5
votes
2answers
398 views

Combined use of [fleqn] and \qedhere

It seems there is an issue within the ams packages, which results in an incompatibility between the fleqn option, and the \qedhere command. If those are used together, the qed symbol is flushed to ...
5
votes
2answers
7k views

Problem with \sum subscript

When I use the code below the subscript j appears to the side of the sum symbol, not underneath. Has anyone got any idea what I'm doing wrong? \begin{equation} ...
5
votes
2answers
612 views

Any way to change color of \not

I often use command \not just to cancel off symbols in my equations and i would need an advice on how to change the color of this command.
5
votes
1answer
584 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 ...
5
votes
1answer
1k 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 ...
5
votes
1answer
4k 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 ...
5
votes
3answers
110 views

Size of a vertical bar symbol

I am using stix fonts to type a formula containing bra-ket notations from quantum mechanics. I observe that the size of a vertical bar is either too small: \big\}\lvert\psi\rangle , or too ...
5
votes
2answers
110 views

To get one line of equation disregarded during the alignment process in align environment

Couldn't find any answer to this question on anywhere. I have this one particular solution in my hands, which helps only if the equation to be disregarded for alignment is the first or the last of the ...
5
votes
2answers
287 views

Extend box around equation to the entire line

My question is simple: I use \boxed from the amsmath package and so far so good. The single issue I have is that I use the boxed environment on its own line, but the box is only around the equation, ...
5
votes
4answers
243 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...
5
votes
2answers
157 views

Matrices with llncs class

I have the following snippet to display a matrix equation using the regular amsmath packages: \begin{equation} S(x) = \begin{pmatrix} 0 & 0 & 1 & 0 & 0 & 0 & 0 & 1 & ...
5
votes
3answers
150 views

Aligning Summations Over Differing Numbers of Sets

I'm trying to align a set of constraints for a linear program formulation. The issue I'm having is that some of the summations are over two (or more) sets, while others are only over one. This makes ...
5
votes
3answers
3k views

Left-align math with fleqn inside split environment

Below, how would I move the first math-line left so that a^2 left-aligns with where? \documentclass{article} \usepackage[fleqn]{amsmath} \begin{document} \setlength{\parindent}{0pt} Some text ...
5
votes
1answer
3k views

Making large substack more readable?

I have the following code: \[\mathcal{I}(A,B) = \inf_{\substack{h : M\times I\rightarrow M\\ h(\cdot,t) \;homeomorphism\\ h(x,0) = ...
5
votes
2answers
613 views

Multiple split equations

I find myself again and again using a combination of the gather and aligned environments. So it would be nice to not have to write so much. In particular, it is often only clear after writing the ...
5
votes
1answer
100 views

Incompatibility of zref-perpage and amsmath

If amsmath is loaded after zref-perpage, zref-perpage will not reset counters in each page. What should be done to fix this except changing the loading order: \documentclass{article} ...
5
votes
1answer
242 views

Centering first line of an align environment (Simulating \multicolumn{2}{c})

I often need align environments where the first line is centered, e.g., when first introducing the types of the functions to be defined, then defining them. I essentially want to obtain the effect ...
5
votes
2answers
74 views

How to mimic spacing around \bullet with \DeclareMathOperator?

I'm trying to define \conjunction by means of \textbullet instead of \bullet, since the latter looks too big in logical formulas. How can I make the spacing around \conjunction to behave like the ...
5
votes
2answers
601 views

Number of Equation: 1, 1a, 1b

Following Problem: I have a PDE and two boundary conditions what i actually want is: PDE (1) BC1 (1a) BC2 (1b) and what i have is: PDE (1) BC1 (2a) BC2 (2b) is there something which provides a ...
5
votes
1answer
242 views

Missing $ inserted error when using \frac inside subequations environment?

Here's a MNWE (minimum not working example): \documentclass[12pt,letterpaper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
5
votes
1answer
79 views

How can I align the first row of these equations?

\documentclass[ngerman]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
5
votes
2answers
255 views

Add equation name besides equation number (so that \eqref inserts only the number)

I am trying to add equation names besides the equation numbers but, in addition, in such a way that \eqref inserts just the number. Inspired by the top answer in Add equation name underneath equation ...
5
votes
4answers
135 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad ...
5
votes
1answer
3k views

`missing $ inserted` Error when not putting $ before and after array environment

Considering this answer I added $ before and after the array, i. e. before \begin{array} and after \end{array} in the following code. Then the former missing $ inserted Error was gone. ...
5
votes
1answer
131 views

How to get proper spacing when typesetting an expression such as $f\left(\frac{y}{2}\right)

I am trying to typeset the value of a function $f$ for $x = \frac{y}{2}$ (or something other which requires more vertical space). To get properly sized parentheses I tried: f\left(\frac{y}{2}\right) ...
5
votes
1answer
115 views

Horizontal alignment of long equations

I hope that the following question is not a duplicate but I could not find a definite answer. I'm trying to obtain the the same result as Formula (1) in the picture next, but I feel that my approach ...
5
votes
1answer
769 views

How to automatically scale `\mid` within delimiters

\mid within \left and \right delimiters is expected to be automatically scaled, but today I noticed such behavior: L = \sup \left\{ \sum_{x \in F} a(x) \mid F \subset X,\, |F| < \infty \right\}, ...
5
votes
3answers
361 views

Conflict between amsmath and ntheorem, or, how I fell into an infinite troubleshooting loop

There are similar questions on this site, but nothing quite fixed this problem for me. When using amsmath with ntheorem I get either a missing end of theorem symbol (when my theorem ends with an ...
5
votes
2answers
769 views

LuaLaTeX AMS-Typesetting bug with sum\limits under sqrt

it looks as if there is a bug in math-typeseeting with lualatex using ams. An minimum example showing this is \documentclass[12pt]{report} \usepackage{amsmath} \begin{document} This looks OK, but ...
5
votes
1answer
3k views

Bad math environment delimiter: ntheorem with thmmarks, Display math and split

Using a combination of \usepackage[amsmath,thmmarks]{ntheorem}, display math enclosed in \[ \] and a \begin{split} environment inside it, pdflatex freaks out completely: ! LaTeX Error: Bad math ...
5
votes
1answer
233 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 ...
5
votes
1answer
169 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 \\ ...
5
votes
2answers
802 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 ...