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

learn more… | top users | synonyms

3
votes
1answer
47 views

How to align terms in alignat: too much spaces and too few

Please, help me this code has too much spaces and too few, how can I fix it? \begin{subequations} \begin{alignat}{2} \forall i \in[m] && \sum \limits_{e \in N_{out(s_{i})}} y(i,e) - \sum ...
6
votes
2answers
100 views

What's the difference between split and aligned?

I don't understand the difference between the split and aligned environments introduced by amsmath, so I'm posting this question as a place to collect what subtle details there may be. One thing ...
5
votes
2answers
539 views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
0
votes
0answers
18 views

amsmath: error using subequation environment “Missing \endgroup inserted \end{align}” [duplicate]

Here's my minimal problem-causing example: \documentclass{standalone} \usepackage{fixltx2e} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} a &= ...
3
votes
3answers
137 views

Why does `gather` behave this way, and what can we do about it?

Here's a simplified version of the code I'm having trouble with. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{center}\underline{First set of identities.}\end{center} \[x+x = ...
0
votes
0answers
46 views

! Undefined control sequence \backsim [duplicate]

My latex file does not accept the command \backsim. This is what I wrote in the file: $ \backsim 2.5 \mu$ What is wrong?
18
votes
4answers
848 views

How to typeset an i with asterisk above?

I tried it with a modification of \overset as suggested by Werner in this question: Creating non-math mode substitutes for \overset and \underset not dependent on the amsmath package With the new ...
0
votes
0answers
57 views

Locally change font style from sfmath to amsmath

I am using the package sfmath. It is rather hard to explain why, but the reason should not matter for my question. If it is required I can try to explain why I need sfmath. Nevertheless, the main ...
1
vote
0answers
64 views

amsmath package clash

Just this afternoon I seem to have a package clash that resulted in all my equation numbers disappearing. I seem to have resolved the issue by putting \usepackage{amsmath} at the top of the preamble ...
1
vote
1answer
55 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
4
votes
2answers
43 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
4
votes
2answers
88 views

Setting vertical margins on top and below align* environment

I'm using the amsmath align* environment to format multi line formulas. Unfortunately, the environment adds a lot of margin before and below the formula. I found only one solution to get rid of this ...
2
votes
3answers
97 views

Aligning a set of equations with one equation number

The following set of equations cannot be aligned from left to right. Since, I need to index them just with one number, I had to use split equations: \begin{equation} \begin{split} X={}^ 2 \bar{x} + ...
0
votes
1answer
32 views

LaTex align and split

I am trying to split an equation inside the align environment, but I get an error message each time I try to add the \begin{split} ... \end{split} lines in the code below: \begin{align} % requires ...
5
votes
1answer
106 views

LuaLaTeX - Linux libertine (math and pgfplots)

I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work. \documentclass{article} \usepackage{fontspec} \usepackage{pgfplots} ...
2
votes
2answers
89 views

Problem formula with \usepackage{marvosym} \usepackage{tikzsymbols} \usepackage{MnSymbol,wasysym}

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
2
votes
1answer
38 views

Wrong alignment of split equation in align environment

This is an example code of my problem: \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align*} x_n&=\begin{split} &1+\frac{1}{2}+\left( ...
4
votes
1answer
50 views

! Missing } inserted. all the time!

\begin{multline} (3 + 2\omega )\left( \frac{{B\prime (r)}}{{2A(r)B(r)}}\varphi \prime + \frac{1}{{A(r)}}\varphi \prime \prime - \frac{{A\prime (r)}}{{2{A^2}(r)}}\varphi \prime + ...
2
votes
1answer
55 views

changing the general theme of math fonts

I'm using latex templates which is producing a particular kind of math font, shown below. How can I change it to produce something like following? I'm particularly interested in changing the math ...
3
votes
2answers
57 views

Is there a better (more condensed) way of formatting a subscript \perp (or \bot)?

I'm writing a lot of these types of formulas: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathrm{e}^{-\mathrm{i} \boldsymbol k_\bot \cdot \boldsymbol r_\bot} ...
3
votes
1answer
39 views

mathscript glyphs in nomenclature list

I am trying to use a glyph defined by \mathscr{F} in a list of nomenclature. The explanation shows in the list fine, but the glyph doesn't. Anyone come across this before or have a ...
4
votes
4answers
116 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
2
votes
2answers
130 views

Equation setting

I have a problem with this equation compilation at the end{split} please fix it. \begin{equation} \begin{split} \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar ...
2
votes
3answers
139 views

\middle too big

I'm trying to typeset an equation that contains a "|": \begin{align*} \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle| X_{1} \leq F_{1}^{(-1)}(q) \right) \end{align*} ...
2
votes
1answer
93 views

Changing font and using amsmath [duplicate]

I've read several threads about this, but none solves my problem. When I try to change font, it won't compile. Is there an other way to change font, that will still allow me to write stuff like: $\mu$ ...
1
vote
2answers
65 views

big equation in flalign

I am trying to use a big equation inside flalign. The biggest chunk is the third line and I couldn't figure out how to something akin to \shoveright in this third equation, as I want is ending on the ...
2
votes
0answers
29 views

Multiple tags in one line of align environment [duplicate]

Is there a possibility to tag each equation of a single line in an align environment of the amsmath package? Like so (this code leads to the error Package amsmath Error: Multiple \tag.): ...
4
votes
2answers
55 views

Trouble defining new environment with embedded gather

I looked at the solution to How do I embed a gather environment within a custom environment? But things are still not working for me: MWE: \documentclass[border=6pt]{standalone} ...
5
votes
4answers
78 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
1
vote
1answer
80 views

Commutative diagram with blank spacing and crossing-layer arrows

Related to a previous post, now pardon me to go to a specific example, here is my output and my Minimum Working Environment ...
1
vote
1answer
63 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 ...
2
votes
1answer
55 views

How to centre an equation

When I build and view my equation it is always aligned right \begin{equation} $$\textit{N}(\textit{t}) = $\frac{P_o}{\lambda+\rho\varepsilon/\Lambda}$[1-e$^{-t(\lambda+\rho\varepsilon/\Lambda}$)]$$ ...
3
votes
1answer
68 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: ...
8
votes
2answers
294 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
2
votes
2answers
110 views

How to add spacing before and after a cdot?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\norm}[1]{\lVert #1 \rVert_2} \begin{document} \begin{displaymath} \norm{\cdot}=... ...
4
votes
3answers
244 views

Why don't the curly braces and the mid bar become bigger?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\N}{\mathbb N} \newcommand{\K}{\mathbb K} ...
2
votes
3answers
87 views

I think fractional expressions in my text is small and not normal?

\documentclass[12pt]{book} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{xepersian} \begin{document} \begin{persian} \lr{$-\frac{1}{3}$} \hspace{1cm} $-\frac{1}{3}$ ...
2
votes
0answers
35 views

First line in beamer block ignores abovedisplayskip?

If I use an an align environment within the a beamer block, the \abovedisplayskip is ignored. How can I force that setting? My MWE is \documentclass[t]{beamer} \usecolortheme{rose} ...
2
votes
1answer
74 views

Equation + explanation below

I have to write an explanation to my equation, and I would like to do it, below the equation. But, I do not know how to do that. It should look like this: My preamble look like this: ...
6
votes
6answers
537 views

please help me fit my equation into my margins!

I have this equation. It is quite wide, and I've had to split things over two lines. However, the part to the left of the = is quite long, and it's causing me some issues. I've posted a MWE here. ...
3
votes
2answers
40 views

Mini-alignment of a single equation?

So I have this problem, whereupon I would like to do some 'mini-alignment'. I have googled for ways to do this, but I get results based on aligning whole equations. Here is my current output: What ...
3
votes
3answers
274 views

Problem in writing the system of equation in LaTeX

Here's the code I have and here's the system of equation it creates which is not working as desired. Do you know how I can fix it? \item For what value of $b$ would the following system fo equations ...
1
vote
1answer
48 views

How to show a wide bar over a letter?

I want to have a wide bar over XY but it just shows a small bar. Any idea? \item In the standard $(x,y)$ coordinate plane, point $X$ has coordinates $(-4,0)$ and point $Y$ has coordinates $(0,-8)$. ...
1
vote
1answer
80 views

Make font size of numerator the same as denominator?

I have a simple question, I would like to make the font-size of the numerator the same as that of my denominator. For example, something like this: e^{-j \frac{2 \pi n k}{K_F}} gives me an ugly ...
5
votes
1answer
42 views

AMSMath \implies and a superscript symbol

I would like to have a superscript symbol attached to the implies-arrow, i.e., something like that \[ \implies^f \] However, this does not work. A similar question was asked here: question But ...
3
votes
1answer
54 views

How can I adjust the position of multiple \vdots after multiple \begin{cases}?

Here's a MWE: \documentclass[12pt]{article} \usepackage{amsfonts, amsthm, amsmath, amssymb} %===== \begin{document} \begin{multline*} \\ % \text{Text} \begin{cases} AAA\\ AAA \end{cases}\\ % ...
3
votes
1answer
59 views

\bigl( \bigr) in inline mode and in align environment

The following, I believe, is a strange behavior of \bigl(<math content>\bigr) in inline math mode and in the align environment. Consider the following MWE: ...
4
votes
3answers
52 views

Creation of enumerate-like enviroment in gather and align environments

I use the gather and align-aligned environments of amsmath package and I want to create a list inside them like the one created with the enumerate environment. How can I achieve that? A MWE would be ...
0
votes
1answer
46 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
4
votes
3answers
143 views

Large equation goes out of margin, want to centre it? [duplicate]

I have a large equation \begin{document} \begin{gather} W = \frac{1}{2\mu_0}(\frac{\Psi'^2 \pi^2}{b^2} \sum_{m,n} a_{mn}^2 n^2 (ab/4) + \frac{\Psi'^2 \pi^2}{a^2} \sum_{m,n} a_{mn}^2 m^2 (ab/4) + ...