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

learn more… | top users | synonyms

6
votes
1answer
2k views

What does “Limit controls must follow a math operator” mean?

When I try to compile this: \documentclass{article} \usepackage{amsmath} \usepackage{nath} \DeclareMathOperator{\argmin}{arg\,min} \begin{document} \begin{equation} \argmin ...
6
votes
1answer
312 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
6
votes
1answer
230 views

Automatic way to match matrix heights

I have a simple matrix equation, but one of the matrices has subscripts and superscripts on both lines: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} ...
6
votes
1answer
1k views

How to automatically scale `\mid` within delimiters [duplicate]

\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\}, ...
6
votes
1answer
3k views

amsmath “\substack”-command in section title

I do use the \substack-command in text for creating a small (2,1)-Vector. Unfortunately it does not work in the title of a section. Here a minimal example, which does not work: ...
6
votes
2answers
739 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 ...
6
votes
1answer
3k views

In LyX, what is the most standard way to type a system of equations?

I have a system of equations and would like the alignment to be done on the equal sign. phi_{t+1} = F\xi_{t} y_t = A'X_t \theta_t = \mu + \epsilon_t What is the most standard way ...
6
votes
1answer
210 views

Using \tag in unnumbered versions

According to the amsmath documentation (section 3.1, page 7) \tag and \tag* can also be used within the unnumbered versions of all the amsmath alignment structures It provides no examples ...
6
votes
1answer
108 views

Use a symbol in a formula that's been defined over elsewhere

In my document preamble, I'm using: \usepackage{fancyvrb} \DefineShortVerb{\|} It means I can indicate that things are to be rendered as code with |This_is_monospaced|, but now I'm trying to use ...
6
votes
1answer
1k 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} ...
6
votes
1answer
666 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 }{ ...
6
votes
1answer
90 views

pmatrix not rendering correctly — possibly a wileySix problem

Original post below A couple of people asked for a whole document: \documentclass{wileySix} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \[ \mathbf{y}= ...
6
votes
1answer
130 views

Align to top of box

This latex code (uses amsmath and proof) produces the image below: \documentclass{article} \usepackage{proof} \usepackage{amsmath} \begin{document} \begin{equation*} \infer[\forall x ...
6
votes
1answer
1k views

Align after \therefore

If I place my alignment ampersand after a therefore symbol (from amssymb), the proper spacing between the therefore and the rest of the equation is lost. Is there a way to prevent this from happening? ...
6
votes
1answer
1k views

How to achieve no indentation for a single equation?

I'd like to have a single equation without indentation at all. I know I can set it globally with \setlength{\mathindent}{0cm} But I don't know how to return to the default value after the ...
6
votes
1answer
780 views

Multlined in align enviromnent: alignment of = and equation numbering

I'm using the multlined environment inside an align environment and want have the = aligned at the top and the equation numbering at the bottom. Is this possible? Here my MWE: ...
6
votes
1answer
851 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 ...
6
votes
1answer
126 views

Hyperref, amsmath, and horizontal spacing at start of a numbered equation

When amsmath is loaded before hyperref (which I thought was the preferred order), spacing within the equation environment is altered: \documentclass{article} \usepackage{amsmath} ...
6
votes
1answer
114 views

How to refer to the number of an item in an enumerate environment inside a theorem

I have something that looks like this: \usepackage{amsmath} \begin{document} \begin{thm} The following are true: \begin{enumerate} \item \label{foo} Foo \item \label{bar} Bar \item \label{baz} Baz ...
6
votes
1answer
5k views

Aligning equations with using fleqn

I use fleqn as a document class, but now I solve problem, how to align few equations to the center and few to the right. I've tried \setlength{\mathindent}{1cm} but after that is the problem that I ...
6
votes
1answer
334 views

Horizontal array of enumerated equations

This is for use in work assignments for math students. I'd like to post multiple parts for a given question, without sacrificing too much space for this. So I want a bunch of equations arrayed ...
6
votes
1answer
539 views

Equation spacing issue with fleqn (amsmath) and frenchb (Babel)

This is a follow-up to this question. Here is an exemple of the code I wrote to add a light gray background to important equations: \documentclass{article} \usepackage[fleqn]{amsmath} % ...
6
votes
2answers
97 views

Using \ensuremath inside \text

Using \ensuremath inside \text works fine and gives good results. However, I realized that the spacing in superscripts changes. I tried working with \mathchoice, but that doesn't know that it is in a ...
6
votes
3answers
415 views

Align without display math?

Is it possible to use the align environment without the display math? For example, I would like \sum to look as if it were inline. The solution given here does not work, insofar as the summation ...
6
votes
1answer
214 views

Issue with bm and breqn packages - is there a way to use a package in only part of a document?

I am a long time stack exchange reader. I always found useful information here. This is however my first post. I have a little issue that I am working on that maybe someone can provide a quicker ...
6
votes
1answer
211 views

Match upper horizontal line of two fractions with different roots

I'm learning LaTeX and encountered a problem which I'm not able to solve after reading several related problems (e.g.: Align \sqrt with baseline of other mathematical input). I will present my actual ...
6
votes
1answer
393 views

Create multiline fraction

How to create an equation like in the image below. I tried to use \cfraq and \hline but with no success. I am asking for the layout only, not the formulae.
6
votes
2answers
539 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 ...
6
votes
2answers
101 views

vertical spacing in nested fraction

I have complicated math expression: Vertical spacing between text and fraction line is too small. I tried to define new \frac command (with amsmath package) with adjustable vertical spaces. As you ...
6
votes
2answers
173 views

reduce vertical space for \xrightarrow

I find the vertical spacing of amsmath's \xrightarrow too large for the underset. Is there an easy way to reduce it (i.e. put "below" close to the arrow, in the example)? \documentclass{minimal} ...
6
votes
1answer
224 views

How can I split and align this series of equations?

I know this is an issue that comes up frequently, but I keep running into issues using all the suggested examples (breqn, amsmath; split, align, etc). Here's what I have: ...
6
votes
1answer
128 views

Changing the size of the braces from the cases environment

I have created the following picture using the cases environment. For this picture I have two questions. 1) I would like to limit the size of the braces created by the cases environment to ...
6
votes
1answer
74 views

Failure of \text within theorem environment

I have an equation within the statement of one of my theorems. Within this equation, I have some text to name a function. However, when this equation appears within the theorem environment, the ...
6
votes
2answers
536 views

Is there a way to modify the default vertical spacing conventions of LaTeX left and right delimiters?

I am wondering if there is a way to modify the way left and right delimiters in LaTeX handle vertical spacing. This tends to come up when they are enclosing a fraction that has a big numerator but a ...
6
votes
1answer
439 views

Clickable hyperlink with \overset and XeLaTeX

I would like my document to have clickable hyperlinks inside \overset environments. I'm using XeLaTeX because of the fonts… This is a (rather) minimal example: \documentclass[a4paper, 12pt]{article} ...
6
votes
1answer
364 views

Understanding ext@arrows

I don't quite understand how \ext@arrow of amsmath is working. When I look at the code, its functionality seems straight forward to me at the first glance. \def\ext@arrow#1#2#3#4#5#6#7{% ...
6
votes
1answer
619 views

Changing the vertical alignment of `multlined` from the mathtools package

Package mathtools provides the vertical alignments top, center, and bottom: \documentclass{report} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \makeatletter ...
6
votes
0answers
42 views

Purpose of DOTSB in definition of \iff

What exactly is the purpose of the \DTOSB in the definition of \iff? There is a mention in Is there a left-handed equivalent of \implies? that the \DOTSB makes \iff "dots aware". But, when I try to ...
5
votes
2answers
3k views

Unhelpful, misleading errors in amsmath environments

With the simple equation environment; \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} a \foo b \end{equation} \end{document} you can see a helpful error message, ...
5
votes
5answers
591 views

How to format the case equation to look nicer?

I want to typeset the equation in my beamer frame: This is my solution and of course, it doesn't look well. And my code is : \[ \parbox[c][2cm]{2cm}{Attainable \\ GFlops/sec} = ...
5
votes
2answers
12k 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 ...
5
votes
2answers
230 views

About \def\b*{\begin{align*}}

I want to make the code shorter. I defined the following pair of macros: \def\b*{\begin{align*}} \def\e*{\end{align*}} My point is that I saw this is a document, with \def\b*{\begin{eqnarray*}} ...
5
votes
3answers
437 views

TeX commands and LaTeX commands- what's the difference? Good Introductory manual/guide to using MathJax, LaTeX or TeX on forums?

Update 1: I have just learnt from the answers below that it is more correct to say that MathJax is the format for writing maths on the Mathematics Stack Exchange, that it is essentially made from the ...
5
votes
2answers
457 views

How to produce aligned math with an extra symbol on the left.

In school, our teacher requires us to put a ⇔ sign on the left of our equations, when we do a tranformation on the equation. Usually, I use an align context to format multiple transformations of an ...
5
votes
4answers
167 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 ...
5
votes
3answers
576 views

How to make large binomial coefficient?

I have a potentially-repeated question, but I was unable to find anything about this. So, I need to create a giant binomial coefficient in LaTeX (something around 1000pt). When I compile the below, ...
5
votes
2answers
9k 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 ...
5
votes
5answers
5k views

How to type primed sum?

I need to type a "primed sum" (a summation symbol with a ' at the top right corner of the summation symbol) in latex. How can I do this?
5
votes
2answers
266 views

Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$

I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
5
votes
3answers
94 views

How to get for to stand separate in an equation?

I have the following equation: \begin{equation} C_k = \frac{1}{N}\sum\limits_{n=1}^N k_n for k \in {1,\dots,K} \end{equation} How can I get the for, and everything after it, to stand ...