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

learn more… | top users | synonyms

9
votes
4answers
251 views

Highlighting equation with arrow

I want to create an equation with highlighting as shown bellow. But using following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
3
votes
1answer
106 views

Align environment {amsmath} inside subfigure {subcaption} breaks figure numbering

When I put an equation in align environment into a subfigure, it breaks figure numbering. In the example below, the whole figure gets number 2, not 1 as I want. How do I fix it? \begin{figure} ...
2
votes
1answer
52 views

Equations alignment in Split enviornment

\documentclass[12 pt]{article} \usepackage{graphicx,epsfig,setspace,subfig,url,amsmath} \usepackage{setspace} \usepackage{indentfirst} \usepackage{listings} \usepackage{array} \usepackage{multirow} ...
2
votes
0answers
130 views

Problem with hyperref and amsmath [closed]

I was running into trouble with hyperref when labeling propositions in the appendix. It would get confused between Proposition 1 (in the main body of the article) and Proposition A.1 (in Appendix A). ...
1
vote
1answer
113 views

Latex math encapsulating complex expression in bracket

Latex newbie here. I've clumsily built the following math expression in Latex \begin{align} &W_{i'}(\alpha) = \cdots \notag\\ &\vdots \notag\\ &W_i(\alpha) = ...
0
votes
0answers
28 views

How to remove indentation when using the aligned environment? [duplicate]

I want to align equations inside an enumeration, so I use the aligned environment and its [t] option to make the first equation appear on the same baseline as the item label: \documentclass{article} ...
11
votes
2answers
238 views

$\VDash$ Symbol in AMS math packages?

I'm trying to typeset some homework that deals with set theory and in particular I'm trying to write the "model-theoretic" notion of forcing. I put model-theoretic in quotes because I don't know the ...
7
votes
1answer
91 views

Is it necessary to give a \\ before \intertext?

I am not sure which one is correct when using \intertext or \shortintertext. Adding \\ before them or not. \documentclass[preview,border=12pt]{standalone} \usepackage{amsmath} \begin{document} ...
6
votes
1answer
108 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 ...
1
vote
0answers
69 views

amsmath.sty And bad compilation! [closed]

I am experiencing problems with teXMaker and my latex TeXLive installation. I CANNOT obtain a good compilation from math. amsmath.sty not found error plus a bad pdflatex output (without fractions ...
2
votes
0answers
134 views

Undefined control sequence \nmid [duplicate]

I need to express that "a is not divisible by b" in my LaTeX document. It is my understanding that I should use the \nmid symbol for this case, as in $b \nmid a$. LaTeX gives me the following error: ...
11
votes
2answers
182 views

Equation number enclosing parentheses misplaced with Polyglossia+Hebrew+amsmath

I am compiling the following MWE using XeLatex within TeXnicCenter and get a garbled equation number: \documentclass{article} \usepackage{amsmath} \usepackage{polyglossia} \setmainlanguage{hebrew} ...
5
votes
2answers
130 views

How to redefine the colon-symbol with unicode-math (spacing problem)

I want to change the usual role of : and \colon. Consider the following code \documentclass{scrreprt} \usepackage{amsmath} \usepackage{unicode-math} %\unimathsetup{colon=literal} ...
3
votes
3answers
71 views

Aligning the right hand side of multiline equations

I would like to align the RHS of the multiline equations and assign equation number for whole as one. \begin{multline*} \frac{\partial P(y_{i}\succ0)} {\partial z_{ij}}=\tfrac ...
4
votes
2answers
116 views

equations inside matrix/array — aligning on charater

Suppose I have a system of equations I'd like to present as a vector. Using amsmath, something like \begin{equation} \begin{pmatrix} (2)(2)+(-1)(-3) \\ (4)(2)+(3)(-3) \end{pmatrix} \end{equation} ...
7
votes
2answers
195 views

How to typeset piecewise-defined functions? [duplicate]

I am attempting to write out the basic process for finding the absolute value of some number. In ASCII, this is what I am attempting to write. |X| = { x if x > 0 0 if x = 0 ...
1
vote
1answer
84 views

Very wide equation ruins consecutive side edges

I've just created a set of equations in matrix form which looks fine. It also seems to fit in the space of my document, but in the following space after the equation, the side edge is suddenly gone, ...
10
votes
2answers
152 views

Math equation typeset problem

I would like typeset equation on the figure below. I have problem with subsript text 1, 2, 3 and 4 under integrals. I try something like this: \begin{align}\label{fyz:eq_fey_null2} ...
0
votes
0answers
30 views

Remove extra space to the left of aligned environment [duplicate]

To typeset a collection of equations with alignment, I am using align* from amsmath. Some of these equations have right-hand sides that have multiple lines that should be indented. So far I am using ...
8
votes
2answers
124 views

Text misplacement with certains combinations of \mathring and \overline

If I try to compile the following document \documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\Op}{Op} \begin{document} \[ 1 + \mathring \Op(4) = 2 \] \[ \overline{ 1 + \mathring ...
5
votes
3answers
115 views

alignat inside align enviroment?

Why can't I nest an alignat environment in an align environment? \begin{equation} \label{eq:115} \left\{ \begin{aligned} \begin{alignat*}{2} ...
15
votes
2answers
211 views

Strange behaviour of binomial coefficient's delimiters

While writing down my Combinatorics exercises I found that the binomial coefficient's delimiters weren't displayed as indicated inside the amsmath documentation. By subsequent trials and errors I was ...
0
votes
1answer
23 views

How to prevent aligned equations to shift when adding a non-aligned line break?

I have an equation in the aligned environment to align the equal signs together. However, the last equation is too long, and I want to break it up. When I insert a linebreak, all the equations above ...
8
votes
1answer
133 views

How to increase the vertical space surrounding mathematical equations?

How can I, in a systematic way, increase the vertical space surrounding mathematical equations? \documentclass{article} \RequirePackage[ansinew]{inputenc} \usepackage{amsmath} \begin{document} Ah, ...
0
votes
0answers
89 views

Better extensible arrows

Using amsmath and extarrows packages, we have many extensible arrows. But these arrows look ugly, since some parts in an arrow are boldfaced. Are there any better-looking extensible arrows?
5
votes
1answer
84 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} ...
5
votes
1answer
97 views

commath and \ifinner

The commath package use the TeX command \ifinner to select between inline math mode and display math mode. Because of this, it fail to work properly with some display math environments. In the breqn ...
5
votes
2answers
98 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 & ...
8
votes
3answers
170 views

Reduce space between 'genfrac' and indices

\documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \DeclareRobustCommand{\eulerian}{\genfrac<>{0pt}{}} \begin{document} % Source: ...
15
votes
3answers
781 views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
0
votes
0answers
27 views

Undefined control sequence error when using \abs [duplicate]

I have the following line of code that is throwing up an undefined control sequence error: \begin{equation} \vec{N} = \frac{\vec{T'}(t)}{\abs{\vec{T'}(t)}} \end{equation} The problem is with the ...
5
votes
1answer
100 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) ...
4
votes
1answer
79 views

Spacing within equation

I've got the following equation: \begin{align*} y_{i} &= f(x_{i}) + \epsilon_{i} \nonumber \\ &\approx \underbrace{f(x_{0})}_\text{=$\beta_{0}$} + ...
11
votes
2answers
6k views

What is the difference between \dfrac and \frac?

The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
3
votes
1answer
115 views

Matrix environments not working

I have a strange problem. It seems I cannot use any of the matrix environments (matrix, bmatrix, pmatrix etc.). The following code will not render on my machine \documentclass[12pt]{article} ...
4
votes
1answer
225 views

How to place the QED symbol at the end of equation using IEEEproof environment?

I was wondering how one can place the QED symbol at the end of an equation when using the IEEEproof environment? With the standard proof environment of amsthm this is done by simply placing \qedhere ...
5
votes
3answers
87 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 ...
8
votes
2answers
98 views

Glossaries in Align Environment

Using glossaries commands in align environment seems to screw up the tag alignment. How can I use gls{...} commands in align environments without the tag position being altered? Consider the ...
3
votes
2answers
41 views

Make limit in inline mode same position as display mode

If I use: $$\lim_{x\to3}f(x)$$ Then the x to 3 is placed below the limit. But if I write: Given $f(x)=x^2$, evaluate $\lim_{x\to 2}f(x)$, ... Then the limit is put below right of the limit ...
6
votes
1answer
82 views

Long formula in align environment

Usually, if I have a very long formula, I will use two lines in the align environment and \qquad to space things out nicely. For example, \begin{align*} % First line \rho\left(\frac{\partial ...
1
vote
1answer
128 views

Changing align environment tag styles and colors [duplicate]

I'm using amsmath and amsfonts to typeset my homework, and since it will be read on a screen, I would like to make \tag{comments inside equations} differently colored, and optimally downsize them by a ...
0
votes
0answers
27 views

How can I create multiple lines of equations in flashcards? [duplicate]

I have flashcards that work perfectly, but on a few of my flashcards I want to be able to give 2 equations on separate lines. Normally I know how to do this....such as using gather or align but when I ...
14
votes
1answer
220 views

align* environment left-aligned with LuaTeX and RTL math direction

When using LuaLaTeX, with the math direction set right-to-left, the contents of an align* environment is left-aligned instead of centered. Why does this happens? How can I fix it? ...
2
votes
1answer
56 views

Hyperlinks to repeated & variant equations with \tag{} don't work

Suppose I have the following equation (42), a variant version of it (42ᵇⁱˢ), and then a repeated version of (42). Here is how I would express them in my document: Original equation: \begin{equation} ...
1
vote
0answers
92 views

autonum, amsmath and \qedhere

I have a weird behavior of the \qedhere command while using amsmath in combination with autonum. Consider the minimal (not working) example below: In unreferenced equation with \qedhere (Theorem 2) ...
4
votes
1answer
99 views

How to use lineno with \intertext?

I would like to number all lines of a document to help its reviewing. The lineno package is working fine, except for the \intertext{...} paragraphs that I use between aligned equations. ...
3
votes
1answer
305 views

Using Linux Libertine fonts for math without newtxmath

I'm trying to use Linux Libertine as the math (and main) font, and I used this answer to set the math fonts. However, the math output is still CM. \documentclass{minimal} \usepackage{amsmath, ...
1
vote
1answer
155 views

Increasing margin of left side tag/number in amsmath align enviroment

I asked this on the lyx user list but haven't got an answer (http://marc.info/?l=lyx-users&m=137891444218650&w=2). I would like to include text lines in align environment using 'leqno' option ...
0
votes
1answer
54 views

cases-like without brace

I want to know if there is a cases-like environment which has no braces? I want to do the following without a curly brace: \documentclass[12pt]{scrartcl} \usepackage{amsmath} \usepackage{mathtools} ...
7
votes
1answer
82 views

\hat and \bar compatibility issue EDIT: It's a bug, workaround provided

I have two \newcommand defined as follows: \newcommand{\hvar}[1]{\hat{\delta #1}} \newcommand{\gbp}{{{\bar{\gamma}}_p}} And they look like this: \hvar{X} \gbp The problem is that, if I use ...