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

learn more… | top users | synonyms

4
votes
2answers
101 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
99 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
70 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
136 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
109 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
45 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
57 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
66 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
71 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
47 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
251 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
131 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
149 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
169 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
96 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
30 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
66 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
84 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
87 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
77 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
58 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
140 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
306 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
120 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
256 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
89 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
43 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
82 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
561 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
46 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
939 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
55 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
105 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
53 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
69 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
65 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
57 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
49 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
159 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) + ...
6
votes
1answer
64 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 ...
2
votes
0answers
45 views

“latex missing } inserted” error message in equation [closed]

I have a slightly complex, long section of equations in my latex document, but from what I can see I think it is programmed correctly. When I compile the document, I get the error ...
4
votes
1answer
47 views

\ref counter for equation off by one for labels in align environment

I'm having an issue where the \ref command typesets a number 1 higher than it should be for equations in align; equations are numbered correctly but the references are off.A \ref call to the last ...
10
votes
2answers
204 views

Why must \DeclareMathOperator be in the preamble?

What is the rationale for requiring \DeclareMathOperator to be in the preamble? Why are users not allowed to restrict the scope of an operator definition to a particular chapter or environment, like ...
1
vote
0answers
51 views

Wrong and ugly output of an arrow

I have a weird output regarding xrightarrow{}. Why is that happening? How can I fix it? \documentclass[12pt]{article} \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry} ...
1
vote
1answer
45 views

Numbered equation with inline text

I am quite new to LaTeX so please excuse me for my ignorance. I can not figure out how to write a numbered equation with inline text. Can someone please tell me why this does not work? I use ...
2
votes
2answers
88 views

Compiling snippets without extra clutter

Assuming that I have some equations in latex A_{m,n} = \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & ...
5
votes
1answer
121 views

Why does \begin{align} &&&\cr \end{align} give “Missing number”?

Consider the following MWE: \documentclass{article} \usepackage{amsmath,bbm} \begin{document} \begin{align} &&&\cr \end{align} \end{document} It generates both the "Missing number, ...
7
votes
4answers
138 views

Multiple alignments within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{x}_2 = \dot{x}_{2,0}&+\frac{\partial f_2(x_1)}{\partial x_1} \bigg|_{x_1=x_{1,0}} ...
0
votes
1answer
74 views

Define shorthand command

I use a lot of times the following code: \begin{gather} \begin{aligned} Math here \end{aligned} \end{gather} Is there a way to define a new shorthand command like the following: \SC { Math here } ...
3
votes
1answer
105 views

XeLaTeX hang when using specific math symbols

I am using XeLaTeX in conjunction with amsmath and unicode-math for my reports. After a while, I ran into a weird problem in which compilation would just hang indefinitely. I found out the culprit was ...