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

learn more… | top users | synonyms

2
votes
2answers
16 views

How to change the colour of a tag in align?

I'm having the following article: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} d(x, y) &= d(y, x) \tag{symmetry} \\ &\leq d(y, z) + d(z,x) ...
47
votes
4answers
8k views

What are the differences between $$, \[, align, equation and displaymath?

I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
13
votes
2answers
88 views

amsmath matrix vs loading the array package

Here is an interesting interaction. Consider the example below. When ever the array package is loaded, extra space appears on the right in the output. Any ideas as to why? ...
1
vote
2answers
77 views

How can I write a cursive letter k in math?

Using amsmath, writing $\ell$ produces a cursive lowercase letter l. I would like to have a reasonably matching cursive lowercase letter k, available through \kay e.g., so that I can write things ...
4
votes
2answers
169 views

How can I remove the qed symbols from all lemma proofs?

the following code will only make the qed not appear in the second proof. However, it it possible to make the qed symbol never appear at the end of the proofs without having to specify it locally ...
1
vote
3answers
97 views

Looking for stylized H-symbol

I'm wondering if LaTeX knows the following symbol (sorry for the hand-drawing, I didn't even find it online once): It's kind of a stylized H letter that is sometimes used to denote the Hilbert ...
1
vote
1answer
72 views

Tag placing with amsmath

I'm using amsmath and its \tag command to tag equations. I remember having a situation where I liked having the tag on the left better than on the right. So I gave my class (which is report btw) the ...
1
vote
1answer
70 views

Wrong (too much) vertical space above \vdots in small matrix

If one uses \vdots in a smallmatrix-environment the vertical spacing above the dots is too large. It is the same spacing as in a normally sized matrix-environment. Minimal working example: ...
3
votes
3answers
53 views

Center the second line of an equation

How do I get the following output? f a b c = <centered definition of f> g a b c d = <centered definition of g> These are definition of functions, but the bodies are big; I would ...
1
vote
2answers
69 views

Different horizontal (!) spacing of delimiters with `\left`, `\bigl`, `\Bigl`,

I use \arrowvert as a middle delimiter. For example in the definition of sets, i.e. \lbrace x \arrowvert x < a \rbrace. Moreover, I try to avoid \left, \right and \middle but use the AMSmath macros ...
0
votes
1answer
40 views

Getting items above and below a compound math symbol

I'm trying to get information to appear above and below a math symbol such as \sum or \leftrightarrows. I've found information detailing \mathop and the syntax behind it but when I try to use it, it ...
1
vote
1answer
30 views

ams math + AUCTeX + refTeX causing label references to always be \eqref not the desired \vref

As stated on the reftex documentation “Note that this is automatically done by the ‘amsmath.el’ style file of AUCTEX, see Section 7.8.2, page 38 – so if you use AUCTEX, this configuration will not be ...
1
vote
0answers
40 views

Change the font used by \text

The \text macro can be used to embed text fragments in math formulas. However, if one uses separate math and text fonts (e.g. because the text font does not support math), \text of course uses the ...
11
votes
5answers
12k views

Real number symbol (UTF-8: ℝ) in XeTeX

How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
1
vote
1answer
84 views

Incomplete \iffalse error in AMS alignment

MWE: \documentclass[a4paper]{report} \usepackage{amsmath,xparse} \makeatletter \newif\ifinvd@lims\invd@limsfalse \newif\iflr\lrfalse \ExplSyntaxOn \newcommand{\delim}[3][lr]{ \begingroup ...
4
votes
1answer
56 views

Font size inside subequations environment!

How I can change the font size inside the subequations environment? See below: \begin{equation} \textstyle \xi_{1} = A + B + C; \end{equation} The command \textstyle works fine inside the ...
4
votes
1answer
47 views

Incorrect reference when combining amsmath, hyperref, and \tag

In the following MWE, I receive a warning and a reference points to the wrong element. \documentclass{article} \usepackage{hyperref} \usepackage{amsmath} \begin{document} \begin{equation} ...
4
votes
3answers
100 views

Why does \label not work in math mode when using [fleqn] with amsmath?

Try the following \documentclass[11pt]{article} \usepackage[fleqn]{amsmath} \begin{document} \newcounter{eqnthing}\setcounter{eqnthing}{0} \[a+b=c\refstepcounter{eqnthing}\label{maththing}\] \par ...
2
votes
1answer
36 views

Two column equation block with vertical separator

I have seen various examples in text books and web pages (like here) of two column equation blocks, where the left column has some equation(s) and the right column has some explanation on variable ...
3
votes
2answers
179 views

How may I write 'and generally' and the second equation on one line?

Please note that the two equations ought to be aligned; the text and generally should be flush left, but the second equation should be centred. \documentclass{article} \usepackage{mathtools} ...
1
vote
1answer
45 views

Amsmath's \binom looking weird

Using the MWE \documentclass[fontsize=8pt, a4paper, DIV12]{scrbook} \usepackage{amsmath} \begin{document} \[ e^t = x^{(5)} - 2x^{(3)} + \dot{x} = \sum_{k = 0}^{5} \binom{5}{k} p^{(k)}(t) e^t ...
3
votes
1answer
33 views

Subequation labeling inside an “aligned” environment

I can align several equations inside a single brace with the following code. \begin{equation} \left\lbrace \begin{aligned} k \cdot E &= 0 \\ k \cdot B &= 0 ...
3
votes
1answer
21 views

creating conditional array using iopart

I need to write a conditional equation using iopart.cls, a class that doesn't work with amsmath. Usually I'd use the cases environment from amsmath like so: \begin{equation} \mathrm{sgn}(t) 1, ...
1
vote
0answers
16 views

Horizontally align \vdots with equal signs in aligned environment [duplicate]

I have a number of equations aligned at the equal sign. I insert a line containing just \vdots to indicate a bunch of steps and then equations again. How I can make the \vdots align with the equal ...
2
votes
2answers
830 views

Problem with cross referencing using gather environment

I am using gather environment to write bunch of equations. When I try to cross-reference those equations, the equation number doesn't show up. Here is my code \documentclass[12 pt]{article} ...
3
votes
2answers
38 views

Putting a tag in aligned enviroment

I want to set a counter in the following two lines (to the right) \[ \left\{ \begin{aligned} & u_t = H(x,t,Du)&\text{ in }& \mathbb{R}^n\times (0,T) \\\\ & u(x,0)=u_0(x) & \text{ ...
8
votes
2answers
2k views

In exponents, parenthesis too small, \big too big

When something big (a fraction, a sum, an integral...) appears within a pair of parenthesis, one can typically use \left(...\right) to get delimiters large enough to surround the contents. The ...
8
votes
1answer
162 views

Adaptively sized delimiters that don't go beyond the size of \bigl and \bigr

I would like adaptively sized delimiters, but only up to \bigl/\bigr-size. That is, there is variation only between ordinary/normal size and one size higher. \documentclass{article} ...
12
votes
2answers
258 views

Manually controlled size of delimiters in macros

I am using the amsmath package and I'd like to control the size of my delimiters manually, i.e. using the \bigl, \Bigl, ... , \Bigr, \bigr commands, instead of \left, \middle, \right. Now I want to ...
-1
votes
2answers
80 views

Confusing missing $ [closed]

Can anyone help with this. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\ The rest of the text works fine and there are ...
3
votes
2answers
83 views

how to give some text an equation number

I want to be able to write the following in LaTeX: We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that ...
2
votes
2answers
181 views

How to make a table more vertically compact?

I finally managed to use the cases construct within a table: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{table} \begin{tabular}{l p{7cm} ll} \hline a & b & c \\ ...
0
votes
1answer
56 views

How to make nested fractions bigger? [duplicate]

I have a nested fraction on the right-hand side of an equation. I use the LaTeX code as follows to produce the equation: \begin{equation} \frac{1}{T_{ex}} = ...
29
votes
2answers
16k 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?
0
votes
1answer
49 views

Cant get theorems in an appendix

I get the error \begin{document} ended by \end{theorem}. \end{theorem} and Environment theorem undefined. \begin{theorem} when trying to compile this latex document. Here is the problematic ...
3
votes
1answer
46 views

Formatting an equation environment to fit within the margins

\mathcal{P}^s_{\delta}(F) = sup \Bigg\{ \sum_{i}|B_i|^s : \{B_i\} \text{is a collection of disjoint balls of radii at most $\delta$ with centres in F} \Bigg\} This piece of text wont stay in the ...
5
votes
1answer
107 views

Show integration limits above & below the integral

Well considering this code, the "E" is shown after the integral: \begin{equation} m = \iiint_E \rho \ \mathrm{d}V \end{equation} The limit is shown slightly behind the number, how can I place it in ...
1
vote
1answer
49 views

Strange artifact when using xrightarrow [duplicate]

When using xrightarrow, I sometimes gets weird artifacts on the arrow: it looks like the arrow is somewhat "doubled" in the middle. But this only happens when zoomed out; when I zoom in very close, ...
16
votes
5answers
2k views

Underbrace under sqrt content

I am trying to use underbrace to clarify the arguments to a sqrt. However this causes the square root sign to reach all the way down to the bottom of the text under the brace(s), which is not what I ...
3
votes
2answers
37 views

Error: Extra }, or forgotten \right in split

Can someone tell me what's wrong with this? because i can't figure out where the missing \right( is. \begin{equation} \begin{split} Μ=&-\pi \rho \frac{c^{2}}{4} ...
3
votes
1answer
32 views

Overfull hbox with fleqn and autonum

I am using autonum and amsmath with the fleqn option to left-align equations. However, this combination appears to generate Overfull \hbox warnings at the \begin{document} line. I am using the ...
1
vote
1answer
83 views

Blank or no arrow in a commutative diagram

I learned from this nice post that a commutative diagram with the CD environment can have arrows pointing and their commands: right @>>> left @<<< down @VVV up @AAA ...
1
vote
1answer
25 views

Weird autocompletion in vim-latex [duplicate]

I am trying to write some inline equations in vim-latex, but when I type \(( (To start an equation with a parenthesis), vim replaces it with \\left( \right)<++>. What is it doing, and how do I ...
6
votes
1answer
83 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 ...
2
votes
2answers
1k views

Commutative diagram with parallel arrows in opposite direction

I have a diagram of the following form, written with the package amscd: \begin{align*} \begin{CD} W @>\phi>> X \\ @V{a}V{b}V @V{c}V{d}V \\ Y @>\phi>> Z \\ \end{CD} ...
3
votes
4answers
347 views

Resize CD output from amscd

I am using the package amscd to make commutative diagrams, with CD environment and I want to know how can I change the size of the result (especially make it bigger). I try this \[ ...
4
votes
3answers
175 views

Math equation with cases and division signs

\begin{equation*} \theta({P,\bar{Cl}}) = \begin{cases} S(P,\widehat{Cl}) + (S(P,\widehat{Cl}) \times ((\bar{R}-\widehat{R})/\bar{R})) & \widehat{Cl} \textless \bar{Cl} \\ ...
2
votes
0answers
14 views

Space after Proof Environment to next Section

I am using a modified definition of a proof environment: \makeatletter \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep1\p@\@plus3\p@\relax \trivlist ...
1
vote
1answer
45 views

Visually appealing subscripts with `\intercal`

From this discussion (What is the best symbol for vector/matrix transpose?) I like to use \intercal for matrix/vector tranpose symbol. However, when subscripts get involved it gets ugly: MWE: ...
0
votes
1answer
30 views

Multiline equation in cases with special symbols

\begin{equation*} $\theta$ = \begin{cases} $\eta$ & \text{$\widehat{P} \textless \bar{P}$}\\ $\eta$ & \text{$\widehat{P} \textgreater \bar{P}$} \end{cases} \label{eq: ...