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

learn more… | top users | synonyms

1
vote
1answer
3k views

Sqrt with fraction in root argument [duplicate]

Possible Duplicate: Nice-looking p-th roots How can I move the root higher for this formula ? The fraction in the root is typeset to low: \documentclass{minimal} \begin{document} $\sqrt[\...
2
votes
1answer
7k views

abs undefinded control structure

have a strange prob with \abs. Even a simple term like \abs{x} does not work. It does not work out. Undefined control structure will be displayed when using pdflatex. amsmath-package was used. .aux ...
9
votes
1answer
623 views

\eqref to give reference to a sequence of subequations

Suppose I have the following code \begin{subequations} \begin{align} a+b = c \label{eq.1}\\ d+e = f \label{eq.2} \end{align} \end{subequations} I want now that upon giving the reference, it ...
8
votes
2answers
4k views

Alignment across nested aligned environments

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align} aaaa &= 1 &&\text{for $X$} \\ bbbb &= ...
5
votes
1answer
346 views

Unicode math with amsmath, new error

After applying the most recent ctan updates, the following MWE does not compile with lualuatex. There is an error given ending with \cs_set_nopar:Npx that I can't make sense of. \documentclass{...
3
votes
1answer
483 views

Align inside align

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} aaaa &= 1 &&\text{for $X$} \\ bbbb &=...
15
votes
3answers
528 views

Typesetting the square of a mathematical operator

Assume I want to typeset the square of some mathematical operator A. Using \operatorname (amsmath package), there are basically two ways to do that: \(\operatorname{A^{2}}\) (i.e., the exponent is ...
3
votes
3answers
470 views

Behaviour of the align environment

I'm writing a manuscript with long equations. In order to break the equations I prefer the align environment, provided by the amsmath package, over the eqnarray one. In the below example I show the ...
4
votes
1answer
183 views

solution to overflowing equation?

What is the best solution for an equation which is overflowing? I have the structure: \begin{align} long here & long here 2 \end{align} and this causes the long here 2 to overflow. I want to ...
9
votes
1answer
519 views

Makeindex error when ! used in \index in align environment

See MWE below. The symbol ! in the \index causes an error. This is only the case in align environments (not in equation). So it seems to have to do something with amsmath. If ! is put in an \mbox ...
9
votes
2answers
5k views

Change equation font to Times New Roman?

How would I change equation font in the \begin{equation} environment to Times? For instance, I use this code in LaTeX: \begin{equation} \begin{split} {L_{CML}}\left( \theta \right) &=...
4
votes
1answer
403 views

Strange interaction between amsmath and setspace

Compiling the MWE below, you will observe in the output the following phenomenon (you may have to zoom in): Comment amsmath out. Then, the spacing beteen lines is such that the subindex of the ...
7
votes
1answer
156 views

Problem with \index in align environment

Please compile the following MWE. As you will then see, the typesetting of $\mu^{\otimes\downarrow n}$ in the index is strange! \documentclass{article} \usepackage{amsmath} \usepackage{imakeidx} \...
6
votes
1answer
339 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 ...
12
votes
4answers
2k views

'Nudging' overset characters downwards

I am trying to make a vector-like symbol to use in a paper I'm writing. I am actually able to make almost exactly what I want in Mathematica, in which it looks like this: In TeX I am using $\...
3
votes
2answers
682 views

Brace delimited sets of equations inside AMS align with common alignment

I would like to extend the following way of typesetting equations with a trailing brace to more than one set of equation. \documentclass{article} \usepackage{amsmath} \begin{document} This works \...
10
votes
1answer
417 views

Using \vtop affects indentation of \intertext

I am using the \iteminput macro from the solution at How to adjust macro to respect current \linewidth? to import content from other TeX files. However, this appears to be effecting the indentation ...
12
votes
2answers
3k views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried \documentclass{article}...
5
votes
2answers
9k 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} \Delta{t}\leq\left[{C_i}\over{{\...
3
votes
1answer
160 views

autonum breaks align* and equation*

The autonum package apparently doesn't like me to declare math modes to be unnumbered, and prefers to do this on its own. Can't really tell if this is intended behavior and if so, why. \documentclass{...
14
votes
2answers
13k views

Difference between (split, align) and (gather, aligned)?

Here is an MWE which shows that they seem to do the same thing. Is there any reason to prefer one over the other for typesetting groups of equations? I would prefer the align syntax because it allows ...
0
votes
1answer
1k views

Does anyone have any experience using iopams.sty (this borrows heavily from ams math), in particular the \fl command?

Quick background: I'm using texniccentre on windows vista, Miktex 2.9 installed. I'm trying to make use of the iopams.sty file in order to use the \fl command in equations. My header is set to this: ...
7
votes
2answers
1k views

\providecommand equivalent of \DeclareMathOperator: \ProvideMathOperator?

What is the \providecommand equivalent of \DeclareMathOperator? I.e. as \providecommand is to \newcommand a method for defining new commands if and only if they have not already been defined? ...
2
votes
1answer
102 views

How can I control the height of my left-right delimited equation part?

I have a simple equation, much like the following (I use the braket package) : \begin{equation} \mathcal{Y} = \Set{ x \in \mathcal{G} | \Vert x \Vert > d } \end{equation} My gripe with this ...
4
votes
3answers
435 views

Aligning multiple binary operators

Objective I want to align the following: expr_a1 <= expr_a2 <= expr_a3 \\ expr_b2 <= expr_b2 <= expr_b3 \\ Now, I want the <= to be aligned with each other; the expr_*2 to be ...
7
votes
1answer
1k views

using \marginnote inside a math environment in tufte-book

I've recently started using tufte-book for typesetting solutions to math problems. I like it very much that you're encouraged to use the margin, which is very nice for giving hints, pointers and ...
4
votes
1answer
3k views

Text column in array

I am trying to do something that seems relatively simple but I can't get it to work. Basically, I would like one of the columns in my math mode array to be text, so I am trying to use pre and post ...
9
votes
1answer
1k views

Alternative ways to format the cases environment in display math-mode

The cases environment of amsmath package is useful for defining a function that takes different values in different regions. For example: \documentclass{article} \usepackage{amsmath} \begin{document} ...
4
votes
1answer
624 views

undertilde package provides inconsistent vertical spacing between nucleus and accent

My own answer is provided below, but feel free to add your own improvement as well. The \utilde command from the undertilde.sty package places different amounts of vertical space between the accent ...
6
votes
2answers
3k views

Why using \mathrm still gives italic text?

I'm writing an equation using the displaymath environment, and I'd like to have the units in non-italic. So I use \mathrm{}, and I write this: \begin{displaymath} P_{AVG}=19.5 + \frac{2180}{5 \cdot ...
7
votes
1answer
456 views

Why does mathdesign result in a huge 'cases' environment brace in Tufte documents?

I'm getting strange results when I use the cases environment in Tufte-LaTeX documents with the mathdesign package. Instead of I get Is there something I can do to get rid of that huge brace? ...
10
votes
1answer
2k views

eqref in captions with mathtools

I've now tried mathtools for the first time, for the sake of showonlyrefs. It works fine, except if I put an \eqref command into a figure caption, in which case I get: ! Argument of \@caption has an ...
3
votes
1answer
108 views

Storing contents of environment within align

Now we are at it here is another one that has been puzzling me. \documentclass[a4paper]{article} \usepackage{amsmath,environ} \def\storer#1{\def\data{#1}} \makeatletter \newenvironment{test}{\...
6
votes
2answers
2k views

Setting two math symbols directly above each other and vertically aligned

I am typesetting the Neyman Pearson decision rule and would like to set the greater than > and smaller than < symbols directly above each other. I tried \overset but that doesn't align the ...
9
votes
3answers
2k views

A vertically centered equation number on a multline environment

The multline environment does exactly what I want in splitting a long formula between lines by utilizing the horizontal space to the fullest. (I don't want the alignment features of the align ...
4
votes
1answer
394 views

Mixed Grouping in Subequations

I am looking to create a subequation environment with three equations. However, I want to group the 2nd and 3rd equations with a brace on the left side. I tried this (using the empheq package): \...
5
votes
1answer
447 views

The font of operator names: the size

A while ago, I asked what was the correct way of changing the font used to set operator names. I stabilized at: \DeclareSymbolFont{sfoperators}{OT1}{cmss}{m}{n} \DeclareSymbolFontAlphabet{\mathsf}{...
9
votes
5answers
3k views

Using \label with amsmath nested environments

First of all, I'm not sure these environments are supposed to be nested, but the fact is the alignment comes out exactly how I wanted, and no errors are issued. \documentclass[a5paper]{article} \...
5
votes
3answers
3k 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 ...
2
votes
1answer
87 views

Converting legacy amstex picture with \LPic to latex

I am converting legacy amstex code to latex. I am stuck on vector pictures in the document. In the "main" document, there is code like this: \centerline{\input fig11.tex} In the fig11.tex file, ...
6
votes
3answers
24k views

Left-align math

I'm trying to left-align some math, like here (the center block with the arrows): I've tried the following: \begin{flalign*} (0, (2, q_1), (0, q_1)) \rightarrow (0, (0, q_1), (1, q_2)) \rightarrow ...
19
votes
1answer
1k views

Why is \global\let not always global?

As an LaTeX environment opens a local group, it is normally necessary to use a global definition if changes in the environment should be available after the environment: \documentclass{minimal} \...
10
votes
3answers
5k views

How to put your symbol explanation for the formula?

I have a formula written in LaTeX. What is the best way to explain what the symbols mean in the formula? For example I have this equation with a where: symbol definitions \begin{equation} \sum_{i=0}^...
5
votes
3answers
1k 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 ...
4
votes
1answer
2k views

Specification in `theorem` environment also bold

I'm using the following packages/options in my article: \documentclass[b4paper,12pt]{article} \usepackage[english]{babel} \usepackage{amssymb} \usepackage{amsmath} \...
5
votes
3answers
923 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.
2
votes
2answers
438 views

Patch newline (\\) in math environment using amsmath

I want to patch the newline command \\ in an align environment provided by amsmath. The patched version should execute some custom code and finally call the original definition, like in the following ...
13
votes
2answers
8k views

Equations inside enumerate aligned on item's number

If I type \begin{enumerate} \item \begin{align*} eqn 1 eqn 2 \end{align*} \end{enumerate} the label will appear on the first lines and the equations will ...
5
votes
1answer
4k 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 ...
6
votes
1answer
392 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{% \mathrel{\...