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

learn more… | top users | synonyms

1
vote
3answers
237 views

Does there exist a math version of `multido` command?

I need a command as \hdotsfor and use it in align environment. \begin{align*} X&=a_{11} + a_{12} + \cdots + a_{1n}\\ &\qquad{}+ a_{21} + a_{22} + \cdots + a_{2n}\\ &\text{\multido{}{33}{$\...
0
votes
1answer
1k views

Matrix equation and \notag

My problem is related to the following "equation": \begin{align} \left( \begin{matrix} \shat{X} \notag \\ \shat{X}' \notag \\ \shat{Y} \notag \\ \shat{Y}' \\ \end{matrix} ...
0
votes
2answers
3k views

The argument of foo has an extra }.

I'm trying to write a command that does, effectively, an \fbox in something like an align environment. The following code works: \usepackage{etextools} \makeatletter \newcommand*{\alignedfbox}[1]{\@...
16
votes
1answer
10k views

Span formula over multiple pages.

I've looked through the search but I couldn't find what I specifically want. I have the following \begin{equation} \begin{split} Very long equation \end{split} \end{equation} Now, I have half a ...
2
votes
1answer
980 views

Change the equation number in alignat

I have the following equations with-in alignat environment $\begin{alignat}{4} &p^0\colon\od{u_0(x)}{x} = 0 \quad &\text{with} \quad u_0(0) = 1, \\ &p^1\colon \od{u_1(x)}{x} -u_{{0}} \...
5
votes
1answer
1k views

\listoffigures chokes on inline math delimiters in captions. What is going on?

I'm working on my thesis, and I've realized that, any time I try to use \( \)-type inline delimiters in captions, that pdflatex breaks. While I can weasel out of actually \needing\ math in my captions,...
3
votes
1answer
682 views

Use fleqn with acm_proc?

I would like to use the fleqn option to amsmath package. However, my document class gets in the way: Writing \documentclass[fleqn]{acm_proc_article-sp} I am warned that the global option is ...
17
votes
1answer
17k views

amsmath align environment: row spacing

How can I stretch the spacing between consecutive lines in an align* environment? I have a few lines with \fracs in which both the numerator and the denominator consist of textual phrases, not math ...
8
votes
1answer
19k views

How to shift one equation only towards the left margin

I have an equation extending into the right margin and off the page. I have many equations. For this equation only, I would like to shift it to the left. MWE below. \documentclass[twoside]{book} ...
23
votes
1answer
10k views

\varnothing 'undefined control sequence'

I am using amsmath and all of my math symbols are appearing using $ $ block but \varnothing is undefined. \emptyset works but its symbol is a bit different than \varnothing Note: images taken from ...
10
votes
1answer
51k views

using subequations

I have an equation consisting of two parts and would like to use subequation for that. Here's the code: \usepackage{amsmath} \begin{subequations} \begin{equation} \operatorname{min}_{a,b,c} \frac{1}...
4
votes
2answers
4k views

spacing with wedge and bigwedge with bigger index

I have this math code: \[ \bigwedge_{i,j \in \underline{n},\atop { i \neq j,\atop k,l \in \underline{|\sigma|}}} x_{i,k} \neq x_{j,l} \wedge \bigwedge_{i \in \underline{n},\atop k \in \underline{|\...
21
votes
3answers
11k views

Define pretty sets in LaTeX; esp., how to do the condition-separator?

E.g., I have this set: \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \} Here, I use | as the separator for the condition part. ...
1
vote
1answer
162 views

alignment in align-env: what is aligned in what way?

In this example: \begin{align*} & \lim( \neg ( \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* ) ) & = & \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \...
1
vote
1answer
344 views

combine several align-environments

I want to combine several align-environments but reset the alignment at some point. Esp., I want to combine these: \begin{align*} & \lim(\emptyset) = \ext(\emptyset), \lim(\Sigma^* a_1 \Sigma^* ...
2
votes
2answers
584 views

Why does \everydisplay conflict with gather and multline

When gather* is used together with \everydisplay an error is produced. Is there a possibility to make these work together? Minimal working example: \documentclass{ctexart} \usepackage{amsmath,color} ...
3
votes
2answers
2k views

Why the pmatrix environment get a higher parenthese than pmatrix command?

I found the amsmath package's pmatrix environment have a bit difference with LaTeX's pmatrix command. You can see it from: \documentclass{article} % \usepackage{amsmath} \linespread{1.3} \begin{...
2
votes
1answer
2k views

How to change the position of underset?

In the command: \underset{t \rightarrow x}{\limsup} f(t) = \underset{t \rightarrow x}{\liminf} f(t) I get the {t \rightarrow x} lower under the limsup then the liminf (due to the "p" in limsup). ...
5
votes
1answer
3k views

How to change the way theorems are displayed with LyX?

The theorems are currently all displayed in bold, but I would like to display them in small-caps. My question is much like this one. However, I am using LyX with an AMS style document class, and was ...
7
votes
1answer
783 views

How can I use cross-references and hyperlinks to parts of an align environment?

I'm writing an exercise book, and in some exercises I'll have several numbered equations in an align environment, e.g., (1) x^2+x+1=0, (2) ax^3+2x=0, (3) x^5=2i, (4) x^4=-i, (5) x-1/x=2, (6) cosh(...
19
votes
2answers
4k views

How do I do a one-shot MathOperator?

The amsmath packages helpfully define a macro \DeclareMathOperator which does what it says on the tin: it declares a mathematical operator such as \sin or \Null or whatever and typesets it all nice ...
9
votes
3answers
3k views

Cases with square brackets

How can I subdivide in cases with square brackets? I mean I want to write: ⌈ 2_i if ... rank (q, l) = | 2_i + 1 if ... ⌊ .... with square brackets, not ...
2
votes
2answers
1k views

overbrace but leave spacing in math unaffected

I would like to use an overbrace, but I do not want how much text I put in the overbrace to affect the spacing of the math (i.e. I don't want the the "a" and the "b" to get further apart in the ...
2
votes
1answer
897 views

Aligning equations by row and column — with vertical lines

I want to include two sets of equations side-by-side in a table. Here is my example: \documentclass{article} \usepackage{amsmath} \newcommand{\eqnbox}[2]{ \begin{minipage}[c]{#1\linewidth}\begin{...
8
votes
2answers
1k views

\frenchspacing not setting the space factor codes correctly?

When I type \showthe\frenchspacing, I get the following output: > \frenchspacing=macro: ->\sfcode `\.1006\sfcode `\?1005\sfcode `\!1004\sfcode `\:1003\sfcode `\;1002\sfcode `\,1001 . Shouldn't all ...
13
votes
1answer
3k views

Blank lines in align environment

Is there a way to insert a blank line between two equations in align environment? From what I understand a blank line is interpreted as \par and \par is not allowed in align. Can I disable this "...
6
votes
1answer
2k views

unicode-math and amsmath environments

I'd like to use unicode-math but I've run into some problems. The following mwe, compiles without problems. The aligned environment is used \documentclass{article} \usepackage{amsmath} \usepackage{...
8
votes
1answer
2k views

Multiply defined labels using hyperref

I'm using the stackrel command to indicate important steps in the transformation of formulas. E.g. I would write: A\stackrel{(!)}{=}B so that I can later explain in text why exactly A equals B. I've ...
2
votes
2answers
5k views

\dot over \vec over : amsmath bug/feature?

I was trying to typeset the time derivative of \vec{r}_\alpha, and naively, I put it as an argument to \dot. This does not work: the arrow is not on r anymore. Here is a minimal example: \...
22
votes
4answers
2k views

How can I break an align environment for a paragraph?

I would like to have two displayed equations, broken by a short paragraph, but with aligned equal signs (as if using the align environment). Is there some way to "break" the align environment ...
11
votes
2answers
4k views

What's the difference between align and align*?

After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think. Can you tell me the difference between these two? ...
7
votes
4answers
11k views

Centering split equation

I am quite new to TeX. I want that each line in the following equation be centered, but I cannot find how to do it. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \...
13
votes
5answers
15k views

problem using option fleqn in amsmath package

I'm using the following code. What should I do if I don't want the fixed indent from the left margin of my page? ‎ \documentclass[‎fleqn,oneside‎]{article}‎ ‎\usepackage{amsmath}‎ .... \begin{align} ...
3
votes
2answers
2k views

overbrace/underbrace but with an arrow instead

Is there a similar command to \overbrace{foo}^{bar} but instead of braces, an arrow pointing up/down? EDIT: Here's a little demonstration of how I'd expect something like this to work: And ...
7
votes
1answer
680 views

Change the equation font locally

I want to change the equation font to mathbf in a single equation environment, equation or align. How do I do that? I tried \begin{align} \begin{mathbf} equation1 \\ equation2 \end{mathbf} \end{...
5
votes
3answers
9k views

String/vector concatenation symbol

I'm looking for a math symbol to represent the concatenation of two vectors: if x = (x1, x2) and y = (y1, y2) then x ? y = (x1, x2, y1, y2). I'm not very much at home in vector calculus, so I don't ...
7
votes
3answers
3k views

Strange spacing with gathered and aligned

I often want to list a number of short equations (like the non-zero components of a tensor) under a single equation number. To do this I use combinations of the amsmath environments equation, gathered ...
2
votes
2answers
221 views

How Do I Horizontally Center An Operator Relative To Aligned Equations Above and Below

I want to achieve the following effect in a new enviornment I'm defining where the stuff inside what's supposed to be delimeters is a \begin{aligned} \end{aligned} block. \begin{equation} ...
9
votes
1answer
4k views

Placing equation number on left with reqno option in amsart document class

Is there a way to force individual equations to place their equation numbers (or more specifically the result of a \tag*{blah}) on a specific side of the page regardless of the options to amsart. I ...
7
votes
2answers
1k views

multline inside gather?

I have 3 related equations, two of them do not fit on a single line. I want to present them in a gather-environment, but how to do linebreaks inside equations? multline does not work inside gather. ...
5
votes
2answers
968 views

Multi-column delimiter in align

I want to set the following, but with all the <'s aligned horizontally Source of this failed attempt: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
38
votes
3answers
11k views

Centering \vdots in a system of many equations

I have a system of equations with an arbitrary number of equations (k). I'd like to use \vdots to compactly describe the system, like so: \begin{align*} R(-1) &= \sum_{i=1}^m A(i)R(i-1) \\ R(-...
80
votes
6answers
37k views

How can I write multiple lines in a subscript?

Is there a way to force a line break inside a math mode text? My example: \[ \underbrace{....}_\text{Some long text that should be multiline} \] Trying \text{Some long text that\\ should be ...
10
votes
1answer
4k views

Minimum length for \xrightarrow

I want to place text over arrows. The obvious choice is to use the amsmath command \xrightarrow{#1} However, sometimes the text above may be a single digit: %Example 1 \xrightarrow{1} other times ...
22
votes
1answer
13k views

About big parenthesis larger than Bigg

Do any one know how to type a very big parenthesis in LaTeX. Since the formula is very big, I used multline environment, in one line, there are many pair of parenthesis by using \left and \right which ...
3
votes
2answers
3k views

AMS align: Left aligned text/math plus multicolumn align

This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question). What I ...
14
votes
1answer
6k views

AMS align / Align multiple “=”, too much space

I asked this question at stackoverflow and have been kindly redirected here. I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be ...
3
votes
0answers
1k views

Can one make 3-column alignments with amsmath? [duplicate]

Possible Duplicate: Align two inequalities I'd like to make an {align} with three columns, with an [rcl] type alignment, to typeset something like a < b < c a < bb < c a < ...
3
votes
1answer
4k views

Two matrices side by side

I'm trying to typeset two matrices side by side, somewhat like: A = (matrix) B = (matrix) I tried to next the matrices inside an align environment: \begin{align*} A &= \begin{pmatrix} ... ...
6
votes
1answer
699 views

How to write centered multi-line conclusion in inference rule?

I'm using the semantic package to write inference rules and I have trouble with the following: \usepackage[inference]{semantic} \usepackage{amsmath} \begin{equation} \inference{ expr }{ \begin{...